introduce license macro
This commit is contained in:
parent
3f225b563b
commit
030127105d
1 changed files with 8 additions and 10 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
%global oname json
|
%global oname json
|
||||||
Name: android-json-org-java
|
Name: android-json-org-java
|
||||||
Version: 4.3
|
Version: 4.3
|
||||||
Release: 0.2.r3.1%{?dist}
|
Release: 0.3.r3.1%{?dist}
|
||||||
Summary: Androids rewrite of the evil licensed Json.org
|
Summary: Androids rewrite of the evil licensed Json.org
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://android.googlesource.com/platform/libcore/+/master/json
|
URL: https://android.googlesource.com/platform/libcore/+/master/json
|
||||||
|
|
@ -13,15 +13,9 @@ Source0: %{name}-%{namedversion}-src-git.tar.xz
|
||||||
Source1: %{name}-template.pom
|
Source1: %{name}-template.pom
|
||||||
# android-json-org-java package don't include the license file
|
# android-json-org-java package don't include the license file
|
||||||
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
|
||||||
Patch0: %{name}-20130122-ignore_failing_junit_test.patch
|
Patch0: %{name}-20130122-ignore_failing_junit_test.patch
|
||||||
|
|
||||||
BuildRequires: java-devel
|
|
||||||
BuildRequires: geronimo-parent-poms
|
BuildRequires: geronimo-parent-poms
|
||||||
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: maven-surefire-provider-junit
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
@ -50,21 +44,25 @@ sed -i 's/\r//' LICENSE-2.0.txt
|
||||||
# empty file
|
# empty file
|
||||||
rm -rf MODULE_LICENSE_BSD_LIKE
|
rm -rf MODULE_LICENSE_BSD_LIKE
|
||||||
|
|
||||||
|
%mvn_file :%{oname} %{name}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%mvn_file :%{oname} %{name}
|
|
||||||
%mvn_build
|
%mvn_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc LICENSE-2.0.txt
|
%license LICENSE-2.0.txt
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE-2.0.txt
|
%license LICENSE-2.0.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 29 2015 gil cattaneo <puntogil@libero.it> 4.3-0.3.r3.1
|
||||||
|
- introduce license macro
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-0.2.r3.1
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-0.2.r3.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue