1
0

- Cleanup bit with spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-beanutils?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal 2014-07-08 11:36:09 +00:00 committed by Git OBS Bridge
parent 3f178490f6
commit ca3da81218
2 changed files with 16 additions and 24 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 8 11:35:52 UTC 2014 - tchvatal@suse.com
- Cleanup bit with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 7 08:04:04 UTC 2014 - dmacvicar@suse.de Mon Jul 7 08:04:04 UTC 2014 - dmacvicar@suse.de

View File

@ -14,37 +14,31 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# icecream 0
%define base_name beanutils %define base_name beanutils
%define short_name commons-%{base_name} %define short_name commons-%{base_name}
Name: apache-commons-beanutils Name: apache-commons-beanutils
Version: 1.9.2 Version: 1.9.2
Release: 0 Release: 0
Summary: Utility methods for accessing and modifying the properties of JavaBeans Summary: Utility methods for accessing and modifying the properties of JavaBeans
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
Source0: commons-beanutils-%{version}-src.tar.gz
Url: http://commons.apache.org/beanutils Url: http://commons.apache.org/beanutils
Source0: commons-beanutils-%{version}-src.tar.gz
BuildRequires: ant BuildRequires: ant
BuildRequires: commons-collections BuildRequires: commons-collections
BuildRequires: commons-logging BuildRequires: commons-logging
BuildRequires: java-devel >= 1.6.0 BuildRequires: java-devel >= 1.6.0
BuildRequires: xml-commons-apis BuildRequires: xml-commons-apis
Requires: commons-collections >= 2.0 Requires: commons-collections >= 2.0
Requires: commons-logging >= 1.0 Requires: commons-logging >= 1.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: %{short_name} = %{version}-%{release} Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} < %{version}-%{release} Obsoletes: %{short_name} < %{version}-%{release}
Provides: jakarta-%{short_name} = %{version}-%{release} Provides: jakarta-%{short_name} = %{version}-%{release}
Obsoletes: jakarta-%{short_name} < %{version}-%{release} Obsoletes: jakarta-%{short_name} < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
The scope of this package is to create a package of Java utility The scope of this package is to create a package of Java utility
@ -52,9 +46,7 @@ methods for accessing and modifying the properties of arbitrary
JavaBeans. No dependencies outside of the JDK are required, so the use JavaBeans. No dependencies outside of the JDK are required, so the use
of this package is very lightweight. of this package is very lightweight.
%package javadoc %package javadoc
PreReq: coreutils
Summary: Javadoc for jakarta-commons-beanutils Summary: Javadoc for jakarta-commons-beanutils
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -67,10 +59,8 @@ are required, so the use of this package is very lightweight.
This package contains the javadoc documentation for the Jakarta Commons This package contains the javadoc documentation for the Jakarta Commons
BeanUtils Package. BeanUtils Package.
%prep %prep
%setup -n %{short_name}-%{version}-src %setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' *.txt sed -i 's/\r//' *.txt
# bug in ant build # bug in ant build
touch README.txt touch README.txt
@ -81,24 +71,21 @@ ant -Dbuild.sysclasspath=first dist
%install %install
# jars # jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 %{buildroot}%{_javadir}
install -m 644 dist/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
pushd $RPM_BUILD_ROOT%{_javadir} pushd %{buildroot}%{_javadir}
for jar in *.jar; do for jar in *.jar; do
ln -sf ${jar} `echo $jar| sed "s|apache-||g"` ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
done done
popd # come back from javadir popd # come back from javadir
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
# javadoc # javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)