Blame SPECS/apache-ivy.spec

1c4e74
%global pkg_name apache-ivy
1c4e74
%{?scl:%scl_package %{pkg_name}}
1c4e74
%{?maven_find_provides_and_requires}
1c4e74
1c4e74
Name:           %{?scl_prefix}%{pkg_name}
1c4e74
Version:        2.3.0
1c4e74
Release:        4.17%{?dist}
1c4e74
Summary:        Java-based dependency manager
1c4e74
1c4e74
License:        ASL 2.0
1c4e74
URL:            http://ant.apache.org/ivy/
1c4e74
Source0:        http://www.apache.org/dist/ant/ivy/%{version}/%{pkg_name}-%{version}-src.tar.gz
1c4e74
BuildArch:      noarch
1c4e74
1c4e74
1c4e74
BuildRequires:  %{?scl_prefix_java_common}ant
1c4e74
BuildRequires:  %{?scl_prefix_java_common}jakarta-commons-httpclient
1c4e74
BuildRequires:  %{?scl_prefix_java_common}jsch
1c4e74
BuildRequires:  %{?scl_prefix_java_common}jakarta-oro
1c4e74
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
1c4e74
Requires:       %{?scl_prefix_java_common}jakarta-oro
1c4e74
Requires:       %{?scl_prefix_java_common}jsch
1c4e74
Requires:       %{?scl_prefix_java_common}ant
1c4e74
Requires:       %{?scl_prefix_java_common}jakarta-commons-httpclient
1c4e74
1c4e74
%description
1c4e74
Apache Ivy is a tool for managing (recording, tracking, resolving and
1c4e74
reporting) project dependencies.  It is designed as process agnostic and is
1c4e74
not tied to any methodology or structure. while available as a standalone
1c4e74
tool, Apache Ivy works particularly well with Apache Ant providing a number
1c4e74
of powerful Ant tasks ranging from dependency resolution to dependency
1c4e74
reporting and publication.
1c4e74
1c4e74
%package javadoc
1c4e74
Summary:        API Documentation for ivy
1c4e74
Requires:       %{name} = %{version}-%{release}
1c4e74
1c4e74
%description javadoc
1c4e74
JavaDoc documentation for %{pkg_name}
1c4e74
1c4e74
%prep
1c4e74
%setup -q -n %{pkg_name}-%{version}
1c4e74
%{?scl:scl enable %{scl} - <<"EOF"}
1c4e74
set -e -x
1c4e74
1c4e74
# Fix messed-up encodings
1c4e74
for F in RELEASE_NOTES README LICENSE NOTICE CHANGES.txt
1c4e74
do
1c4e74
        sed 's/\r//' $F |iconv -f iso8859-1 -t utf8 >$F.utf8
1c4e74
        touch -r $F $F.utf8
1c4e74
        mv $F.utf8 $F
1c4e74
done
1c4e74
rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle
1c4e74
1c4e74
# Remove prebuilt documentation
1c4e74
rm -rf doc build/doc
1c4e74
1c4e74
# How to properly disable a plugin?
1c4e74
# we disable vfs plugin since commons-vfs is not available
1c4e74
rm -rf src/java/org/apache/ivy/plugins/repository/vfs \
1c4e74
        src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
1c4e74
sed '/vfs.*=.*org.apache.ivy.plugins.resolver.VfsResolver/d' -i \
1c4e74
        src/java/org/apache/ivy/core/settings/typedef.properties
