Пакет android-json-org-java: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires: rpm-build-java # END SourceDeps(oneline) BuildRequires: /proc BuildRequires: jpackage-default # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # %%version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define version 6.0.1 %global namedreltag _r22 %global namedversion %{version}%{?namedreltag} %global oname json Name: android-json-org-java Version: 6.0.1 Release: alt1_0.6.r22jpp11 Summary: Androids rewrite of the evil licensed Json.org License: ASL 2.0 URL: https://android.googlesource.com/platform/libcore/+/master/json # git clone https://android.googlesource.com/platform/libcore/ android-json-org-java # (cd android-json-org-java/json/ && git archive --format=tar --prefix=android-json-org-java-6.0.1_r22/ android-6.0.1_r22 | xz > ../../android-json-org-java-6.0.1_r22.tar.xz) Source0: %{name}-%{namedversion}.tar.xz Source1: %{name}-template.pom # android-json-org-java package don't include the license file Source2: http://www.apache.org/licenses/LICENSE-2.0.txt Patch0: %{name}-20130122-ignore_failing_junit_test.patch BuildRequires: geronimo-parent-poms BuildRequires: maven-local BuildArch: noarch Source44: import.info %description Json.org is a popular java library to parse and create json string from the author of the json standard Douglas Crockford. His implementation however is not free software. Therefor the Android team did a clean-room re-implementation of a json library to be used in-place of the original one. %package javadoc Group: Development/Java Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{namedversion} %patch0 -p0 sed -i '/java.nio.channels.Selector.open/d' \ src/test/java/org/json/JSONObjectTest.java cp -p %{SOURCE1} pom.xml sed -i "s|<version>@version@|<version>%{namedversion}|" pom.xml cp -p %{SOURCE2} . sed -i 's/\r//' LICENSE-2.0.txt # empty file rm -rf MODULE_LICENSE_BSD_LIKE %mvn_file :%{oname} %{name} %build %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 %install %mvn_install %files -f .mfiles %doc --no-dereference LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE-2.0.txt %changelog * Tue Aug 16 2022 Igor Vlasenko <viy@altlinux.org> 6.0.1-alt1_0.6.r22jpp11 - jdk17 support * Sat May 25 2019 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.6.r22jpp8 - new version * Mon Feb 04 2019 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.5.r22jpp8 - java update * Sun Apr 15 2018 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.4.r22jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.3.r22jpp8 - fc27 update * Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.2.r22jpp8 - new jpp release * Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 6.0.1-alt1_0.1.r22jpp8 - new version * Fri Nov 25 2016 Igor Vlasenko <viy@altlinux.ru> 6.0.0-alt1_0.3.r1jpp8 - new version * Tue Feb 09 2016 Igor Vlasenko <viy@altlinux.ru> 5.0.2-alt1_0.2.r1jpp8 - new version |