Пакет apache-commons-launcher: 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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | Epoch: 1 Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires: rpm-build-java # END SourceDeps(oneline) BuildRequires: /proc BuildRequires: jpackage-generic-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global short_name commons-launcher Name: apache-%{short_name} Version: 1.1 Release: alt3_22.20100521svn936225jpp8 Summary: A cross platform Java application launcher License: ASL 2.0 URL: http://commons.apache.org/launcher/ # The last release of this package was many years ago and in that time there # have only been two extremely minor changes to the source code, [1] and [2]. # It seems a new release is unlikely to be forthcoming in the near future. # # [1] - http://svn.apache.org/viewvc/commons/proper/launcher/trunk/src/java/org/apache/commons/launcher/ChildMain.java?r1=138801&r2=138803 # [2] - http://svn.apache.org/viewvc/commons/proper/launcher/trunk/src/java/org/apache/commons/launcher/Launcher.java?r1=138801&r2=138802 # # During that time however, support for the maven 2 build system has been # added. So in order to make my life easier as a maintainer, with regard to # supporting OSGi manifests and installing poms, etc, I have elected to package # a maven2 supporting snapshot instead of maintaining patches in our SRPM. As # an added bonus, the snapshot also has more accurate javadocs. # # How to generate source tarball from source control: # $ svn export -r 936225 http://svn.apache.org/repos/asf/commons/proper/launcher/trunk/ commons-launcher-1.1-src # $ tar -zcf commons-launcher-1.1-src.tar.gz commons-launcher-1.1-src Source0: %{short_name}-%{version}-src.tar.gz # remove unnecessary build dependency on ant-optional (ant no longer ships this jar) Patch0: %{short_name}-pom.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) Source44: import.info %description Commons-launcher eliminates the need for a batch or shell script to launch a Java class. Some situations where elimination of a batch or shell script may be desirable are: * You want to avoid having to determining where certain application paths are e.g. your application's home directory, etc. Determining this dynamically in a Windows batch scripts is very tricky on some versions of Windows or when soft links are used on Unix platforms. * You want to avoid having to handle native file and path separators or native path quoting issues. * You need to enforce certain system properties. * You want to allow users to pass in custom JVM arguments or system properties without having to parse and reorder arguments in your script. This can be tricky and/or messy in batch and shell scripts. * You want to bootstrap system properties from a configuration file instead hard-coding them in your batch and shell scripts. * You want to provide localized error messages which is very tricky to do in batch and shell scripts. %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc %{summary}. %prep %setup -q -n %{short_name}-%{version}-src # apply patches %patch0 -p0 -b .orig sed -i 's/\r//' README.txt LICENSE.txt NOTICE.txt sed -i "s|\<groupId\>ant\<\/groupId\>|<groupId>org.apache.ant</groupId>|g" build.xml # This class is for working around PATH problems on Windows platforms only but # prevents building here because OSGi does not permit classes in the default # package. Remove for now, to appease newer maven-bundle-plugin versions. rm src/java/LauncherBootstrap.java # Compatibility links %mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}" %mvn_file :commons-launcher %{short_name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc --no-dereference LICENSE.txt NOTICE.txt %doc README.txt %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE.txt NOTICE.txt %changelog * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt3_22.20100521svn936225jpp8 - fc29 update * Sun Apr 15 2018 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt3_21.20100521svn936225jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt3_20.20100521svn936225jpp8 - fc27 update * Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt3_19.20100521svn936225jpp8 - new jpp release * Fri Feb 12 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt3_18.20100521svn936225jpp8 - unbootstrap build * Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt2jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt1_14.20100521svn936225jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt1_12.20100521svn936225jpp7 - new release * Sun Mar 17 2013 Igor Vlasenko <viy@altlinux.ru> 1:1.1-alt1_10.20100521svn936225jpp7 - fc update * Sun Feb 27 2011 Igor Vlasenko <viy@altlinux.ru> 0:1.2-alt1_0.r832060.5jpp6 - new version * Sun Feb 21 2010 Igor Vlasenko <viy@altlinux.ru> 0:1.1-alt3_4jpp5 - new jpackage release * Thu May 17 2007 Igor Vlasenko <viy@altlinux.ru> 0:1.1-alt3_3jpp1.7 - converted from JPackage by jppimport script * Mon Mar 21 2005 Vladimir Lettiev <crux@altlinux.ru> 1.1-alt3 - rpm-build-java macroces - cvs 20050321 * Sun Oct 24 2004 Vladimir Lettiev <crux@altlinux.ru> 1.1-alt2 - 1.1-dev (cvs 20041024) * Sat Sep 11 2004 Vladimir Lettiev <crux@altlinux.ru> 1.1-alt1 - 1.1 - Rebuild for ALT Linux Sisyphus - spec cleanup * Fri Jan 9 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:0.9-1jpp - First build for JPackage * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:0.9-0.2 - Fixed description - Enabled javadocs * Thu Dec 4 2003 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:0.9-0.1 - Rebuilt w/o javadocs |