From 73f13c4963d9726167c4d180613ac147c2f4ab8b Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jun 28 2013 13:19:31 +0000 Subject: import apache-ivy-2.3.0-2.el7.src.rpm --- diff --git a/.apache-ivy.metadata b/.apache-ivy.metadata new file mode 100644 index 0000000..db8d798 --- /dev/null +++ b/.apache-ivy.metadata @@ -0,0 +1 @@ +244213bd0d0f344e17678ccbc72b341db6c5b9a3 SOURCES/apache-ivy-2.3.0-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/apache-ivy.spec b/SPECS/apache-ivy.spec new file mode 100644 index 0000000..6316884 --- /dev/null +++ b/SPECS/apache-ivy.spec @@ -0,0 +1,125 @@ +Name: apache-ivy +Version: 2.3.0 +Release: 2%{?dist} +Summary: Java-based dependency manager + +Group: Development/Tools +License: ASL 2.0 +URL: http://ant.apache.org/ivy/ +Source0: http://www.apache.org/dist/ant/ivy/%{version}/%{name}-%{version}-src.tar.gz +BuildArch: noarch + +Provides: ivy = %{version}-%{release} + +BuildRequires: ant +BuildRequires: jakarta-commons-httpclient +BuildRequires: jsch +BuildRequires: jakarta-oro +BuildRequires: java-devel >= 1.5 +BuildRequires: jpackage-utils +Requires: jpackage-utils +Requires: jakarta-oro +Requires: jsch +Requires: ant +Requires: jakarta-commons-httpclient + +%description +Apache Ivy is a tool for managing (recording, tracking, resolving and +reporting) project dependencies. It is designed as process agnostic and is +not tied to any methodology or structure. while available as a standalone +tool, Apache Ivy works particularly well with Apache Ant providing a number +of powerful Ant tasks ranging from dependency resolution to dependency +reporting and publication. + +%package javadoc +Summary: API Documentation for ivy +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils + +%description javadoc +JavaDoc documentation for %{name} + +%prep +%setup -q + +# Fix messed-up encodings +for F in RELEASE_NOTES README LICENSE NOTICE CHANGES.txt +do + sed 's/\r//' $F |iconv -f iso8859-1 -t utf8 >$F.utf8 + touch -r $F $F.utf8 + mv $F.utf8 $F +done +rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle + +%build +# Remove prebuilt documentation +rm -rf doc build/doc + +# How to properly disable a plugin? +# we disable vfs plugin since commons-vfs is not available +rm -rf src/java/org/apache/ivy/plugins/repository/vfs \ + src/java/org/apache/ivy/plugins/resolver/VfsResolver.java +sed '/vfs.*=.*org.apache.ivy.plugins.resolver.VfsResolver/d' -i \ + src/java/org/apache/ivy/core/settings/typedef.properties + +# Craft class path +mkdir -p lib +build-jar-repository lib ant jakarta-commons-httpclient jakarta-oro jsch + +# Build +ant /localivy /offline -Dtarget.ivy.bundle.version=%{version} -Dtarget.ivy.bundle.version.qualifier= -Dtarget.ivy.version=%{version} jar javadoc + + +%install +# Code +install -d $RPM_BUILD_ROOT%{_javadir} +install -p -m644 build/artifact/jars/ivy.jar $RPM_BUILD_ROOT%{_javadir}/ivy.jar + +# API Documentation +install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d +echo "ivy" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name} + +%files +%{_javadir}/* +%{_sysconfdir}/ant.d/%{name} +%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README + +%files javadoc +%{_javadocdir}/* +%doc LICENSE + +%changelog +* Fri Jun 28 2013 Mikolaj Izdebski - 2.3.0-2 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Fri Mar 1 2013 Alexander Kurtakov 2.3.0-1 +- Update to latest upstream. + +* Wed Feb 13 2013 Fedora Release Engineering - 2.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jul 31 2012 Alexander Kurtakov 2.2.0-5 +- Fix osgi metadata. + +* Wed Jul 18 2012 Fedora Release Engineering - 2.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 2.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Jul 6 2011 Alexander Kurtakov 2.2.0-2 +- Fix ant integration. + +* Fri Feb 25 2011 Alexander Kurtakov 2.2.0-1 +- Update to 2.2.0. + +* Mon Feb 07 2011 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Nov 09 2009 Lubomir Rintel - 2.1.0-1 +- Initial Fedora packaging