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