|
|
66970a |
Name: apache-ivy
|
|
|
66970a |
Version: 2.3.0
|
|
|
66970a |
Release: 4%{?dist}
|
|
|
66970a |
Summary: Java-based dependency manager
|
|
|
66970a |
|
|
|
66970a |
Group: Development/Tools
|
|
|
66970a |
License: ASL 2.0
|
|
|
66970a |
URL: http://ant.apache.org/ivy/
|
|
|
66970a |
Source0: http://www.apache.org/dist/ant/ivy/%{version}/%{name}-%{version}-src.tar.gz
|
|
|
66970a |
BuildArch: noarch
|
|
|
66970a |
|
|
|
66970a |
Provides: ivy = %{version}-%{release}
|
|
|
66970a |
|
|
|
66970a |
BuildRequires: ant
|
|
|
66970a |
BuildRequires: jakarta-commons-httpclient
|
|
|
66970a |
BuildRequires: jsch
|
|
|
66970a |
BuildRequires: jakarta-oro
|
|
|
66970a |
BuildRequires: java-devel >= 1.5
|
|
|
66970a |
BuildRequires: jpackage-utils
|
|
|
66970a |
Requires: jpackage-utils
|
|
|
66970a |
Requires: jakarta-oro
|
|
|
66970a |
Requires: jsch
|
|
|
66970a |
Requires: ant
|
|
|
66970a |
Requires: jakarta-commons-httpclient
|
|
|
66970a |
|
|
|
66970a |
%description
|
|
|
66970a |
Apache Ivy is a tool for managing (recording, tracking, resolving and
|
|
|
66970a |
reporting) project dependencies. It is designed as process agnostic and is
|
|
|
66970a |
not tied to any methodology or structure. while available as a standalone
|
|
|
66970a |
tool, Apache Ivy works particularly well with Apache Ant providing a number
|
|
|
66970a |
of powerful Ant tasks ranging from dependency resolution to dependency
|
|
|
66970a |
reporting and publication.
|
|
|
66970a |
|
|
|
66970a |
%package javadoc
|
|
|
66970a |
Summary: API Documentation for ivy
|
|
|
66970a |
Group: Development/Tools
|
|
|
66970a |
Requires: %{name} = %{version}-%{release}
|
|
|
66970a |
Requires: jpackage-utils
|
|
|
66970a |
|
|
|
66970a |
%description javadoc
|
|
|
66970a |
JavaDoc documentation for %{name}
|
|
|
66970a |
|
|
|
66970a |
%prep
|
|
|
66970a |
%setup -q
|
|
|
66970a |
|
|
|
66970a |
# Fix messed-up encodings
|
|
|
66970a |
for F in RELEASE_NOTES README LICENSE NOTICE CHANGES.txt
|
|
|
66970a |
do
|
|
|
66970a |
sed 's/\r//' $F |iconv -f iso8859-1 -t utf8 >$F.utf8
|
|
|
66970a |
touch -r $F $F.utf8
|
|
|
66970a |
mv $F.utf8 $F
|
|
|
66970a |
done
|
|
|
66970a |
rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle
|
|
|
66970a |
|
|
|
66970a |
# Remove prebuilt documentation
|
|
|
66970a |
rm -rf doc build/doc
|
|
|
66970a |
|
|
|
66970a |
# How to properly disable a plugin?
|
|
|
66970a |
# we disable vfs plugin since commons-vfs is not available
|
|
|
66970a |
rm -rf src/java/org/apache/ivy/plugins/repository/vfs \
|
|
|
66970a |
src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
|
|
|
66970a |
sed '/vfs.*=.*org.apache.ivy.plugins.resolver.VfsResolver/d' -i \
|
|
|
66970a |
src/java/org/apache/ivy/core/settings/typedef.properties
|
|
|
66970a |
|
|
|
66970a |
%build
|
|
|
66970a |
# Craft class path
|
|
|
66970a |
mkdir -p lib
|
|
|
66970a |
build-jar-repository lib ant jakarta-commons-httpclient jakarta-oro jsch
|
|
|
66970a |
|
|
|
66970a |
# Build
|
|
|
66970a |
ant /localivy /offline -Dtarget.ivy.bundle.version=%{version} -Dtarget.ivy.bundle.version.qualifier= -Dtarget.ivy.version=%{version} jar javadoc
|
|
|
66970a |
|
|
|
66970a |
|
|
|
66970a |
%install
|
|
|
66970a |
# Code
|
|
|
66970a |
install -d $RPM_BUILD_ROOT%{_javadir}
|
|
|
66970a |
install -p -m644 build/artifact/jars/ivy.jar $RPM_BUILD_ROOT%{_javadir}/ivy.jar
|
|
|
66970a |
|
|
|
66970a |
# API Documentation
|
|
|
66970a |
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
66970a |
cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
66970a |
|
|
|
66970a |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
|
|
|
66970a |
echo "ivy" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}
|
|
|
66970a |
|
|
|
66970a |
%files
|
|
|
66970a |
%{_javadir}/*
|
|
|
66970a |
%{_sysconfdir}/ant.d/%{name}
|
|
|
66970a |
%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README
|
|
|
66970a |
|
|
|
66970a |
%files javadoc
|
|
|
66970a |
%{_javadocdir}/*
|
|
|
66970a |
%doc LICENSE NOTICE
|
|
|
66970a |
|
|
|
66970a |
%changelog
|
|
|
66970a |
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.0-4
|
|
|
66970a |
- Remove prebuilt documentation in %%prep
|
|
|
66970a |
- Install NOTICE file with javadoc subpackage
|
|
|
66970a |
- Resolves: rhbz#854311
|
|
|
66970a |
|
|
|
66970a |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3.0-3
|
|
|
66970a |
- Mass rebuild 2013-12-27
|
|
|
66970a |
|
|
|
66970a |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-2
|
|
|
66970a |
- Rebuild to regenerate API documentation
|
|
|
66970a |
- Resolves: CVE-2013-1571
|
|
|
66970a |
|
|
|
66970a |
* Fri Mar 1 2013 Alexander Kurtakov <akurtako@redhat.com> 2.3.0-1
|
|
|
66970a |
- Update to latest upstream.
|
|
|
66970a |
|
|
|
66970a |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-6
|
|
|
66970a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
66970a |
|
|
|
66970a |
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-5
|
|
|
66970a |
- Fix osgi metadata.
|
|
|
66970a |
|
|
|
66970a |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
|
|
|
66970a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
66970a |
|
|
|
66970a |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-3
|
|
|
66970a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
66970a |
|
|
|
66970a |
* Wed Jul 6 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-2
|
|
|
66970a |
- Fix ant integration.
|
|
|
66970a |
|
|
|
66970a |
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-1
|
|
|
66970a |
- Update to 2.2.0.
|
|
|
66970a |
|
|
|
66970a |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
66970a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
66970a |
|
|
|
66970a |
* Mon Nov 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.1.0-1
|
|
|
66970a |
- Initial Fedora packaging
|