Collection of high-performance low-overhead contextual encoders
72a70380cd825f583f3ea6591c7f306175f14af3..f4192429e80ac05b0c3de0bca056a3e733e7bbb6
9 days ago CentOS Sources
import rh-jmc-owasp-java-encoder-1.2.2-2.el7
f41924 diff | tree
4 files added
1 files deleted
100 ■■■■■ changed files
.gitignore 1 ●●●● patch | view | raw | blame | history
.rh-jmc-owasp-java-encoder.metadata 1 ●●●● patch | view | raw | blame | history
README.md 4 ●●●● patch | view | raw | blame | history
SOURCES/0_manifest.patch 12 ●●●●● patch | view | raw | blame | history
SPECS/owasp-java-encoder.spec 82 ●●●●● patch | view | raw | blame | history
.gitignore
New file
@@ -0,0 +1 @@
SOURCES/v1.2.2.tar.gz
.rh-jmc-owasp-java-encoder.metadata
New file
@@ -0,0 +1 @@
73bd33ad45dac8f353ab3ab30093bc4a60e9c2c4 SOURCES/v1.2.2.tar.gz
README.md
File was deleted
SOURCES/0_manifest.patch
New file
@@ -0,0 +1,12 @@
diff -Nur owasp-java-encoder-1.2.1-orig/META-INF/MANIFEST.MF owasp-java-encoder-1.2.1/META-INF/MANIFEST.MF
--- owasp-java-encoder-1.2.1-orig/META-INF/MANIFEST.MF    1969-12-31 19:00:00.000000000 -0500
+++ owasp-java-encoder-1.2.1/META-INF/MANIFEST.MF    2018-08-07 11:59:15.923471361 -0400
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bnd-LastModified: 1533328833261
+Bundle-ManifestVersion: 2
+Bundle-Name: org.owasp.encoder
+Bundle-SymbolicName: org.owasp.encoder
+Created-By: 1.8.0_181 (Oracle Corporation)
+Export-Package: org.owasp.encoder
+Tool: Bnd-1.50.0
SPECS/owasp-java-encoder.spec
New file
@@ -0,0 +1,82 @@
# https://src.fedoraproject.org/rpms/owasp-java-encoder/raw/jmc/f/owasp-java-encoder.spec
%{?scl:%scl_package owasp-java-encoder}
%{!?scl:%global pkg_name %{name}}
Name:       %{scl_prefix}owasp-java-encoder
Version:    1.2.2
Release:    2%{?dist}
Summary:    Collection of high-performance low-overhead contextual encoders
License:    BSD
URL:        https://github.com/OWASP/owasp-java-encoder/
Source0:    https://github.com/OWASP/owasp-java-encoder/archive/v1.2.2.tar.gz
# add OSGi metadata
Patch0:     0_manifest.patch
BuildArch:  noarch
BuildRequires:  %{?scl_prefix_maven}maven-local
BuildRequires:  %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  %{?scl_prefix_maven}mvn(org.sonatype.oss:oss-parent:pom:)
%description
The OWASP Encoders package is a collection of high-performance low-overhead
contextual encoders, that when utilized correctly, is an effective tool in
preventing Web Application security vulnerabilities such as
Cross-Site Scripting.
%package javadoc
Summary:  Javadoc for %{name}
%description javadoc
%{summary}.
%prep
%setup -q -n %{pkg_name}-%{version}
%patch0 -p1
# add version number in OSGi metadata
sed -i '/^Bundle-SymbolicName: org.owasp.encoder$/a Bundle-Version: %{version}' %{_builddir}/%{pkg_name}-%{version}/META-INF/MANIFEST.MF
%pom_disable_module jsp
%pom_disable_module esapi
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
# analysis tool for testing coverage is not required
%pom_remove_plugin :cobertura-maven-plugin
%build
%{?scl:scl enable %{scl_maven} %{scl} - << "EOFSCL"}
%mvn_build
# inject OSGi manifest
jar ufm %{_builddir}/%{pkg_name}-%{version}/core/target/encoder-%{version}.jar %{_builddir}/%{pkg_name}-%{version}/META-INF/MANIFEST.MF
%{?scl:EOFSCL}
%install
%{?scl:scl enable %{scl_maven} %{scl} - << "EOFSCL"}
%mvn_install
%{?scl:EOFSCL}
%files -f .mfiles
%doc README.md
%license LICENSE
%files javadoc -f .mfiles-javadoc
%doc README.md
%license LICENSE
%changelog
* Mon Nov 19 2018 Jie Kang <jkang@redhat.com> - 1.2.2-2
- SCL-ize package
* Fri Nov 16 2018 Salman Siddiqui <sasiddiq@redhat.com> - 1.2.2-1
- Version update
* Wed Aug 08 2018 Salman Siddiqui <sasiddiq@redhat.com> - 1.2.1-1
- Initial packaging