Cleanup spec file

This commit is contained in:
Mikolaj Izdebski 2018-01-29 09:04:31 +01:00
parent dbd1a897ba
commit 75836ffa43

View File

@ -1,19 +1,12 @@
# READ BEFORE UPDATING: After updating this package to new upstream Name: apache-commons-codec
# version eclipse-ecf should be rebuilt. For more info, see:
# https://fedoraproject.org/wiki/SIGs/Java#Package_Update.2FRebuild_Notes
%global base_name codec
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.11 Version: 1.11
Release: 1%{?dist} Release: 2%{?dist}
Summary: Implementations of common encoders and decoders Summary: Implementations of common encoders and decoders
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/%{base_name}/ URL: http://commons.apache.org/codec/
BuildArch: noarch BuildArch: noarch
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Source0: http://archive.apache.org/dist/commons/codec/source/commons-codec-%{version}-src.tar.gz
# Data in DoubleMetaphoneTest.java originally has an inadmissible license. # Data in DoubleMetaphoneTest.java originally has an inadmissible license.
# The author gives MIT in e-mail communication. # The author gives MIT in e-mail communication.
Source1: aspell-mail.txt Source1: aspell-mail.txt
@ -27,19 +20,15 @@ Commons Codec is an attempt to provide definitive implementations of
commonly used encoders and decoders. Examples include Base64, Hex, commonly used encoders and decoders. Examples include Base64, Hex,
Phonetic and URLs. Phonetic and URLs.
%package javadoc %{?javadoc_package}
Summary: API documentation for %{name}
%description javadoc
%{summary}.
%prep %prep
%setup -q -n %{short_name}-%{version}-src %autosetup -n commons-codec-%{version}-src
cp %{SOURCE1} aspell-mail.txt cp %{SOURCE1} aspell-mail.txt
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
%mvn_file : %{short_name} %{name} %mvn_file : commons-codec %{name}
%mvn_alias : %{short_name}:%{short_name} %mvn_alias : commons-codec:commons-codec
%build %build
%mvn_build %mvn_build
@ -51,10 +40,10 @@ sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
%license LICENSE.txt NOTICE.txt aspell-mail.txt %license LICENSE.txt NOTICE.txt aspell-mail.txt
%doc RELEASE-NOTES* %doc RELEASE-NOTES*
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt aspell-mail.txt
%changelog %changelog
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-2
- Cleanup spec file
* Fri Nov 24 2017 Mat Booth <mat.booth@redhat.com> - 1.11-1 * Fri Nov 24 2017 Mat Booth <mat.booth@redhat.com> - 1.11-1
- Update to latest upstream version - Update to latest upstream version