- Initial SUSE packaging of apache-commons-codec 1.6

OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-codec?expand=0&rev=2
This commit is contained in:
2012-02-28 09:57:37 +00:00
committed by Git OBS Bridge
parent e7c04261e0
commit d3153da49b
4 changed files with 16 additions and 50 deletions

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Feb 28 09:57:04 UTC 2012 - mvyskocil@suse.cz
- Initial SUSE packaging of apache-commons-codec 1.6

View File

@@ -47,8 +47,8 @@
%define section free
Name: apache-commons-codec
Version: 1.4
Release: 5
Version: 1.6
Release: 0
License: Apache-2.0
Summary: Apache Commons Codec Package
Group: Development/Libraries/Java
@@ -59,12 +59,11 @@ Source1: %{name}-settings.xml
Source2: %{name}-jpp-depmap.xml
Source3: %{name}-component-info.xml
Source4: MANIFEST.MF
BuildRequires: jpackage-utils >= 1.7.5
BuildRequires: java-devel >= 1.6.0
BuildRequires: ant >= 1.7
BuildRequires: ant-junit
BuildRequires: junit
BuildRequires: java-javadoc
BuildRequires: ant-junit >= 1.7
BuildRequires: java-devel >= 1.6.0
%if %with maven
BuildRequires: apache-commons-parent >= 12
BuildRequires: maven2 >= 2.0.8
@@ -95,21 +94,6 @@ BuildArch: noarch
Commons Codec is an attempt to provide definitive implementations of
commonly used encoders and decoders.
%if %with repolib
%package repolib
Summary: Artifacts to be uploaded to a repository library
Group: Development/Libraries/Java
Provides: jakarta-%{short_name}-repolib = %{version}
Obsoletes: jakarta-%{short_name}-repolib < %{version}
Provides: %{short_name}-repolib = %{version}
Obsoletes: %{short_name}-repolib < %{version}
%description repolib
Artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio
%endif
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Libraries/Java
@@ -126,8 +110,7 @@ Javadoc for %{name}.
%setup -q -n %{short_name}-%{version}-src
#fixes eof encoding
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' RELEASE-NOTES.txt
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
%if %with maven
@@ -200,22 +183,6 @@ ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/jakarta-%{short_name}-%{vers
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/jakarta-%{short_name}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%if %with repolib
install -d -m 0755 %{buildroot}%{repodir}
install -d -m 0755 %{buildroot}%{repodirlib}
install -p -m 0644 %{SOURCE3} %{buildroot}%{repodir}/component-info.xml
tag=`/bin/echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml
install -d -m 0755 %{buildroot}%{repodirsrc}
install -p -m 0644 %{SOURCE0} %{buildroot}%{repodirsrc}
install -p -m 0644 %{SOURCE1} %{buildroot}%{repodirsrc}
install -p -m 0644 %{SOURCE2} %{buildroot}%{repodirsrc}
install -p -m 0644 %{SOURCE3} %{buildroot}%{repodirsrc}
cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/%{short_name}.jar
%endif
%post
%update_maven_depmap
@@ -233,12 +200,6 @@ cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/%
%defattr(0644,root,root,0755)
%{_javadocdir}/*
%if %with repolib
%files repolib
%defattr(0644,root,root,0755)
%{repodir}
%endif
%changelog
* Sun Dec 18 2011 Minh Ngo <nlminhtl@gmail.com> 1.4-13
- Fixing the license for openSUSE packages
@@ -359,4 +320,4 @@ cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/%
- use perl instead of patch
* Wed May 28 2003 Ville Skyttä <jpackage-discuss at zarb.org> - 0:1.1-1jpp
- First JPackage release.
- First JPackage release.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6deb892bdca68c79ed1a9fe7fb0ac95d1e89ee1e1eb4f40a07144983f1d867e6
size 176523

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae7bc26118cf1b58d8bed62ed364612d5a2380ad14acb03ca88ff3bab22b2e8b
size 262206