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