7c98ded
%global base_name codec
7c98ded
%global short_name commons-%{base_name}
7c98ded
7c98ded
Name:          apache-%{short_name}
Mat Booth e17c8a3
Version:       1.8
Mat Booth e17c8a3
Release:       1%{?dist}
7c98ded
Summary:       Implementations of common encoders and decoders
7c98ded
Group:         Development/Libraries
7c98ded
License:       ASL 2.0
7c98ded
URL:           http://commons.apache.org/%{base_name}/
7c98ded
7c98ded
Source0:       http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
7c98ded
7c98ded
7c98ded
BuildArch:     noarch
7c98ded
Mat Booth 943a2ce
BuildRequires: java-devel
7c98ded
BuildRequires: jpackage-utils
Mat Booth 943a2ce
BuildRequires: maven-local
3a3cec5
BuildRequires: maven-antrun-plugin
3a3cec5
BuildRequires: maven-assembly-plugin
3a3cec5
BuildRequires: maven-compiler-plugin
3a3cec5
BuildRequires: maven-install-plugin
3a3cec5
BuildRequires: maven-jar-plugin
3a3cec5
BuildRequires: maven-javadoc-plugin
3a3cec5
BuildRequires: maven-resources-plugin
7c98ded
BuildRequires: maven-doxia-sitetools
7c98ded
BuildRequires: maven-plugin-bundle
3f07a7d
BuildRequires: maven-surefire-plugin
3f07a7d
BuildRequires: maven-surefire-provider-junit4
Mat Booth 943a2ce
Requires:      java
7c98ded
Requires:      jpackage-utils
7c98ded
Mat Booth 88832cb
# It looks like there are packages in F-18 that BR/R the short name
7b3af78
Provides:      %{short_name} = %{version}-%{release}
7b3af78
Obsoletes:     %{short_name} < %{version}-%{release}
1a07b58
# Provide and obsolete jakarta-commons-codec to support installing this
1a07b58
# package on RHEL 6, which still uses the old jakarta-commons-* package
1a07b58
# naming scheme.
4d643ae
Provides:      jakarta-%{short_name} = %{version}-%{release}
4d643ae
Obsoletes:     jakarta-%{short_name} < %{version}-%{release}
7c98ded
7c98ded
%description
7c98ded
Commons Codec is an attempt to provide definitive implementations of
7c98ded
commonly used encoders and decoders. Examples include Base64, Hex,
7c98ded
Phonetic and URLs.
7c98ded
7c98ded
%package javadoc
7c98ded
Summary:       API documentation for %{name}
7c98ded
Group:         Documentation
7c98ded
Requires:      jpackage-utils
4d643ae
Provides:      jakarta-%{short_name}-javadoc = %{version}-%{release}
4d643ae
Obsoletes:     jakarta-%{short_name}-javadoc < %{version}-%{release}
7c98ded
7c98ded
%description javadoc
7c98ded
%{summary}.
7c98ded
7c98ded
%prep
7c98ded
%setup -q -n %{short_name}-%{version}-src
7c98ded
7c98ded
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
7c98ded
7c98ded
%build
Mat Booth 943a2ce
mvn-rpmbuild install javadoc:aggregate
7c98ded
7c98ded
%install
7c98ded
# jars
d801e43
install -d -m 755 %{buildroot}%{_javadir}
d801e43
install -p -m 644 target/%{short_name}-%{version}.jar \
mbooth 082709f
  %{buildroot}%{_javadir}/%{short_name}.jar
