Package apache-commons-fileupload: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | Epoch: 1 Group: Development/Java %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat %define fedora 23 Name: apache-commons-fileupload Version: 1.3.1 Release: alt1_7jpp8 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:) BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin) %if 0%{?fedora} BuildRequires: mvn(javax.portlet:portlet-api) %endif Source44: import.info %define short_name commons-fileupload Provides: %{short_name} = %{version} Conflicts: jakarta-%{short_name} < 1:%version %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 Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %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 0%{?fedora} # fix gId sed -i "s|<groupId>portlet-api</groupId>|<groupId>javax.portlet</groupId>|" pom.xml %else # Non-Fedora: 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 rm src/test/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 %doc LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt # ----------------------------------------------------------------------------- %changelog * Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.3.1-alt1_7jpp8 - java 8 mass update * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.3-alt1_4jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.2.2-alt3_11jpp7 - new release * Thu Jul 10 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.2.2-alt3_7jpp7 - fixed BR deps * Tue Oct 09 2012 Igor Vlasenko <viy@altlinux.ru> 1:1.2.2-alt2_7jpp7 - proper Obsoletes on jakarta-* (closes: 27808) * Sat Sep 08 2012 Igor Vlasenko <viy@altlinux.ru> 1:1.2.2-alt1_7jpp7 - new version * Wed Aug 29 2012 Igor Vlasenko <viy@altlinux.ru> 1:1.2.1-alt4_7jpp6 - fixed build * Thu May 24 2012 Igor Vlasenko <viy@altlinux.ru> 1:1.2.1-alt3_7jpp6 - bumped release to properly obsolete jakarta-commons-fileupload - closes: #27363 * Mon Feb 14 2011 Igor Vlasenko <viy@altlinux.ru> 1:1.2.1-alt1_7jpp6 - new version |