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