b4c9232
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
7c98ded
7c98ded
# javadocs
mbooth 082709f
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
mbooth 082709f
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
7c98ded
7c98ded
# pom
d801e43
install -d -m 755 %{buildroot}%{_mavenpomdir}
d801e43
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
3a3cec5
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "%{short_name}:%{short_name}"
mbooth 082709f
7c98ded
%files
7c98ded
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES*
7c98ded
%{_mavendepmapfragdir}/*
7c98ded
%{_mavenpomdir}/*
7c98ded
%{_javadir}/*
7c98ded
7c98ded
%files javadoc
d801e43
%doc LICENSE.txt NOTICE.txt
7c98ded
%{_javadocdir}/%{name}
7c98ded
7c98ded
%changelog
Mat Booth e17c8a3
* Fri May 03 2013 Mat Booth <fedora@matbooth.co.uk> - 1.8-1
Mat Booth e17c8a3
- Update to 1.8, rhbz #957598
Mat Booth e17c8a3
c76a1f8
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-5
c76a1f8
- Remove unneeded BR: maven-idea-plugin
c76a1f8
Mat Booth 943a2ce
* Mon Feb 18 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.7-4
Mat Booth 943a2ce
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Mat Booth 943a2ce
- Replace maven BuildRequires with maven-local
Mat Booth 943a2ce
d640075
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
d640075
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d640075
4d643ae
* Mon Nov 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-2
4d643ae
- Add Provides/Obsoletes for jakarta-commons-codec
4d643ae
Mat Booth 88832cb
* Thu Oct 25 2012 Mat Booth <fedora@matbooth.co.uk> - 1.7-1
Mat Booth 88832cb
- Update to 1.7.
Mat Booth 88832cb
- Can finally remove the provides/obsoletes on the old jakarta name.
Mat Booth 88832cb
b4c9232
* Mon Sep 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-5
b4c9232
- Restore apache-commons-codec.jar symlink, resolves #857947
b4c9232
d801e43
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-4
d801e43
- Enable tests
d801e43
- Install NOTICE with javadoc package
d801e43
- Fix file permissions
d801e43
- Remove versioned symlinks
d801e43
43f5df7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
43f5df7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
43f5df7
e608b0a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
e608b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e608b0a
3f07a7d
* Wed Dec 7 2011 akurtakov <akurtakov@rh.akurtakov> 1.6-1
3f07a7d
- Update to latest upstream (1.6).
3f07a7d
3a3cec5
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.4-13
3a3cec5
- Build with maven 3.
3a3cec5
- Adapt to current guidelines.
3a3cec5
mbooth 082709f
* Thu Feb 10 2011 mbooth <mbooth@sd.matbooth.co.uk> 1.4-12
mbooth 082709f
- Drop versioned jars and javadocs.
mbooth 082709f
9c8e175
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
9c8e175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9c8e175
f850082
* Fri May 21 2010 Mat Booth <fedora@matbooth.co.uk> 1.4-10
f850082
- Correct dep-map names #594717.
f850082
7b3af78
* Fri May 21 2010 Alexander Kurtakov <akurtako@redhat.com> 1.4-9
7b3af78
- Obsolete/Provide commons-codec.
7b3af78
7c98ded
* Fri May 14 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-8
7c98ded
- Obsolete jakarta javadoc package.
7c98ded
- Keep legacy depmap around.
7c98ded
7c98ded
* Thu May 13 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-7
7c98ded
- Use global instead of define.
7c98ded
- Drop really old obsoletes/provides on short_name.
7c98ded
- Fix requires.
7c98ded
7c98ded
* Tue May 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-6
7c98ded
- Rename package (jakarta-commons-codec->apache-commons-codec).
7c98ded
7c98ded
* Tue Dec 8 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-5
7c98ded
- Enable OSGi automatic depsolving (from Alphonse Van Assche).
7c98ded
7c98ded
* Sun Nov 8 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-4
7c98ded
- Fix javadoc package requires
7c98ded
7c98ded
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-3
7c98ded
- Correct Obsoletes/Provides according to naming guidelines
7c98ded
7c98ded
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-2
7c98ded
- Add all maven related build reqs
7c98ded
- Require Java 1.6 because tests fail on GCJ
7c98ded
7c98ded
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-1
7c98ded
- Update to 1.4
7c98ded
- Rewrite spec file to build using upstream-preferred maven instead of ant
7c98ded
- Drop patch to add OSGi manifest (done automatically in the maven build)
7c98ded
- Install pom and add to maven dep-map
7c98ded
- Re-enable all tests
7c98ded
7c98ded
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-11.4
7c98ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7c98ded
7c98ded
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-10.4
7c98ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7c98ded
7c98ded
* Thu Jul 24 2008 Andrew Overholt <overholt@redhat.com> 1.3-9.4
7c98ded
- Update OSGi manifest.
7c98ded
7c98ded
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.3-9.3
7c98ded
- drop repotag
7c98ded
- fix license tag
7c98ded
7c98ded
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.3-9jpp.2
7c98ded
- Autorebuild for GCC 4.3
7c98ded
7c98ded
* Thu Sep 06 2007 Andrew Overholt <overholt@redhat.com> 1.3-8jpp.2
7c98ded
- Add OSGi manifest.
7c98ded
7c98ded
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.3-8jpp.1
7c98ded
- Update to latest jpp version
7c98ded
- Fix rpmlint issues
7c98ded
7c98ded
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.3-8jpp
7c98ded
- Fix some rpmlint warnings
7c98ded
- Update copyright year
7c98ded
7c98ded
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> 0:1.3-7jpp.2
7c98ded
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
7c98ded
7c98ded
* Tue Sep 26 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-7jpp.1
7c98ded
- Merge with upstream version.
7c98ded
7c98ded
* Tue Sep 26 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-7jpp
7c98ded
- Add missing java-javadoc requires and buildrequires.
7c98ded
7c98ded
* Mon Sep 25 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-6jpp.1
7c98ded
- Merge with upstream version.
7c98ded
7c98ded
* Mon Sep 25 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-6jpp
7c98ded
- Update jakarta-commons-codec-1.3-buildscript.patch to build
7c98ded
  offline.
7c98ded
7c98ded
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-5jpp.1
7c98ded
- Merge with upstream version
7c98ded
 - Add missing javadoc requires
7c98ded
7c98ded
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3-4jpp_2fc
7c98ded
- Rebuilt
7c98ded
7c98ded
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-4jpp_1fc
7c98ded
- Merged with upstream version
7c98ded
- Now is natively compiled
7c98ded
7c98ded
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-4jpp
7c98ded
- Added conditional native compiling
7c98ded
7c98ded
* Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> 0:1.3-3jpp
7c98ded
- First JPP-1.7 release
7c98ded
7c98ded
* Wed Sep 08 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-2jpp
7c98ded
- Do not stop on test failure
7c98ded
7c98ded
* Tue Sep 07 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-1jpp
7c98ded
- Upgrade to 1.3
7c98ded
- Rebuilt with Ant 1.6.2
7c98ded
7c98ded
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.2-1jpp
7c98ded
- 1.2
7c98ded
- use perl instead of patch
7c98ded
7c98ded
* Wed May 28 2003 Ville Skyttä <jpackage-discuss at zarb.org> - 0:1.1-1jpp
7c98ded
- First JPackage release.