[RPM (6.0)] [DIST generic] pjl-comp-filter-1.7-1.jpp6

Ralph Apel <[email protected]> Sun, 23 Sep 2012 12:53:03 +0200
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : pjl-comp-filter              Relocations: (not relocatable)
Version     : 1.7                               Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Sun 23 Sep 2012 12:51:21 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 936835                           License: Apache Software License 2.0
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://sourceforge.net/projects/pjl-comp-filter/
Summary     : PJL compressing filter
Description :
A J2EE servlet filter which compresses data written to the
response. It supports several algorithms (gzip, deflate,
etc.) and emphasizes minimal memory usage and high
throughput. Also provides detailed performance stats.

---------------
Ralph Apel <[email protected]> - 0:1.7-1
- 1.7
---------------
pjl-comp-filter.src: W: non-standard-group Development/Java
pjl-comp-filter.src: W: no-signature
pjl-comp-filter.src: W: invalid-license Apache Software License 2.0
1 packages and 0 specfiles checked; 0 errors, 3 warnings.

---------------
Index: pjl-comp-filter.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/pjl-comp-filter/pjl-comp-filter.spec,v
retrieving revision 1.1
diff -u -r1.1 pjl-comp-filter.spec
--- pjl-comp-filter.spec	28 Mar 2008 19:03:55 -0000	1.1
+++ pjl-comp-filter.spec	23 Sep 2012 10:53:01 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2008, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,57 +28,39 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
-%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
-
-# If you don't want to build with maven, and use straight ant instead,
-# give rpmbuild option '--without maven'
-
-%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
-%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
-
 %define section     free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           pjl-comp-filter
-Version:        1.6.6
-Release:        1jpp
+Version:        1.7
+Release:        1%{?dist}
 Epoch:          0
 Summary:        PJL compressing filter
 License:        Apache Software License 2.0
 Group:          Development/Java
-Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
-Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
 URL:            http://sourceforge.net/projects/pjl-comp-filter/
-Source0:        http://downloads.sourceforge.net/pjl-comp-filter/pjl-comp-filter-1.6.6.zip
+Source0:        http://downloads.sourceforge.net/project/pjl-comp-filter/pjl-comp-filter/pjl-comp-filter-1.7/pjl-comp-filter-1.7.zip
 Source1:        %{name}-%{version}.pom
-Patch0:         pjl-comp-filter-build.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-%if %{gcj_support}
-BuildRequires:    gnu-crypto
-BuildRequires:    java-gcj-compat-devel
-Requires(post):   java-gcj-compat
-Requires(postun): java-gcj-compat
-%endif
-
-
-%if ! %{gcj_support}
 BuildArch:      noarch
-%endif
-
-BuildRequires:  jpackage-utils >= 0:1.7.4
-BuildRequires:  java-devel = 0:1.5.0
-BuildRequires:  ant >= 0:1.6.5
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
 BuildRequires:  ant-junit
 BuildRequires:  junit
 BuildRequires:  mockrunner
-BuildRequires:  jakarta-commons-logging
+BuildRequires:  apache-commons-logging
 BuildRequires:  jetbrains-annotations
 BuildRequires:  jsp_2_0_api
 BuildRequires:  servlet_2_4_api
 
-Requires:  java >= 0:1.5.0
-Requires(post):    jpackage-utils >= 0:1.7.4
-Requires(postun):  jpackage-utils >= 0:1.7.4
+Requires:  java >= 0:1.6.0
+Requires(post):    jpackage-utils >= 0:1.7.5
+Requires(postun):  jpackage-utils >= 0:1.7.5
 
 %description
 A J2EE servlet filter which compresses data written to the 
@@ -89,8 +71,6 @@
 %package javadoc
 Summary:        Javadoc for %{name}
 Group:          Development/Documentation
-Requires(post):   /bin/rm,/bin/ln
-Requires(postun): /bin/rm
 
 %description javadoc
 Javadoc for %{name}.
@@ -100,10 +80,8 @@
 for j in $(find . -name "*.jar"); do
     mv $j $j.no
 done
-%patch0 -b .sav0
 
 %build
-export JAVA_HOME=%{_jvmdir}/java-1.5.0
 export CLASSPATH=$(build-classpath \
 jetbrains-annotations \
 jsp_2_0_api \
@@ -134,57 +112,30 @@
 cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 ln -sf %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost
 
-%if %{gcj_support}
-export CLASSPATH=$(build-classpath gnu-crypto)
-%{_bindir}/aot-compile-rpm
-%endif
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-%postun javadoc
-if [ "$1" = "0" ]; then
-  rm -f %{_javadocdir}/%{name}
-fi
-
 %post
 %update_maven_depmap
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
 
 %postun
 %update_maven_depmap
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
 
 %files
 %defattr(-,root,root,-)
 %{_javadir}/*
-%{_datadir}/maven2
-%{_mavendepmapfragdir}
-%if %{gcj_support}
-%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
-%endif
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(-,root,root,-)
 %doc %{_javadocdir}/%{name}-%{version}
-%ghost %doc %{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Sun Sep 23 2012 Ralph Apel <[email protected]> - 0:1.7-1
+- 1.7
+
 * Fri Mar 28 2008 Ralph Apel <[email protected]> - 0:1.6.6-1jpp
 - First JPP release