SHA256
1
0
forked from pool/apache-ivy
Michal Vyskocil 2012-03-07 09:13:50 +00:00 committed by Git OBS Bridge
parent cc2e6ecd23
commit f7a79dc92e

View File

@ -1,13 +1,31 @@
#
# spec file for package apache-ivy
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: apache-ivy Name: apache-ivy
Version: 2.2.0 Version: 2.2.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: Java-based dependency manager Summary: Java-based dependency manager
Group: Development/Tools/Building
License: Apache-2.0 License: Apache-2.0
URL: http://ant.apache.org/ivy/ Group: Development/Tools/Building
Url: http://ant.apache.org/ivy/
Source0: http://www.apache.org/dist/ant/ivy/2.1.0/%{name}-%{version}-src.tar.gz Source0: http://www.apache.org/dist/ant/ivy/2.1.0/%{name}-%{version}-src.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
Provides: ivy = %{version}-%{release} Provides: ivy = %{version}-%{release}
@ -19,11 +37,11 @@ BuildRequires: jakarta-commons-httpclient3
%else %else
BuildRequires: commons-httpclient BuildRequires: commons-httpclient
%endif %endif
BuildRequires: bouncycastle
BuildRequires: java-devel >= 1.5
BuildRequires: jpackage-utils
BuildRequires: jsch BuildRequires: jsch
BuildRequires: oro BuildRequires: oro
BuildRequires: java-devel >= 1.5
BuildRequires: bouncycastle
BuildRequires: jpackage-utils
Requires: jpackage-utils Requires: jpackage-utils
%description %description
@ -58,7 +76,6 @@ done
#TODO: return back when bouncycastle-pgp will be available #TODO: return back when bouncycastle-pgp will be available
rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle rm -fr src/java/org/apache/ivy/plugins/signer/bouncycastle
%build %build
# Remove prebuilt documentation # Remove prebuilt documentation
rm -rf doc build/doc rm -rf doc build/doc
@ -82,7 +99,6 @@ commons-httpclient
# Build # Build
ant /localivy /offline jar javadoc ant /localivy /offline jar javadoc
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -95,22 +111,16 @@ ln -sf ivy-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ivy.jar
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_javadir}/* %{_javadir}/*
%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README %doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README
%files javadoc %files javadoc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_javadocdir}/* %{_javadocdir}/*
%changelog %changelog
* Mon Nov 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.1.0-1
- Initial Fedora packaging