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