2012-10-25 11:37:36 +02:00
|
|
|
#
|
2013-03-21 12:28:25 +01:00
|
|
|
# spec file for package apache-commons-io
|
2012-10-25 11:37:36 +02:00
|
|
|
#
|
2017-05-21 09:51:41 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-25 11:37:36 +02: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/
|
|
|
|
#
|
|
|
|
|
2013-03-21 12:28:25 +01:00
|
|
|
|
2012-10-25 11:37:36 +02:00
|
|
|
%define base_name io
|
|
|
|
%define short_name commons-%{base_name}
|
|
|
|
Name: apache-commons-io
|
|
|
|
Version: 2.4
|
|
|
|
Release: 0
|
|
|
|
Summary: Utilities to assist with developing IO functionality
|
|
|
|
License: Apache-2.0
|
2013-03-21 12:28:25 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Url: http://commons.apache.org/%{base_name}
|
|
|
|
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
2012-10-25 11:37:36 +02:00
|
|
|
#PATCH-FIX-OPENSUSE: fix the version property to 2.4
|
|
|
|
Patch0: commons-io-version-property.patch
|
|
|
|
BuildRequires: ant >= 1.6
|
2017-05-19 12:13:47 +02:00
|
|
|
BuildRequires: javapackages-local
|
2013-09-09 13:49:51 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2012-10-25 11:37:36 +02:00
|
|
|
Provides: %{short_name} = %{version}-%{release}
|
|
|
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
|
|
|
Obsoletes: jakarta-%{short_name} <= %{version}
|
2014-07-07 16:53:20 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2012-10-25 11:37:36 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Commons-IO contains utility classes, stream implementations,
|
|
|
|
file filters, and endian classes. It is a library of utilities
|
|
|
|
to assist with developing IO functionality.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Commons IO Package
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
|
|
%patch0 -p1
|
|
|
|
# wrong end of line encoding
|
|
|
|
sed -i -e 's/.$//' *.txt
|
|
|
|
|
|
|
|
%build
|
2014-07-07 16:53:20 +02:00
|
|
|
export OPT_JAR_LIST="junit"
|
2012-10-25 11:37:36 +02:00
|
|
|
export CLASSPATH=
|
|
|
|
CLASSPATH=target/classes:target/test-classes:$CLASSPATH
|
|
|
|
ant -Dbuild.sysclasspath=only dist
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
|
install -p -m 0644 target/%{short_name}-%{version}.jar \
|
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
|
|
|
|
|
|
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-io"
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
|
|
|
%{_javadir}/*.jar
|
|
|
|
%{_mavenpomdir}/JPP-%{short_name}.pom
|
2015-03-18 11:05:49 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
2012-10-25 11:37:36 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|