diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3eedf8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/commons-fileupload-1.3.2-src.tar.gz diff --git a/.rh-java-common-apache-commons-fileupload.metadata b/.rh-java-common-apache-commons-fileupload.metadata new file mode 100644 index 0000000..4116667 --- /dev/null +++ b/.rh-java-common-apache-commons-fileupload.metadata @@ -0,0 +1 @@ +6f254ad51f5e2c9d9a039995bc1a2295cabc95f6 SOURCES/commons-fileupload-1.3.2-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/apache-commons-fileupload.spec b/SPECS/apache-commons-fileupload.spec new file mode 100644 index 0000000..38477ce --- /dev/null +++ b/SPECS/apache-commons-fileupload.spec @@ -0,0 +1,77 @@ +%global pkg_name apache-commons-fileupload +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}%{pkg_name} +Version: 1.3.2 +Release: 1%{?dist} +Summary: This package provides an api to work with html file upload +License: ASL 2.0 +Group: Development/Libraries +URL: http://commons.apache.org/fileupload +Source0: http://www.apache.org/dist/commons/fileupload/source/commons-fileupload-%{version}-src.tar.gz +BuildArch: noarch + +BuildRequires: %{?scl_prefix}mvn(commons-io:commons-io) +BuildRequires: %{?scl_prefix}mvn(javax.servlet:servlet-api) +BuildRequires: %{?scl_prefix}mvn(junit:junit) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-assembly-plugin) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-release-plugin) + + +%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} +Group: Documentation + +%description javadoc +This package contains the API documentation for %{name}. + + +%prep +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%setup -q -n commons-fileupload-%{version}-src +sed -i 's/\r//' LICENSE.txt +sed -i 's/\r//' NOTICE.txt + +# remove portlet stuff +%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 + +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +# fix build with generics support +# tests fail to compile because they use an obsolete version of servlet API (2.4) +%mvn_build -f +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%dir %{_javadir}/%{pkg_name} +%doc LICENSE.txt NOTICE.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + +%changelog +* Tue Jul 26 2016 Michael Simacek - 1.3.2-1 +- Prepare for rh-java-common inclusion +- Update to version 1.3.2 + +* Fri Jun 24 2016 Severin Gehwolf 1.3-1 +- Initial package.