969ded
%global upstream_version %(echo %{version} | tr '~' '-')
969ded
969ded
Name:           apache-ivy
969ded
Version:        2.5.0~rc1
969ded
Release:        2%{?dist}
969ded
Summary:        Java-based dependency manager
969ded
# One .js in asciidoc directory is MIT but we do not include it
969ded
License:        ASL 2.0
969ded
URL:            http://ant.apache.org/ivy
969ded
Source0:        http://www.apache.org/dist/ant/ivy/%{upstream_version}/%{name}-%{upstream_version}-src.tar.gz
969ded
BuildArch:      noarch
969ded
969ded
# Non-upstreamable.  Add /etc/ivy/ivysettings.xml at the end list of
969ded
# settings files Ivy tries to load.  This file will be used only as
969ded
# last resort, when no other setting files exist.
969ded
Patch0:         %{name}-global-settings.patch
969ded
969ded
Provides:       ivy = %{version}-%{release}
969ded
969ded
BuildRequires:  ivy-local >= 4
969ded
BuildRequires:  ant
969ded
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
969ded
BuildRequires:  mvn(oro:oro)
969ded
969ded
%description
969ded
Apache Ivy is a tool for managing (recording, tracking, resolving and
969ded
reporting) project dependencies.  It is designed as process agnostic and is
969ded
not tied to any methodology or structure. while available as a standalone
969ded
tool, Apache Ivy works particularly well with Apache Ant providing a number
969ded
of powerful Ant tasks ranging from dependency resolution to dependency
969ded
reporting and publication.
969ded
969ded
%package javadoc
969ded
Summary:        API Documentation for ivy
969ded
969ded
%description javadoc
969ded
JavaDoc documentation for %{name}
969ded
969ded
%prep
969ded
%setup -q -n %{name}-%{upstream_version}
969ded
%patch0
969ded
969ded
find -name '*.jar' -delete
969ded
969ded
# Don't hardcode sysconfdir path
969ded
sed -i 's:/etc/ivy/:%{_sysconfdir}/ivy/:' src/java/org/apache/ivy/ant/IvyAntSettings.java
969ded
969ded
%pom_remove_dep :jsch
969ded
%pom_remove_dep :jsch.agentproxy
969ded
%pom_remove_dep :jsch.agentproxy.connector-factory
969ded
%pom_remove_dep :jsch.agentproxy.jsch
969ded
rm -r src/java/org/apache/ivy/plugins/repository/{ssh,sftp}
969ded
rm src/java/org/apache/ivy/plugins/resolver/*{Ssh,SFTP}*.java
969ded
969ded
%pom_remove_dep org.bouncycastle
969ded
rm src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java
969ded
969ded
# Remove test dependencies
969ded
%pom_remove_dep :junit
969ded
%pom_remove_dep :hamcrest-core
969ded
%pom_remove_dep :hamcrest-library
969ded
%pom_remove_dep :ant-testutil
969ded
%pom_remove_dep :ant-launcher
969ded
%pom_remove_dep :ant-junit
969ded
%pom_remove_dep :ant-junit4
969ded
%pom_remove_dep :ant-contrib
969ded
%pom_remove_dep :xmlunit
969ded
969ded
%mvn_alias : jayasoft:ivy
969ded
%mvn_file : %{name}/ivy ivy
969ded
969ded
# Remove dependency on commons-vfs
969ded
sed -i /commons-vfs/d ivy.xml
969ded
rm -rf src/java/org/apache/ivy/plugins/repository/vfs
969ded
rm -rf src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
969ded
969ded
# Remove prebuilt documentation
969ded
rm -rf asciidoc
969ded
969ded
# Publish artifacts through XMvn
969ded
sed -i /ivy:publish/s/local/xmvn/ build.xml
969ded
969ded
%build
969ded
%ant -Divy.mode=local -Dtarget.ivy.bundle.version=%{version} -Dtarget.ivy.bundle.version.qualifier= -Dtarget.ivy.version=%{version} jar javadoc publish-local
969ded
969ded
%install
969ded
%mvn_install -J build/reports/api
969ded
969ded
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
969ded
echo "apache-ivy/ivy" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}
969ded
969ded
%files -f .mfiles
969ded
%{_sysconfdir}/ant.d/%{name}
969ded
%doc README.adoc
969ded
%license LICENSE NOTICE
969ded
969ded
%files javadoc -f .mfiles-javadoc
969ded
%license LICENSE NOTICE
969ded
969ded
%changelog
969ded
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.0~rc1-2
969ded
- Mass rebuild for javapackages-tools 201902
969ded
969ded
* Tue Aug 20 2019 Marian Koncek <mkoncek@redhat.com> - 2.5.0~rc1-1
969ded
- Update to upstream version 2.5.0~rc1
969ded
969ded
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-15
969ded
- Mass rebuild for javapackages-tools 201901
969ded
969ded
* Tue Jul 17 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-14
969ded
- Allow building without vfs support
969ded
969ded
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-13
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
969ded
969ded
* Wed Mar 28 2018 Michael Simacek <msimacek@redhat.com> - 2.4.0-12
969ded
- Remove now unneeded patch
969ded
969ded
* Fri Mar 16 2018 Michael Simacek <msimacek@redhat.com> - 2.4.0-11
969ded
- Fix build against ant 1.10.2
969ded
969ded
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-10
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
969ded
969ded
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-9
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
969ded
969ded
* Wed Mar  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-8
969ded
- Don't hardcode sysconfdir path
969ded
969ded
* Tue Feb 14 2017 Michael Simacek <msimacek@redhat.com> - 2.4.0-7
969ded
- Add conditional for bouncycastle
969ded
969ded
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 2.4.0-6
969ded
- Add conditional for ssh
969ded
969ded
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
969ded
969ded
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
969ded
969ded
* Mon May 04 2015 Michal Srb <msrb@redhat.com> - 2.4.0-3
969ded
- Update comment
969ded
969ded
* Mon May 04 2015 Michal Srb <msrb@redhat.com> - 2.4.0-2
969ded
- Port to bouncycastle 1.52
969ded
969ded
* Wed Apr  1 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-1
969ded
- Update to upstream version 2.4.0
969ded
969ded
* Fri Sep 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-17
969ded
- Add compat symlink for ivy.jar
969ded
969ded
* Mon Aug 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-16
969ded
- Add alias for jayasoft:ivy
969ded
969ded
* Thu Jun 26 2014 Michal Srb <msrb@redhat.com> - 2.3.0-15
969ded
- Drop workaround for broken apache-ivy
969ded
969ded
* Thu Jun 26 2014 Michal Srb <msrb@redhat.com> - 2.3.0-14
969ded
- Fix /etc/ant.d/apache-ivy (Resolves: rhbz#1113275)
969ded
969ded
* Mon Jun 23 2014 Michal Srb <msrb@redhat.com> - 2.3.0-13
969ded
- Add BR on missing parent POMs
969ded
969ded
* Mon Jun 09 2014 Michal Srb <msrb@redhat.com> - 2.3.0-12
969ded
- Add missing BR: apache-commons-lang
969ded
969ded
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-11
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
969ded
969ded
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-10
969ded
- Use features of XMvn 2.0.0
969ded
969ded
* Thu Jan 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-9
969ded
- BuildRequire ivy-local >= 3.5.0-2
969ded
969ded
* Thu Jan 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-8
969ded
- Build with ivy-local
969ded
- Add patch for global settings
969ded
969ded
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.0-7
969ded
- Remove prebuilt documentation in %%prep
969ded
- Install NOTICE file with javadoc subpackage
969ded
969ded
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.0-6
969ded
- Restore PGP signing ability
969ded
- Remove unneeded R
969ded
969ded
* Thu Dec 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-5
969ded
- Enable VFS resolver
969ded
969ded
* Wed Dec  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4
969ded
- Install POM files, resolves: rhbz#1032258
969ded
- Remove explicit requires; auto-requires are in effect now
969ded
969ded
* Fri Nov  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-3
969ded
- Add Maven depmap
969ded
969ded
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
969ded
969ded
* Fri Mar 1 2013 Alexander Kurtakov <akurtako@redhat.com> 2.3.0-1
969ded
- Update to latest upstream.
969ded
969ded
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-6
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
969ded
969ded
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-5
969ded
- Fix osgi metadata.
969ded
969ded
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
969ded
969ded
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-3
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
969ded
969ded
* Wed Jul 6 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-2
969ded
- Fix ant integration.
969ded
969ded
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-1
969ded
- Update to 2.2.0.
969ded
969ded
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
969ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
969ded
969ded
* Mon Nov 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.1.0-1
969ded
- Initial Fedora packaging