1c4e74
%{?scl:EOF}
1c4e74
1c4e74
%build
1c4e74
%{?scl:scl enable %{scl} - <<"EOF"}
1c4e74
set -e -x
1c4e74
# Craft class path
1c4e74
mkdir -p lib
1c4e74
build-jar-repository lib ant/ant jakarta-commons-httpclient jakarta-oro jsch
1c4e74
1c4e74
# Build
1c4e74
ant /localivy /offline -Dtarget.ivy.bundle.version=%{version} -Dtarget.ivy.bundle.version.qualifier= -Dtarget.ivy.version=%{version} jar javadoc
1c4e74
%{?scl:EOF}
1c4e74
1c4e74
1c4e74
%install
1c4e74
%{?scl:scl enable %{scl} - <<"EOF"}
1c4e74
set -e -x
1c4e74
# Code
1c4e74
install -d $RPM_BUILD_ROOT%{_javadir}
1c4e74
install -p -m644 build/artifact/jars/ivy.jar $RPM_BUILD_ROOT%{_javadir}/ivy.jar
1c4e74
1c4e74
# API Documentation
1c4e74
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}
1c4e74
cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name}
1c4e74
1c4e74
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir_java_common}/ant.d
1c4e74
echo "ivy" > $RPM_BUILD_ROOT%{_sysconfdir_java_common}/ant.d/%{pkg_name}
1c4e74
1c4e74
# Maven POM and depmap
1c4e74
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
1c4e74
install -d -m 755 $RPM_BUILD_ROOT%{_mavendepmapfragdir}
1c4e74
echo "<project><modelVersion>4.0.0</modelVersion><groupId>org.apache.ivy</groupId><artifactId>ivy</artifactId><version>2.3.0</version></project>" >$RPM_BUILD_ROOT%{_mavenpomdir}/JPP-ivy.pom
1c4e74
%add_maven_depmap JPP-ivy.pom ivy.jar
1c4e74
%{?scl:EOF}
1c4e74
1c4e74
%files -f .mfiles
1c4e74
%{_sysconfdir_java_common}/ant.d/%{pkg_name}
1c4e74
%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README
1c4e74
1c4e74
%files javadoc
1c4e74
%{_javadocdir}/*
1c4e74
%doc LICENSE NOTICE
1c4e74
1c4e74
%changelog
1c4e74
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 2.3.0-4.17
1c4e74
- Fix BR on maven-local & co.
1c4e74
1c4e74
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 2.3.0-4.16
1c4e74
- maven33 rebuild #2
1c4e74
1c4e74
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 2.3.0-4.15
1c4e74
- maven33 rebuild
1c4e74
1c4e74
* Thu Jan 15 2015 Michael Simacek <msimacek@redhat.com> - 2.3.0-4.14
1c4e74
- Replace hardcoded path with macro
1c4e74
1c4e74
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.3.0-4.13
1c4e74
- Mass rebuild 2015-01-13
1c4e74
1c4e74
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 2.3.0-4.12
1c4e74
- BR/R on packages from rh-java-common
1c4e74
1c4e74
* Fri Jan 09 2015 Michael Simacek <msimacek@redhat.com> - 2.3.0-4.11
1c4e74
- Install ant.d file into rh-java-common's ant.d
1c4e74
1c4e74
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 2.3.0-4.10
1c4e74
- Migrate to .mfiles
1c4e74
1c4e74
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 2.3.0-4.9
1c4e74
- Mass rebuild 2015-01-06
1c4e74
1c4e74
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.8
1c4e74
- Install Maven POM and depmap
1c4e74
1c4e74
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.7
1c4e74
- Mass rebuild 2014-05-26
1c4e74
1c4e74
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.6
1c4e74
- Mass rebuild 2014-02-19
1c4e74
1c4e74
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.5
1c4e74
- Mass rebuild 2014-02-18
1c4e74
1c4e74
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.4
1c4e74
- Remove requires on java
1c4e74
1c4e74
* Fri Feb 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.3
1c4e74
- SCL-ize requires and build-requires
1c4e74
1c4e74
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.2
1c4e74
- Rebuild to regenerate auto-requires
1c4e74
1c4e74
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-4.1
1c4e74
- First maven30 software collection build
1c4e74
1c4e74
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.0-4
1c4e74
- Remove prebuilt documentation in %%prep
1c4e74
- Install NOTICE file with javadoc subpackage
1c4e74
- Resolves: rhbz#854311
1c4e74
1c4e74
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3.0-3
1c4e74
- Mass rebuild 2013-12-27
1c4e74
1c4e74
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-2
1c4e74
- Rebuild to regenerate API documentation
1c4e74
- Resolves: CVE-2013-1571
1c4e74
1c4e74
* Fri Mar 1 2013 Alexander Kurtakov <akurtako@redhat.com> 2.3.0-1
1c4e74
- Update to latest upstream.
1c4e74
1c4e74
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-6
1c4e74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1c4e74
1c4e74
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-5
1c4e74
- Fix osgi metadata.
1c4e74
1c4e74
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
1c4e74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1c4e74
1c4e74
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-3
1c4e74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1c4e74
1c4e74
* Wed Jul 6 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-2
1c4e74
- Fix ant integration.
1c4e74
1c4e74
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.0-1
1c4e74
- Update to 2.2.0.
1c4e74
1c4e74
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
1c4e74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1c4e74
1c4e74
* Mon Nov 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.1.0-1
1c4e74
- Initial Fedora packaging