Name: struts Version: 1.3.10 Release: 24%{?dist} Summary: Web application framework License: ASL 2.0 URL: http://struts.apache.org/ # wget http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip # remove non free resources # unzip -qq struts-1.3.10-src.zip # rm -r struts-1.3.10/src/core/src/main/resources/org/apache/struts/resources/web-app_2_3.dtd # tar czf struts-1.3.10-clean-src.tar.gz struts-1.3.10 Source0: %{name}-%{version}-clean-src.tar.gz # fix build for junit servlet-3.0-api Patch1: struts-1.3.10-fix-build.patch # Thanks to Arun Babu Neelicattu aneelica@redhat.com # and Brandon.Vincent@asu.edu Patch2: struts-1.3.10-CVE-2014-0114.patch Patch3: struts-1.3.10-CVE-2015-0899.patch Patch4: struts-1.3.10-CVE-2016-1181-CVE-2016-1182.patch BuildRequires: maven-local BuildRequires: mvn(antlr:antlr) BuildRequires: mvn(commons-beanutils:commons-beanutils) BuildRequires: mvn(commons-chain:commons-chain) BuildRequires: mvn(commons-digester:commons-digester) BuildRequires: mvn(commons-fileupload:commons-fileupload) BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(commons-validator:commons-validator) BuildRequires: mvn(junit:junit) BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(org.apache.bsf:bsf) BuildRequires: mvn(org.apache.taglibs:taglibs-standard-jstlel) BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec) BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec) BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec) BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec) BuildRequires: mvn(oro:oro) BuildArch: noarch Obsoletes: %{name}-manual < %{version} Obsoletes: %{name}-webapps-tomcat5 < %{version} %description Welcome to the Struts Framework! The goal of this project is to provide an open source framework useful in building web applications with Java Servlet and JavaServer Pages (JSP) technology. Struts encourages application architectures based on the Model-View-Controller (MVC) design paradigm, colloquially known as Model 2 in discussions on various servlet and JSP related mailing lists. Struts includes the following primary areas of functionality: A controller servlet that dispatches requests to appropriate Action classes provided by the application developer. JSP custom tag libraries, and associated support in the controller servlet, that assists developers in creating interactive form-based applications. Utility classes to support XML parsing, automatic population of JavaBeans properties based on the Java reflection APIs, and internationalization of prompts and messages. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q find -name "*.jar" -delete find -name "*.class" -delete %patch1 -p1 %patch2 -p0 %patch3 -p1 %patch4 -p1 sed -i 's/\r//' LICENSE.txt NOTICE.txt # fix non ASCII chars for s in src/tiles/src/main/java/org/apache/struts/tiles/ComponentDefinition.java;do native2ascii -encoding UTF8 ${s} ${s} done cd src %pom_remove_parent %pom_change_dep -r :servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:1.0.0.Beta1 %pom_change_dep -r :jstl org.apache.taglibs:taglibs-standard-jstlel:1.2.3 %pom_remove_dep -r taglibs:standard %pom_change_dep -r :jsp-api org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec:1.0.0.Beta1 %pom_change_dep -r :myfaces-jsf-api org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec:2.2.0 %pom_change_dep -r :bsf org.apache.bsf: # package javax.servlet.jsp.el does not exist %pom_add_dep org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec:1.0.0.Beta1 core %mvn_file :%{name}-core %{name}/core %mvn_file :%{name}-el %{name}/el %mvn_file :%{name}-extras %{name}/extras %mvn_file :%{name}-faces %{name}/faces %mvn_file :%{name}-mailreader-dao %{name}/mailreader-dao %mvn_file :%{name}-scripting %{name}/scripting %mvn_file :%{name}-taglib %{name}/taglib %mvn_file :%{name}-tiles %{name}/tiles %build cd src %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install ( cd src %mvn_install ) %files -f src/.mfiles %license LICENSE.txt NOTICE.txt %files javadoc -f src/.mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog * Sat Jul 27 2019 Fedora Release Engineering - 1.3.10-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.3.10-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.3.10-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.3.10-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.10-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.3.10-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jun 22 2016 gil cattaneo 1.3.10-18 - fix CVE-2016-1181 and CVE-2016-1182 (rhbz#1343538,1343540,1343541) * Fri Feb 05 2016 Fedora Release Engineering - 1.3.10-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Aug 25 2015 gil cattaneo 1.3.10-16 - remove duplicate file - use java macros * Fri Jun 19 2015 Fedora Release Engineering - 1.3.10-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Mar 30 2015 gil cattaneo 1.3.10-14 - fix CVE-2015-0899 (rhbz#1207099,1256620) * Thu Feb 12 2015 gil cattaneo 1.3.10-13 - introduce license macro * Tue Aug 12 2014 gil cattaneo 1.3.10-12 - fix CVE-2014-0114 * Sun Jun 08 2014 Fedora Release Engineering - 1.3.10-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 1.3.10-10 - Use Requires: java-headless rebuild (#1067528) * Sun Aug 04 2013 Fedora Release Engineering - 1.3.10-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 03 2013 gil cattaneo 1.3.10-8 - switch to XMvn - minor changes to adapt to current guideline * Fri Feb 15 2013 Fedora Release Engineering - 1.3.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 1.3.10-6 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Sat Jul 21 2012 Fedora Release Engineering - 1.3.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 29 2012 gil cattaneo 1.3.10-4 - replace tomcat 7.x apis with jboss apis * Fri Jun 29 2012 gil cattaneo 1.3.10-3 - replace jakarta-taglibs-standard with jboss-jstl-1.2-api * Sat Jun 23 2012 gil cattaneo 1.3.10-2 - removed non-free resources * Sat May 26 2012 gil cattaneo 1.3.10-1 - initial rpm