45db04
Name:           javapackages-tools
45db04
Version:        3.4.1
fcb490
Release:        6%{?dist}
45db04
45db04
Summary:        Macros and scripts for Java packaging support
45db04
45db04
License:        BSD
45db04
URL:            https://fedorahosted.org/javapackages/
45db04
Source0:        https://fedorahosted.org/released/javapackages/javapackages-%{version}.tar.xz
45db04
3dd908
# rhbz 1038553
3dd908
Patch1:         0001-Support-absolute-symlinks-in-SCLs-in-mvn_file-rhbz-1.patch
fcb490
# rhbz 1098523 (two patches)
fcb490
Patch2:         0002-macros-Fix-add_maven_depmap-for-SCL-usage.patch
fcb490
Patch3:         0003-macros-Fix-xmvn-install-for-SCL-usage.patch
45db04
45db04
BuildArch:      noarch
45db04
45db04
BuildRequires:  jpackage-utils
45db04
BuildRequires:  asciidoc
45db04
BuildRequires:  xmlto
45db04
BuildRequires:  python-lxml
45db04
BuildRequires:  python2-devel
45db04
BuildRequires:  python-setuptools
45db04
45db04
Requires:       coreutils
45db04
Requires:       libxslt
45db04
Requires:       lua
45db04
Requires:       python
3dd908
Requires:       python-javapackages = %{version}-%{release}
45db04
45db04
Provides:       jpackage-utils = %{version}-%{release}
45db04
Obsoletes:      jpackage-utils < %{version}-%{release}
45db04
45db04
%description
45db04
This package provides macros and scripts to support Java packaging.
45db04
45db04
%package -n maven-local
45db04
Summary:        Macros and scripts for Maven packaging support
45db04
Requires:       %{name} = %{version}-%{release}
45db04
Requires:       maven
45db04
Requires:       xmvn >= 1.0.0-0.1
45db04
# POM files needed by maven itself
45db04
Requires:       apache-commons-parent
45db04
Requires:       apache-parent
45db04
Requires:       geronimo-parent-poms
45db04
Requires:       httpcomponents-project
45db04
Requires:       jboss-parent
45db04
Requires:       jvnet-parent
45db04
Requires:       maven-parent
45db04
Requires:       maven-plugins-pom
45db04
Requires:       mojo-parent
45db04
Requires:       plexus-components-pom
45db04
Requires:       plexus-pom
45db04
Requires:       plexus-tools-pom
45db04
Requires:       sonatype-oss-parent
45db04
Requires:       weld-parent
45db04
# Common Maven plugins required by almost every build. It wouldn't make
45db04
# sense to explicitly require them in every package built with Maven.
45db04
Requires:       maven-assembly-plugin
45db04
Requires:       maven-compiler-plugin
45db04
Requires:       maven-enforcer-plugin
45db04
Requires:       maven-jar-plugin
45db04
Requires:       maven-javadoc-plugin
45db04
Requires:       maven-resources-plugin
45db04
Requires:       maven-surefire-plugin
45db04
# Tests based on JUnit are very common and JUnit itself is small.
45db04
# Include JUnit provider for Surefire just for convenience.
45db04
Requires:       maven-surefire-provider-junit
45db04
# testng is quite common as well
45db04
Requires:       maven-surefire-provider-testng
45db04
45db04
%description -n maven-local
45db04
This package provides macros and scripts to support packaging Maven artifacts.
45db04
45db04
%package -n python-javapackages
45db04
Summary:        Module for handling various files for Java packaging
45db04
Requires:       python-lxml
45db04
45db04
%description -n python-javapackages
45db04
Module for handling, querying and manipulating of various files for Java
45db04
packaging in Linux distributions
45db04
45db04
45db04
45db04
%prep
45db04
%setup -q -n javapackages-%{version}
45db04
45db04
sed -i '/fedora-review/d' install
3dd908
sed -i 's:\(inst_exec target/mvn-local\).*:\1 ${javadir}-utils:' install
3dd908
3dd908
%patch1 -p1
fcb490
%patch2 -p1
fcb490
%patch3 -p1
45db04
45db04
%build
45db04
%configure
45db04
./build
45db04
pushd python
45db04
%{__python} setup.py build
45db04
popd
45db04
45db04
%install
45db04
./install
45db04
sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
45db04
45db04
pushd python
45db04
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
45db04
popd
45db04
45db04
# no fedora-review in RHEL 7
45db04
rm -rf %{buildroot}/%{_datadir}/fedora-review/
45db04
45db04
%check
45db04
# We need formencode for tests
45db04
#pushd python
45db04
#%{__python} setup.py test
45db04
#popd
45db04
#pushd test
45db04
#%{__python} -m unittest discover -p '*_test.py'
45db04
#popd
45db04
45db04
45db04
45db04
%files -f files-common
45db04
%doc LICENSE
45db04
45db04
%files -n maven-local -f files-maven
45db04
45db04
%files -n python-javapackages
45db04
%doc LICENSE
45db04
%{python_sitelib}/javapackages*
45db04
45db04
45db04
%changelog
fcb490
* Fri May 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.1-6
fcb490
- Fix add_maven_depmap and xmvn-install for SCL usage
fcb490
- Resolves: rhbz#1098523
fcb490
3dd908
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.1-5
3dd908
- Mass rebuild 2013-12-27
3dd908
3dd908
* Mon Dec 16 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-4
3dd908
- Support absolute symlinks in SCLs in mvn_file
3dd908
- Resolves: rhbz#1038553
3dd908
3dd908
* Thu Dec 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-3
3dd908
- Move mvn-local out of bindir
3dd908
- Resolves: rhbz#1015422
3dd908
3dd908
* Thu Nov 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.1-2
3dd908
- Add versioned requires on python-javapackages
3dd908
45db04
* Wed Nov 06 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4.1-1
45db04
- Rebase to bugfix release 3.4.1
45db04
- Related: rhbz#1015158
45db04
45db04
* Tue Oct 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.3.1-2
45db04
- Remove workaround for guice-no_aop
45db04
- Remove fedora-review subpackage
45db04
- Resolves: rhbz#1016667
45db04
- Related: rhbz#1015158
45db04
45db04
* Wed Oct  2 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.1-1
45db04
- Update to upstream version 3.3.1
45db04
- Remove workaround for sisu-guice no_aop
45db04
45db04
* Tue Oct 01 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.3.0-1
45db04
- Update to upstream version 3.3.0
45db04
45db04
* Wed Sep 25 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-2
45db04
- Fix installation of artifacts with classifier
45db04
45db04
* Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.4-1
45db04
- Update to upstream version 3.2.4
45db04
45db04
* Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.3-1
45db04
- Update to upstream version 3.2.3
45db04
45db04
* Fri Sep 20 2013 Michal Srb <msrb@redhat.com> - 3.2.2-1
45db04
- Update to upstream version 3.2.2
45db04
45db04
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-1
45db04
- Update to upstream version 3.2.1
45db04
45db04
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-1
45db04
- Update to upstream version 3.2.0
45db04
45db04
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-1
45db04
- Update to upstream version 3.1.2
45db04
45db04
* Thu Sep 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.1-1
45db04
- Update to upstream version 3.1.1
45db04
45db04
* Thu Sep 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.0-1
45db04
- Update to upstream version 3.1.0
45db04
45db04
* Mon Sep 16 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.4-2
45db04
- Add depmap for sun.jdk:jconsole
45db04
45db04
* Fri Sep 13 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.4-1
45db04
- Update to upstream version 3.0.4
45db04
45db04
* Wed Sep 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.3-1
45db04
- Update to upstream version 3.0.3
45db04
45db04
* Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.2-3
45db04
- Fix a typo in temporary depmap
45db04
45db04
* Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0.2-2
45db04
- Make sure we do not provide google guice mapping
45db04
45db04
* Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.2-1
45db04
- Update to upstream version 3.0.2
45db04
- Add separate python-javapackages subpackage
45db04
- Add separate fedora-review-plugin-java subpackage
45db04
- Enable part of unit tests
45db04
45db04
* Tue Sep  3 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.0-0.2
45db04
- Fix javadoc directory override
45db04
45db04
* Tue Sep  3 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 3.0.0-0.1
45db04
- Update to upstream pre-release version 3.0.0
45db04
45db04
* Fri Jul 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.1-1
45db04
- Update to upstream version 2.0.1
45db04
- Fix creation of artifact aliases, resolves: rhbz#988462
45db04
45db04
* Thu Jul 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-2
45db04
- Require maven-resources-plugin by maven-local
45db04
45db04
* Thu Jul 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-1
45db04
- Update to upstream version 2.0.0
45db04
- Merge functionality of jpackage-utils
45db04
- Provide and obsolete jpackage-utils
45db04
- %%add_maven_depmap macro now injects pom.properties to every JAR
45db04
- %%add_to_maven_depmap and %%update_maven_depmap macros were removed
45db04
- maven2jpp-mapdeps.xsl template has been removed
45db04
- Macros related to installation of icons and desktop files were removed
45db04
- 14 new manual pages were added
45db04
- Documentation specific to JPackage was removed
45db04
- Add BuildRequires: asciidoc, xmlto
45db04
45db04
* Mon Jul  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.15.0-2
45db04
- Add R: jvnet-parent
45db04
45db04
* Wed Jun  5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.15.0-1
45db04
- Update to upstream version 0.15.0
45db04
- Added depmap for tools.jar
45db04
- Added support for versioned autorequires
45db04
- New plugin metadata from Maven Central
45db04
45db04
* Tue Jun  4 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.14.1-2
45db04
- Add several maven plugins to maven-local requires
45db04
45db04
* Wed May 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.14.1-1
45db04
- Update to upstream version 0.14.1 with disabled debugging
45db04
45db04
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com> - 0.14.0-1
45db04
- Update to upstream version 0.14.0
45db04
45db04
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.7-2
45db04
- Add R: maven-surefire-provider-junit4 to maven-local
45db04
45db04
* Fri Mar 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.7-1
45db04
- Update to upstream version 0.13.7
45db04
45db04
* Wed Mar 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-4
45db04
- Add geronimo-parent-poms to common POMs
45db04
45db04
* Wed Mar 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-3
45db04
- Add weld-parent to common POMs
45db04
45db04
* Wed Mar 20 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.13.6-2
45db04
- Fix conditional macro to evaluate properly when fedora is not defined
45db04
45db04
* Mon Mar 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.6-1
45db04
- Update to upstream version 0.13.6
45db04
45db04
* Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.5-1
45db04
- Update to upstream version 0.13.5
45db04
45db04
* Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.4-1
45db04
- Update to upstream version 0.13.4
45db04
45db04
* Tue Mar 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.3-1
45db04
- Update to upstream version 0.13.3
45db04
45db04
* Thu Mar  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.2-1
45db04
- Update to upstream version 0.13.2
45db04
45db04
* Thu Mar  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.1-1
45db04
- Update to upstream version 0.13.1
45db04
45db04
* Wed Mar  6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.0-1
45db04
- Update to upstream version 0.13.0
45db04
45db04
* Wed Mar  6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.13.0-0.1.git2f13366
45db04
- Upate to upstream pre-release snapshot 2f13366
45db04
45db04
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.6-1
45db04
- Update to upstream version 0.12.6
45db04
- Resolves: rhbz#917618 (remove jetty orbit provides)
45db04
- Resolves: rhbz#917647 (system.bundle into autogenerated deps)
45db04
45db04
* Fri Mar  1 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.12.5-1
45db04
- Update to upstream version 0.12.5
45db04
- Resolves problems with compat package provides and automatic requires
45db04
45db04
* Wed Feb 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.4-2
45db04
- Don't mark RPM macro files as configuration
45db04
45db04
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.4-1
45db04
- Update to upstream version 0.12.4
45db04
- Resolves: rhbz#913630 (versioned requires between subpackages)
45db04
45db04
* Fri Feb 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.3-1
45db04
- Update to upstream version 0.12.3
45db04
- Resolves: rhbz#913694 (No plugin found for prefix 'X')
45db04
45db04
* Wed Feb 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.2-1
45db04
- Update to upstream version 0.12.2
45db04
- Resolves: rhbz#913120 (MAVEN_OPTS are not passed to Maven)
45db04
45db04
* Mon Feb 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.1-1
45db04
- Update to upstream version 0.12.1
45db04
- Resolves: rhbz#912333 (M2_HOME is not exported)
45db04
45db04
* Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.12.0-1
45db04
- Update to upstream version 0.12.0
45db04
- Implement new pom macros: xpath_replace and xpath_set
45db04
- Remove Support-local-depmaps.patch (accepted upstream)
45db04
45db04
* Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-6
45db04
- Support local depmaps
45db04
45db04
* Thu Feb 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-5
45db04
- Add some maven-local Requires for convenience
45db04
45db04
* Thu Feb  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-4
45db04
- Add missing R: httpcomponents-project
45db04
45db04
* Thu Feb  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-3
45db04
- Add missing R: jboss-patent
45db04
45db04
* Wed Feb  6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-2
45db04
- Don't install mvn-local and mvn-rpmbuild on F18
45db04
45db04
* Wed Jan 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.2-1
45db04
- Update to upstream version 0.11.2
45db04
45db04
* Wed Jan 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.1-1
45db04
- Update to upstream version 0.11.1
45db04
45db04
* Wed Jan 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.11.0-1
45db04
- Update to upstream version 0.11.0
45db04
- Add mvn-local and mvn-rpmbuild scripts
45db04
45db04
* Mon Jan 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.10.1-1
45db04
- Update to upstream version 0.10.1
45db04
45db04
* Mon Jan  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.10.0-1
45db04
- Update to upstream version 0.10.0
45db04
- Implement %%xmvn_alias, %%xmvn_file and %%xmvn_package macros
45db04
- Fix regex in osgi.attr
45db04
- Add support for pre- and post-goals in mvn-build script
45db04
45db04
* Mon Dec 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.9.1-1
45db04
- Update to upstream version 0.9.1
45db04
- Resolves: rhbz#885636
45db04
45db04
* Thu Dec  6 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.0-1
45db04
- Update to latest upstream version
45db04
- Enable maven requires generator for xmvn packages
45db04
- Enable requires generator for javadoc packages
45db04
45db04
* Wed Dec  5 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.3-1
45db04
- Update to upstream version 0.8.3
45db04
- Fix maven provides generator for new XML valid fragments
45db04
45db04
* Fri Nov 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.2-1
45db04
- Update to upstream version 0.8.2
45db04
45db04
* Fri Nov 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.1-1
45db04
- Update to upstream version 0.8.1
45db04
45db04
* Wed Nov 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8.0-1
45db04
- Update to upstream version 0.8.0
45db04
- Add xmvn macros
45db04
45db04
* Tue Nov 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.5-3
45db04
- Add BR: jpackage-utils
45db04
45db04
* Tue Nov 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.5-2
45db04
- Add maven-local subpackage
45db04
45db04
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.5-1
45db04
- Fix versioned pom installation by quoting _jpath
45db04
45db04
* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.4-1
45db04
- Shorten maven filelist filenames
45db04
45db04
* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.7.3-1
45db04
- Update to upstream version 0.7.3
45db04
45db04
* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.2-1
45db04
- Make sure add_maven_depmap fails when python tracebacks
45db04
45db04
* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.1-1
45db04
- Fix problem with exception in default add_maven_depmap invocation
45db04
45db04
* Tue Oct 30 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.7.0-1
45db04
- Update to latest upstream
45db04
- Full support for compat depmap generation
45db04
- Generate maven-files-%%{name} with a list of files to package
45db04
- Add support for maven repo generation (alpha version)
45db04
45db04
* Mon Jul 30 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.6.0-1
45db04
- Update to upstream version 0.6.0
45db04
- Make maven provides versioned
45db04
- Add additional pom_ macros to simplify additional pom editing
45db04
45db04
* Wed Jul 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-1
45db04
- Update to upstream version 0.5.0 - add support for add_maven_depmap -v
45db04
45db04
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
45db04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
45db04
45db04
* Mon Jul  9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.1-1
45db04
- Update to upstream version 0.4.1
45db04
- Fixes #837203
45db04
45db04
* Wed Jun 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-1
45db04
- Update to upstream version 0.4.0
45db04
45db04
* Tue Mar  6 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.1-1
45db04
- Create maven provides from fragments instead of poms
45db04
45db04
* Thu Feb 16 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-3
45db04
- Fix maven_depmap installation
45db04
45db04
* Wed Feb 15 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-2
45db04
- Add conflicts with older jpackage-utils
45db04
45db04
* Wed Feb 15 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-1
45db04
- Initial version split from jpackage-utils