135 lines
4.7 KiB
RPMSpec
135 lines
4.7 KiB
RPMSpec
|
|
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 <tdawson@redhat.com> - 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 <releng@fedoraproject.org> - 1.2-14
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||
|
|
|
||
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||
|
|
|
||
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||
|
|
|
||
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||
|
|
|
||
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||
|
|
|
||
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||
|
|
|
||
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||
|
|
|
||
|
|
* Wed Mar 04 2015 gil cattaneo <puntogil@libero.it> 1.2-8
|
||
|
|
- use servlet api 3.1
|
||
|
|
- use new javapackages macros
|
||
|
|
|
||
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||
|
|
|
||
|
|
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2-6
|
||
|
|
- Use Requires: java-headless rebuild (#1067528)
|
||
|
|
|
||
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||
|
|
|
||
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
|
||
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
||
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
|
||
|
|
* Mon Jul 09 2012 gil cattaneo <puntogil@libero.it> 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 <puntogil@libero.it> 1.2-1
|
||
|
|
- initial rpm
|