Name: ziplet Version: 2.0.0 Release: 1%{?dist} Summary: A J2EE servlet filter which compresses data written to the response License: ASL 2.0 URL: https://github.com/ziplet/ziplet Source0: https://github.com/ziplet/ziplet/archive/%{name}-%{version}.tar.gz Source1: https://raw.githubusercontent.com/ziplet/ziplet/master/LICENSE Source2: https://raw.githubusercontent.com/ziplet/ziplet/master/NOTICE Patch0: ziplet-2.0.0-servlet.patch BuildRequires: maven-local #BuildRequires: mvn(com.mockrunner:mockrunner-servlet:1.0.0) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-nop) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description This filter can, based on HTTP headers in a HttpServletRequest, compress data written to the HttpServletResponse, or decompress data read from the request. When supported by the client browser, this can potentially greatly reduce the number of bytes written across the network from and to the client. As a Filter, this class can also be easily added to any J2EE 1.3+ web application. This is a fork of https://github.com/nbartels/pjl-comp-filter %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} %patch0 -p1 # Force servlet 3.1 apis %pom_change_dep -r :servlet-api :javax.servlet-api:3.1.0 # Unwanted task %pom_remove_plugin :maven-source-plugin # Copy copyright notices cp -p %SOURCE1 %SOURCE2 . # Unavailable test dep %pom_remove_dep :mockrunner-servlet rm -r src/test/java/com/github/ziplet/filter/compression/CompressingFilterRequestTest.java \ src/test/java/com/github/ziplet/filter/compression/CompressingFilterResponseTest.java \ src/test/java/com/github/ziplet/filter/compression/ThresholdOutputStreamTest.java \ src/test/java/com/github/ziplet/filter/compression/LoadRunner.java %build %mvn_build %install %mvn_install %files -f .mfiles %doc CHANGES.txt README.* %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Sat Aug 22 2015 gil cattaneo 2.0.0-1 - initial rpm