diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c972dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +commons-fileupload-1.2.1-src.tar.gz +/commons-fileupload-1.2.2-src.tar.gz +/commons-fileupload-1.3-src.tar.gz +/commons-fileupload-1.3.1-src.tar.gz +/commons-fileupload-1.3.2-src.tar.gz diff --git a/apache-commons-fileupload.spec b/apache-commons-fileupload.spec new file mode 100644 index 0000000..daca47b --- /dev/null +++ b/apache-commons-fileupload.spec @@ -0,0 +1,238 @@ +%bcond_without portlet + +Name: apache-commons-fileupload +Version: 1.3.2 +Release: 3.1%{?dist} +Summary: API to work with HTML file upload +License: ASL 2.0 +URL: http://commons.apache.org/fileupload/ +BuildArch: noarch + +Source0: http://www.apache.org/dist/commons/fileupload/source/commons-fileupload-%{version}-src.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(commons-io:commons-io) +BuildRequires: mvn(javax.servlet:servlet-api) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.commons:commons-parent:pom:) +%if %{with portlet} +BuildRequires: mvn(javax.portlet:portlet-api) +%endif + +Provides: jakarta-commons-fileupload = 1:%{version}-%{release} +Obsoletes: jakarta-commons-fileupload < 1:1.2.1-2 + +%description +The javax.servlet package lacks support for RFC-1867, HTML file +upload. This package provides a simple to use API for working with +such data. The scope of this package is to create a package of Java +utility classes to read multipart/form-data within a +javax.servlet.http.HttpServletRequest. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package contains the API documentation for %{name}. + +# ----------------------------------------------------------------------------- + +%prep +%setup -q -n commons-fileupload-%{version}-src +sed -i 's/\r//' LICENSE.txt +sed -i 's/\r//' NOTICE.txt + +%if %{with portlet} +# fix gId +sed -i "s|portlet-api|javax.portlet|" pom.xml +%else +%pom_remove_dep portlet-api:portlet-api +%pom_xpath_remove pom:properties/pom:commons.osgi.import +%pom_xpath_remove pom:properties/pom:commons.osgi.dynamicImport +rm -r src/main/java/org/apache/commons/fileupload/portlet +%endif + +# ----------------------------------------------------------------------------- + +%mvn_file ":{*}" %{name} @1 +%mvn_alias : org.apache.commons: + +%build +# fix build with generics support +# tests fail to compile because they use an obsolete version of servlet API (2.4) +%mvn_build -f + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.txt NOTICE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt NOTICE.txt + +# ----------------------------------------------------------------------------- + +%changelog +* Wed Mar 15 2017 Michael Simacek - 1.3.2-3 +- Convert conditional + +* Mon Feb 06 2017 Michael Simacek - 1.3.2-2 +- Remove unused BR release-plugin + +* Wed Jun 01 2016 Michael Simacek - 1.3.2-1 +- Update to upstream version 1.3.2 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.3.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.3.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Apr 8 2015 Mikolaj Izdebski - 1.3.1-6 +- Update to current packaging guidelines + +* Tue Oct 14 2014 Mikolaj Izdebski - 1.3.1-5 +- Remove legacy Obsoletes/Provides for jakarta-commons + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 21 2014 Mikolaj Izdebski - 1.3.1-3 +- Use .mfiles generated during build + +* Tue Mar 04 2014 Stanislav Ochotnicky - 1.3.1-2 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Feb 10 2014 Mikolaj Izdebski - 1.3.1-1 +- Update to upstream version 1.3.1 +- Remove unused patched + +* Thu Feb 6 2014 Mikolaj Izdebski - 1.3-5 +- Add backported upstream patch to fix DoS vulnerability +- Resolves: CVE-2014-0050 + +* Sat Aug 03 2013 Fedora Release Engineering - 1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Apr 29 2013 Mikolaj Izdebski - 1.3-3 +- Remove unneeded BR: maven-idea-plugin + +* Thu Apr 18 2013 Severin Gehwolf 1.3-2 +- Use pom macros over patch. +- Remove surefire maven plugin since tests are skipped anyway. + +* Thu Mar 28 2013 Michal Srb - 1.3-1 +- Update to upstream version 1.3 + +* Mon Mar 11 2013 Mikolaj Izdebski - 1.2.2-11 +- Disable tests (they use obsolete servlet API 2.4) +- Resolves: rhbz#913878 + +* Thu Feb 14 2013 Mikolaj Izdebski - 1.2.2-10 +- Add missing BR: maven-local + +* Wed Feb 13 2013 Fedora Release Engineering - 1.2.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Nov 26 2012 Severin Gehwolf 1.2.2-8 +- Conditionally build portlet-2.0-api support in Fedora only + +* Wed Jul 18 2012 Fedora Release Engineering - 1.2.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 04 2012 Stanislav Ochotnicky - 1.2.2-6 +- Fix up patches to apply, cleanup spec old coments +- Fix surefire plugin dependency to use new name + +* Tue May 29 2012 gil cattaneo 1.2.2-5 +- Add portlet-2.0-api support (required by springframework). + +* Fri Mar 2 2012 Stanislav Ochotnicky 1.2.2-4 +- Fix build and update to latest guidelines + +* Thu Jan 12 2012 Fedora Release Engineering - 1.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 1.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Oct 20 2010 Chris Spike 1.2.2-1 +- Updated to 1.2.2 +- Fixed License tag +- tomcat5 -> tomcat6 BRs/Rs +- Fixed wrong EOL encodings + +* Thu Jul 8 2010 Stanislav Ochotnicky - 1.2.1-4 +- Add license to javadoc subpackage + +* Thu May 20 2010 Stanislav Ochotnicky - 1.2.1-3 +- Added Requires on jpackage-utils for javadoc + +* Thu May 20 2010 Stanislav Ochotnicky - 1.2.1-2 +- Rename package (jakarta-commons-fileupload->apache-commons-fileupload) +- Re-did whole spec file + +* Wed Jan 6 2010 Mary Ellen Foster - 1:1.2.1-1 +- Update to newest version; include Maven metadata + +* Fri Jul 24 2009 Fedora Release Engineering - 1:1.0-9.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1:1.0-8.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Jul 9 2008 Tom "spot" Callaway - 1:1.0-7.3 +- drop repotag +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering - 1:1.0-7jpp.2 +- Autorebuild for GCC 4.3 + +* Tue Apr 17 2007 Permaine Cheung - 1:1.0-6jpp.2 +- Update spec file as per fedora review + +* Thu Aug 10 2006 Deepak Bhole - 1:1.0-6jpp.1 +- Added missing requirements. + +* Thu Aug 10 2006 Karsten Hopp 1.0-5jpp_3fc +- Requires(post/postun): coreutils + +* Sat Jul 22 2006 Jakub Jelinek - 1:1.0-5jpp_2fc +- Rebuilt + +* Thu Jul 20 2006 Deepak Bhole - 1:1.0-5jpp_1fc +- Added conditional native compilation. + +* Wed Apr 26 2006 Fernando Nasser - 1:1.0-4jpp +- First JPP 1.7 build + +* Fri Oct 22 2004 Fernando Nasser - 1:1.0-3jpp +- Patch to build with servletapi5 +- Add missing dependency on ant-junit + +* Sun Aug 23 2004 Randy Watler - 1:1.0-2jpp +- Rebuild with ant-1.6.2 + +* Sat Jun 28 2003 Ville Skyttä - 1:1.0-1jpp +- Update to 1.0. +- Add Epochs to dependencies. +- Nuke beanutils dependency. +- Versionless javadoc dir symlinks. + +* Tue Mar 25 2003 Nicolas Mailhot - 1:1.0-0.beta1.4jpp +- for jpackage-utils 1.5 + +* Mon Mar 10 2003 Henri Gomez - 1:1.0-0.beta1.3jpp +- rebuild with correct ant (avoid corrupted archive) + +* Fri Mar 07 2003 Henri Gomez - 1:1.0-0.beta1.2jpp +- replace servlet23 requirement by servlet4api + +* Wed Feb 26 2003 Ville Skyttä - 1:1.0-0.beta1.1jpp +- Update to 1.0 beta 1 (no code changes from cvs20030115). +- Fix requirements. + +* Wed Jan 15 2003 Henri Gomez 1.0-1jpp +- 1.0 (cvs 20030115) +- first jPackage release diff --git a/dead.package b/dead.package deleted file mode 100644 index ab7426e..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Retired: Long term failure to build diff --git a/sources b/sources new file mode 100644 index 0000000..4ad9235 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +28bf2d5c025fd076e1a3e30ac9668784 commons-fileupload-1.3.2-src.tar.gz