2012-03-07 10:13:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package apache-ivy
|
|
|
|
#
|
2015-02-02 11:17:14 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-07 10:13:50 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-02-03 15:10:21 +01:00
|
|
|
Name: apache-ivy
|
2015-02-02 11:17:14 +01:00
|
|
|
Version: 2.4.0
|
2014-07-08 13:01:43 +02:00
|
|
|
Release: 0
|
2010-02-03 15:10:21 +01:00
|
|
|
Summary: Java-based dependency manager
|
2012-01-16 15:56:37 +01:00
|
|
|
License: Apache-2.0
|
2012-03-07 10:13:50 +01:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Url: http://ant.apache.org/ivy/
|
2015-02-02 11:17:14 +01:00
|
|
|
Source0: http://www.apache.org/dist/ant/ivy/%{version}/%{name}-%{version}-src.tar.gz
|
2013-01-03 11:00:09 +01:00
|
|
|
Source1: ivy.1
|
2015-02-02 11:17:14 +01:00
|
|
|
Source2: http://repo1.maven.org/maven2/org/apache/ivy/ivy/%{version}/ivy-%{version}.pom
|
2010-02-03 15:10:21 +01:00
|
|
|
BuildRequires: ant
|
2012-01-16 15:56:37 +01:00
|
|
|
BuildRequires: bouncycastle
|
2013-11-06 15:08:27 +01:00
|
|
|
BuildRequires: commons-httpclient
|
2012-03-07 10:13:50 +01:00
|
|
|
BuildRequires: java-devel >= 1.5
|
2013-09-09 13:50:01 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2012-03-07 10:13:50 +01:00
|
|
|
BuildRequires: jsch
|
|
|
|
BuildRequires: oro
|
2013-09-09 13:50:01 +02:00
|
|
|
Requires: javapackages-tools
|
2014-07-08 13:01:43 +02:00
|
|
|
Provides: ivy = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2010-02-03 15:10:21 +01:00
|
|
|
|
|
|
|
%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
|
2011-03-10 16:21:43 +01:00
|
|
|
Group: Development/Tools/Building
|
2010-02-03 15:10:21 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2012-01-16 15:56:37 +01:00
|
|
|
#TODO: return back when bouncycastle-pgp will be available
|
|
|
|
rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle
|
|
|
|
|
2010-02-03 15:10:21 +01:00
|
|
|
%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
|
2013-11-06 15:08:27 +01:00
|
|
|
build-jar-repository lib ant ant/ant-nodeps oro jsch commons-httpclient
|
2010-02-03 15:10:21 +01:00
|
|
|
|
|
|
|
# Build
|
2013-01-03 11:00:09 +01:00
|
|
|
ant -Dtarget.ivy.version=%{version} /localivy /offline jar javadoc
|
2010-02-03 15:10:21 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# Code
|
2013-11-06 15:08:27 +01:00
|
|
|
install -d %{buildroot}%{_javadir}
|
|
|
|
install -p -m644 build/artifact/jars/ivy.jar %{buildroot}%{_javadir}/ivy.jar
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}/%{_mavenpomdir}/
|
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}/%{_mavenpomdir}/JPP-ivy.pom
|
|
|
|
# Maven depmap
|
|
|
|
%add_maven_depmap JPP-ivy.pom ivy.jar
|
2010-02-03 15:10:21 +01:00
|
|
|
|
|
|
|
# API Documentation
|
2013-11-06 15:08:27 +01:00
|
|
|
install -d %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -rp build/doc/reports/api/. %{buildroot}%{_javadocdir}/%{name}
|
2010-02-03 15:10:21 +01:00
|
|
|
|
2013-01-03 11:00:09 +01:00
|
|
|
# Command line script
|
|
|
|
MAIN_CLASS=`sed -rn 's/^Main-Class: (.*)$/\1/gp' META-INF/MANIFEST.MF | tr -d '\r'`
|
2014-07-08 13:18:13 +02:00
|
|
|
%jpackage_script "${MAIN_CLASS}" "" "" ant:ant/ant-nodeps:ivy:oro:jsch:commons-httpclient ivy
|
2013-11-06 15:08:27 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
|
|
|
|
echo "ivy" > %{buildroot}%{_sysconfdir}/ant.d/%{name}
|
2013-01-03 11:00:09 +01:00
|
|
|
|
|
|
|
# Man page
|
2014-07-08 13:01:43 +02:00
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
install %{SOURCE1} %{buildroot}%{_mandir}/man1/ivy.1
|
2013-01-03 11:00:09 +01:00
|
|
|
|
2010-02-03 15:10:21 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README
|
2013-11-06 15:08:27 +01:00
|
|
|
%config %{_sysconfdir}/ant.d/%{name}
|
|
|
|
%{_javadir}/ivy.jar
|
2013-01-03 11:00:09 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
|
|
|
%attr(644,root,root) %{_mandir}/man1/*
|
2013-11-06 15:08:27 +01:00
|
|
|
%{_mavenpomdir}/JPP-ivy.pom
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2010-02-03 15:10:21 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadocdir}/*
|
|
|
|
|
|
|
|
%changelog
|