javapackages-tools-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. Name: javapackages-tools
  2. Version: 3.4.1
  3. Release: 7%{?_dist_release}
  4. Summary: Macros and scripts for Java packaging support
  5. Summary(ja): Java パッケージをサポートするためのマクロ・スクリプト集
  6. License: BSD
  7. Group: Development/Tools
  8. URL: https://fedorahosted.org/javapackages/
  9. Source0: https://fedorahosted.org/released/javapackages/javapackages-%{version}.tar.xz
  10. # rhbz 1038553
  11. Patch1: 0001-Support-absolute-symlinks-in-SCLs-in-mvn_file-rhbz-1.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: jpackage-utils
  15. BuildRequires: asciidoc
  16. BuildRequires: xmlto
  17. BuildRequires: python-lxml
  18. BuildRequires: python-devel
  19. BuildRequires: python-setuptools
  20. Requires: coreutils
  21. Requires: libxslt
  22. Requires: lua
  23. Requires: python
  24. Requires: python-javapackages = %{version}-%{release}
  25. Provides: jpackage-utils = %{version}-%{release}
  26. Obsoletes: jpackage-utils < %{version}-%{release}
  27. %description
  28. This package provides macros and scripts to support Java packaging.
  29. #%package -n maven-local
  30. #Summary: Macros and scripts for Maven packaging support
  31. #Group: Development/Tools
  32. #Requires: %{name} = %{version}-%{release}
  33. #Requires: maven
  34. #Requires: xmvn >= 1.0.0-0.1
  35. ## POM files needed by maven itself
  36. #Requires: apache-commons-parent
  37. #Requires: apache-parent
  38. #Requires: geronimo-parent-poms
  39. #Requires: httpcomponents-project
  40. #Requires: jboss-parent
  41. #Requires: jvnet-parent
  42. #Requires: maven-parent
  43. #Requires: maven-plugins-pom
  44. #Requires: mojo-parent
  45. #Requires: plexus-components-pom
  46. #Requires: plexus-pom
  47. #Requires: plexus-tools-pom
  48. #Requires: sonatype-oss-parent
  49. #Requires: weld-parent
  50. ## Common Maven plugins required by almost every build. It wouldn't make
  51. ## sense to explicitly require them in every package built with Maven.
  52. ##Requires: maven-assembly-plugin
  53. #Requires: maven-compiler-plugin
  54. #Requires: maven-enforcer-plugin
  55. #Requires: maven-jar-plugin
  56. #Requires: maven-javadoc-plugin
  57. #Requires: maven-resources-plugin
  58. #Requires: maven-surefire-plugin
  59. ## Tests based on JUnit are very common and JUnit itself is small.
  60. ## Include JUnit provider for Surefire just for convenience.
  61. #Requires: maven-surefire-provider-junit
  62. ## testng is quite common as well
  63. #Requires: maven-surefire-provider-testng
  64. #
  65. #%description -n maven-local
  66. #This package provides macros and scripts to support packaging Maven artifacts.
  67. %package -n python-javapackages
  68. Summary: Module for handling various files for Java packaging
  69. Summary(ja): Java パッケージのファイルを処理するための Python モジュール
  70. Group: Development/Tools
  71. Requires: python-lxml
  72. %description -n python-javapackages
  73. Module for handling, querying and manipulating of various files for Java
  74. packaging in Linux distributions
  75. %prep
  76. %setup -q -n javapackages-%{version}
  77. sed -i '/fedora-review/d' install
  78. sed -i 's:\(inst_exec target/mvn-local\).*:\1 ${javadir}-utils:' install
  79. %patch1 -p1
  80. %build
  81. %configure
  82. ./build
  83. pushd python
  84. %{__python} setup.py build
  85. popd
  86. %install
  87. rm -rf $RPM_BUILD_ROOT
  88. ./install
  89. sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
  90. sed -i '/%dir \/usr\/lib\/rpm\/fileattrs/d' files-common
  91. pushd python
  92. %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
  93. popd
  94. rm -rf %{buildroot}/%{_datadir}/fedora-review/
  95. %check
  96. # We need formencode for tests
  97. #pushd python
  98. #%{__python} setup.py test
  99. #popd
  100. #pushd test
  101. #%{__python} -m unittest discover -p '*_test.py'
  102. #popd
  103. %clean
  104. rm -rf $RPM_BUILD_ROOT
  105. %files -f files-common
  106. %doc LICENSE
  107. %exclude %{_sysconfdir}/rpm/macros.fjava
  108. %exclude /usr/lib/rpm/maven.*
  109. %exclude /usr/lib/rpm/osgi.*
  110. %exclude /usr/lib/rpm/fileattrs/maven.attr
  111. %exclude /usr/lib/rpm/fileattrs/osgi.attr
  112. #%files -n maven-local -f files-maven
  113. %files -n python-javapackages
  114. %doc LICENSE
  115. %{python_sitelib}/javapackages*
  116. %changelog
  117. * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.4.1-7
  118. - added %%clean section
  119. - excluded some rpm stuffs relating to maven and osgi
  120. - moved to Development/Tools Group
  121. * Wed Oct 29 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.4.1-6
  122. - Initial build for Vine Linux (do not generate maven-lodal)
  123. * Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.1-5
  124. - Mass rebuild 2013-12-27
  125. * Mon Dec 16 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-4
  126. - Support absolute symlinks in SCLs in mvn_file
  127. - Resolves: rhbz#1038553
  128. * Thu Dec 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-3
  129. - Move mvn-local out of bindir
  130. - Resolves: rhbz#1015422
  131. * Thu Nov 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.1-2
  132. - Add versioned requires on python-javapackages
  133. * Wed Nov 06 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-1
  134. - Rebase to bugfix release 3.4.1
  135. - Related: rhbz#1015158
  136. * Tue Oct 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.3.1-2
  137. - Remove workaround for guice-no_aop
  138. - Remove fedora-review subpackage
  139. - Resolves: rhbz#1016667
  140. - Related: rhbz#1015158
  141. * Wed Oct 2 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-1
  142. - Update to upstream version 3.3.1
  143. - Remove workaround for sisu-guice no_aop
  144. * Tue Oct 01 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.3.0-1
  145. - Update to upstream version 3.3.0
  146. * Wed Sep 25 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-2
  147. - Fix installation of artifacts with classifier
  148. * Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-1
  149. - Update to upstream version 3.2.4
  150. * Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-1
  151. - Update to upstream version 3.2.3
  152. * Fri Sep 20 2013 Michal Srb <msrb@redhat.com> - 3.2.2-1
  153. - Update to upstream version 3.2.2
  154. * Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-1
  155. - Update to upstream version 3.2.1
  156. * Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-1
  157. - Update to upstream version 3.2.0
  158. * Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-1
  159. - Update to upstream version 3.1.2
  160. * Thu Sep 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.1-1
  161. - Update to upstream version 3.1.1
  162. * Thu Sep 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.0-1
  163. - Update to upstream version 3.1.0
  164. * Mon Sep 16 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.4-2
  165. - Add depmap for sun.jdk:jconsole
  166. * Fri Sep 13 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.4-1
  167. - Update to upstream version 3.0.4
  168. * Wed Sep 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.3-1
  169. - Update to upstream version 3.0.3
  170. * Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.2-3
  171. - Fix a typo in temporary depmap
  172. * Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.2-2
  173. - Make sure we do not provide google guice mapping
  174. * Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.2-1
  175. - Update to upstream version 3.0.2
  176. - Add separate python-javapackages subpackage
  177. - Add separate fedora-review-plugin-java subpackage
  178. - Enable part of unit tests
  179. * Tue Sep 3 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.0-0.2
  180. - Fix javadoc directory override
  181. * Tue Sep 3 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.0-0.1
  182. - Update to upstream pre-release version 3.0.0
  183. * Fri Jul 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.1-1
  184. - Update to upstream version 2.0.1
  185. - Fix creation of artifact aliases, resolves: rhbz#988462
  186. * Thu Jul 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-2
  187. - Require maven-resources-plugin by maven-local
  188. * Thu Jul 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-1
  189. - Update to upstream version 2.0.0
  190. - Merge functionality of jpackage-utils
  191. - Provide and obsolete jpackage-utils
  192. - %%add_maven_depmap macro now injects pom.properties to every JAR
  193. - %%add_to_maven_depmap and %%update_maven_depmap macros were removed
  194. - maven2jpp-mapdeps.xsl template has been removed
  195. - Macros related to installation of icons and desktop files were removed
  196. - 14 new manual pages were added
  197. - Documentation specific to JPackage was removed
  198. - Add BuildRequires: asciidoc, xmlto
  199. * Mon Jul 1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.15.0-2
  200. - Add R: jvnet-parent
  201. * Wed Jun 5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.15.0-1
  202. - Update to upstream version 0.15.0
  203. - Added depmap for tools.jar
  204. - Added support for versioned autorequires
  205. - New plugin metadata from Maven Central
  206. * Tue Jun 4 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.14.1-2
  207. - Add several maven plugins to maven-local requires
  208. * Wed May 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.14.1-1
  209. - Update to upstream version 0.14.1 with disabled debugging
  210. * Tue Apr 09 2013 Michal Srb <msrb@redhat.com> - 0.14.0-1
  211. - Update to upstream version 0.14.0
  212. * Mon Apr 8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.7-2
  213. - Add R: maven-surefire-provider-junit4 to maven-local
  214. * Fri Mar 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.7-1
  215. - Update to upstream version 0.13.7
  216. * Wed Mar 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-4
  217. - Add geronimo-parent-poms to common POMs
  218. * Wed Mar 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-3
  219. - Add weld-parent to common POMs
  220. * Wed Mar 20 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.13.6-2
  221. - Fix conditional macro to evaluate properly when fedora is not defined
  222. * Mon Mar 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-1
  223. - Update to upstream version 0.13.6
  224. * Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.5-1
  225. - Update to upstream version 0.13.5
  226. * Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.4-1
  227. - Update to upstream version 0.13.4
  228. * Tue Mar 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.3-1
  229. - Update to upstream version 0.13.3
  230. * Thu Mar 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.2-1
  231. - Update to upstream version 0.13.2
  232. * Thu Mar 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.1-1
  233. - Update to upstream version 0.13.1
  234. * Wed Mar 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.0-1
  235. - Update to upstream version 0.13.0
  236. * Wed Mar 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.0-0.1.git2f13366
  237. - Upate to upstream pre-release snapshot 2f13366
  238. * Mon Mar 4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.6-1
  239. - Update to upstream version 0.12.6
  240. - Resolves: rhbz#917618 (remove jetty orbit provides)
  241. - Resolves: rhbz#917647 (system.bundle into autogenerated deps)
  242. * Fri Mar 1 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.12.5-1
  243. - Update to upstream version 0.12.5
  244. - Resolves problems with compat package provides and automatic requires
  245. * Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.4-2
  246. - Don't mark RPM macro files as configuration
  247. * Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.4-1
  248. - Update to upstream version 0.12.4
  249. - Resolves: rhbz#913630 (versioned requires between subpackages)
  250. * Fri Feb 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.3-1
  251. - Update to upstream version 0.12.3
  252. - Resolves: rhbz#913694 (No plugin found for prefix 'X')
  253. * Wed Feb 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.2-1
  254. - Update to upstream version 0.12.2
  255. - Resolves: rhbz#913120 (MAVEN_OPTS are not passed to Maven)
  256. * Mon Feb 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.1-1
  257. - Update to upstream version 0.12.1
  258. - Resolves: rhbz#912333 (M2_HOME is not exported)
  259. * Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.0-1
  260. - Update to upstream version 0.12.0
  261. - Implement new pom macros: xpath_replace and xpath_set
  262. - Remove Support-local-depmaps.patch (accepted upstream)
  263. * Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-6
  264. - Support local depmaps
  265. * Thu Feb 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-5
  266. - Add some maven-local Requires for convenience
  267. * Thu Feb 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-4
  268. - Add missing R: httpcomponents-project
  269. * Thu Feb 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-3
  270. - Add missing R: jboss-patent
  271. * Wed Feb 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-2
  272. - Don't install mvn-local and mvn-rpmbuild on F18
  273. * Wed Jan 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-1
  274. - Update to upstream version 0.11.2
  275. * Wed Jan 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.1-1
  276. - Update to upstream version 0.11.1
  277. * Wed Jan 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.0-1
  278. - Update to upstream version 0.11.0
  279. - Add mvn-local and mvn-rpmbuild scripts
  280. * Mon Jan 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.10.1-1
  281. - Update to upstream version 0.10.1
  282. * Mon Jan 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.10.0-1
  283. - Update to upstream version 0.10.0
  284. - Implement %%xmvn_alias, %%xmvn_file and %%xmvn_package macros
  285. - Fix regex in osgi.attr
  286. - Add support for pre- and post-goals in mvn-build script
  287. * Mon Dec 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.9.1-1
  288. - Update to upstream version 0.9.1
  289. - Resolves: rhbz#885636
  290. * Thu Dec 6 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.0-1
  291. - Update to latest upstream version
  292. - Enable maven requires generator for xmvn packages
  293. - Enable requires generator for javadoc packages
  294. * Wed Dec 5 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.3-1
  295. - Update to upstream version 0.8.3
  296. - Fix maven provides generator for new XML valid fragments
  297. * Fri Nov 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.2-1
  298. - Update to upstream version 0.8.2
  299. * Fri Nov 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.1-1
  300. - Update to upstream version 0.8.1
  301. * Wed Nov 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.0-1
  302. - Update to upstream version 0.8.0
  303. - Add xmvn macros
  304. * Tue Nov 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.5-3
  305. - Add BR: jpackage-utils
  306. * Tue Nov 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.5-2
  307. - Add maven-local subpackage
  308. * Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.5-1
  309. - Fix versioned pom installation by quoting _jpath
  310. * Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.4-1
  311. - Shorten maven filelist filenames
  312. * Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.3-1
  313. - Update to upstream version 0.7.3
  314. * Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.2-1
  315. - Make sure add_maven_depmap fails when python tracebacks
  316. * Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.1-1
  317. - Fix problem with exception in default add_maven_depmap invocation
  318. * Tue Oct 30 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.0-1
  319. - Update to latest upstream
  320. - Full support for compat depmap generation
  321. - Generate maven-files-%%{name} with a list of files to package
  322. - Add support for maven repo generation (alpha version)
  323. * Mon Jul 30 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.6.0-1
  324. - Update to upstream version 0.6.0
  325. - Make maven provides versioned
  326. - Add additional pom_ macros to simplify additional pom editing
  327. * Wed Jul 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-1
  328. - Update to upstream version 0.5.0 - add support for add_maven_depmap -v
  329. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
  330. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  331. * Mon Jul 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.1-1
  332. - Update to upstream version 0.4.1
  333. - Fixes #837203
  334. * Wed Jun 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-1
  335. - Update to upstream version 0.4.0
  336. * Tue Mar 6 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.1-1
  337. - Create maven provides from fragments instead of poms
  338. * Thu Feb 16 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-3
  339. - Fix maven_depmap installation
  340. * Wed Feb 15 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-2
  341. - Add conflicts with older jpackage-utils
  342. * Wed Feb 15 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-1
  343. - Initial version split from jpackage-utils