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