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