diff --git a/sslext-1.2-0.pom b/sslext-1.2-0.pom new file mode 100644 index 0000000..08d4d04 --- /dev/null +++ b/sslext-1.2-0.pom @@ -0,0 +1,25 @@ + + 4.0.0 + sslext + sslext + sslext + 1.2-0 + + + Apache Software License, Version 1.1 + http://www.apache.org/licenses/LICENSE-1.1 + + + + + Steve Ditlinger + http://sslext.sourceforge.net/ + + + + struts + struts + 1.2.7 + + + \ No newline at end of file diff --git a/sslext-1.2-SecureRequestUtils.patch b/sslext-1.2-SecureRequestUtils.patch new file mode 100644 index 0000000..f48af2d --- /dev/null +++ b/sslext-1.2-SecureRequestUtils.patch @@ -0,0 +1,29 @@ +--- src/org/apache/struts/util/SecureRequestUtils.java 2004-09-27 02:02:23.000000000 +0200 ++++ src/org/apache/struts/util/SecureRequestUtils.java-gil 2011-09-10 11:25:12.260719716 +0200 +@@ -358,10 +358,10 @@ + return false; + } + +- Enumeration enum = aRequest.getAttributeNames(); ++ Enumeration mune = aRequest.getAttributeNames(); + Map map = new HashMap(); +- while (enum.hasMoreElements()) { +- String name = (String) enum.nextElement(); ++ while (mune.hasMoreElements()) { ++ String name = (String) mune.nextElement(); + map.put(name, aRequest.getAttribute(name)); + } + aRequest.getSession().setAttribute(STOWED_REQUEST_ATTRIBS, map); +@@ -534,9 +534,9 @@ + */ + private static Map getParameterMap(HttpServletRequest request) { + Map map = new HashMap(); +- Enumeration enum = request.getParameterNames(); +- while (enum.hasMoreElements()) { +- String name = (String) enum.nextElement(); ++ Enumeration mune = request.getParameterNames(); ++ while (mune.hasMoreElements()) { ++ String name = (String) mune.nextElement(); + String[] values = request.getParameterValues(name); + map.put(name, values); + } diff --git a/sslext-1.2-build.patch b/sslext-1.2-build.patch new file mode 100644 index 0000000..8227780 --- /dev/null +++ b/sslext-1.2-build.patch @@ -0,0 +1,39 @@ +--- build.xml 2004-09-18 21:56:33.000000000 +0200 ++++ build.xml-gil 2012-06-06 11:11:15.937687091 +0200 +@@ -5,14 +5,24 @@ + + + +- ++ + + + + + +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -26,6 +36,8 @@ + destdir="${classes}" + classpathref="class.path" + debug="on" ++ source="1.5" ++ target="1.5" + /> + + diff --git a/sslext-1.2-javadocs.patch b/sslext-1.2-javadocs.patch new file mode 100644 index 0000000..60bc5d0 --- /dev/null +++ b/sslext-1.2-javadocs.patch @@ -0,0 +1,46 @@ +--- build.xml 2012-07-09 17:55:25.669707599 +0200 ++++ build.xml-gil 2012-07-09 17:55:37.292140796 +0200 +@@ -26,6 +26,14 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -144,6 +152,28 @@ + /> + + ++ ++ ++ ++ ++ ++ ++ ++ Struts SSL Switching Extension]]> ++ Copyright 1999, ${year} The Apache Software Foundation, All Rights Reserved]]> ++ ++ ++ ++ + + + diff --git a/sslext-1.2-pom.patch b/sslext-1.2-pom.patch new file mode 100644 index 0000000..6f90e4a --- /dev/null +++ b/sslext-1.2-pom.patch @@ -0,0 +1,26 @@ +--- pom.xml 2005-11-08 22:53:43.000000000 +0100 ++++ pom.xml-gil 2012-05-27 05:19:18.277207739 +0200 +@@ -17,9 +17,19 @@ + + + +- struts +- struts +- 1.2.7 ++ org.apache.struts ++ struts-core ++ 1.3.10 ++ ++ ++ org.apache.struts ++ struts-taglib ++ 1.3.10 ++ ++ ++ org.apache.struts ++ struts-tiles ++ 1.3.10 + + + +\ Manca newline alla fine del file diff --git a/sslext-1.2-realclean-src-cvs.tar.gz b/sslext-1.2-realclean-src-cvs.tar.gz new file mode 100644 index 0000000..e034306 Binary files /dev/null and b/sslext-1.2-realclean-src-cvs.tar.gz differ diff --git a/sslext.spec b/sslext.spec new file mode 100644 index 0000000..b10ad3d --- /dev/null +++ b/sslext.spec @@ -0,0 +1,134 @@ +Name: sslext +Version: 1.2 +Release: 15%{?dist} +Summary: Struts SSL Switching Extension +License: ASL 1.1 +Url: http://sslext.sourceforge.net/ +#cvs -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext login +#cvs -z3 -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext export -r Release1_2_1 sslext120 +#rm -rf sslext120/web/WEB-INF/lib/*.jar +#rm -rf sslext120/sslext-struts1.2-*.* +#rm -rf $(find sslext120 -name "CVS") +#rm -rf $(find sslext120 -name "*.class") +#rm -rf $(find sslext120 -name "*.bak") +# non free +# rm -rf sslext120/web/WEB-INF/web-app_2_3.dtd +#mv sslext120 sslext-1.2 +#tar czf sslext-1.2-realclean-src-cvs.tar.gz sslext-1.2 +Source0: sslext-%{version}-realclean-src-cvs.tar.gz +Source1: https://repo1.maven.org/maven2/sslext/sslext/%{version}-0/sslext-%{version}-0.pom +Patch0: %{name}-%{version}-build.patch +# fix build java5+ +Patch1: %{name}-%{version}-SecureRequestUtils.patch +# update struts reference +Patch2: %{name}-%{version}-pom.patch +# build apis documentation +Patch3: %{name}-%{version}-javadocs.patch + +BuildRequires: java-devel +BuildRequires: javapackages-local + +BuildRequires: ant +BuildRequires: apache-commons-beanutils +BuildRequires: apache-commons-collections +BuildRequires: apache-commons-digester +BuildRequires: apache-commons-fileupload +BuildRequires: apache-commons-logging +BuildRequires: apache-commons-validator +BuildRequires: jakarta-oro +BuildRequires: struts +BuildRequires: tomcat-jsp-2.3-api +BuildRequires: tomcat-servlet-4.0-api + +BuildArch: noarch + +%description +Extension to the Struts framework that allows developers to configure web +applications to automatically switch between the HTTP and HTTPS protocols. +Configuration is performed within the Struts config XML file. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q +mkdir -p web/WEB-INF/classes +%patch0 -p0 +sed -i "s|tomcat-servlet-3.0-api|tomcat-servlet-api|" build.xml +sed -i "s|tomcat-jsp-2.2-api|tomcat-jsp-api|" build.xml +sed -i "s|1.5|1.6|" build.xml +%patch1 -p0 +cp -p %{SOURCE1} pom.xml +%patch2 -p0 +%patch3 -p0 + +%build + +export CLASSPATH=$(build-classpath tomcat-servlet-api tomcat-jsp-api) +%ant compile make-jar javadoc + +%install +%mvn_artifact pom.xml web/WEB-INF/lib/%{name}.jar +%mvn_file %{name}:%{name} %{name} +%mvn_install -J docs + +%files -f .mfiles + +%files javadoc -f .mfiles-javadoc + +%changelog +* Mon Feb 11 2019 Troy Dawson - 1.2-15 +- Fix FTBFS (#1606413) +-- Change BuildRequires: from tomcat-servlet-3.1-api to tomcat-servlet-4.0-api + +* Sun Feb 03 2019 Fedora Release Engineering - 1.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 1.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Mar 04 2015 gil cattaneo 1.2-8 +- use servlet api 3.1 +- use new javapackages macros + +* Sun Jun 08 2014 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 1.2-6 +- Use Requires: java-headless rebuild (#1067528) + +* Sun Aug 04 2013 Fedora Release Engineering - 1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 09 2012 gil cattaneo 1.2-2 +- removed non-free file +- fixed spelling errors in description +- added missing dependencies +- added javadoc sub package + +* Sun May 27 2012 gil cattaneo 1.2-1 +- initial rpm diff --git a/sslext.yaml b/sslext.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/sslext.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA