[RPM (6.0)] [DIST generic] jlex-1.2.6-6.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : jlex                         Relocations: (not relocatable)
Version     : 1.2.6                             Vendor: JPackage Project
Release     : 6.jpp6                        Build Date: Sun 12 Aug 2012 12:31:58 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Libraries/Java    Source RPM: (none)
Size        : 216348                           License: Free
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://www.cs.princeton.edu/~appel/modern/java/JLex/
Summary     : A Lexical Analyzer Generator for Java
Description :
JLex is a Lexical Analyzer Generator for Java

---------------
Ralph Apel <[email protected]> - 0:1.2.6-6
- Fiest JPP-6 release
---------------
jlex.src: W: source-or-patch-not-bzipped jlex-1.2.6.static.patch
jlex.src: W: no-signature
jlex.src: W: no-cleaning-of-buildroot %install
jlex.src: W: mixed-use-of-spaces-and-tabs (spaces: line 37, tab: line 31)
jlex.src:159: W: macro-in-%changelog %{name}
jlex.src: W: invalid-license Free
1 packages and 0 specfiles checked; 0 errors, 6 warnings.

---------------
Index: jlex.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/jlex/jlex.spec,v
retrieving revision 1.4
diff -u -r1.4 jlex.spec
--- jlex.spec	13 Jun 2008 16:18:16 -0000	1.4
+++ jlex.spec	12 Aug 2012 10:46:02 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2005, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,42 +28,38 @@
 # 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}}}
-
 %define section		free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           jlex
 Version:        1.2.6
-Release:        5%{?dist}
+Release:        6%{?dist}
 Epoch:		0
 Summary:        A Lexical Analyzer Generator for Java
 License:        Free
 Group:          Development/Libraries/Java
 Source0:        http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.5/Main.java
 Source1:        %{name}-%{version}.build.xml
+Source2:        %{name}-%{version}.pom
 Patch0:         %{name}-%{version}.static.patch
 URL:            http://www.cs.princeton.edu/~appel/modern/java/JLex/
-BuildRequires:  ant, sed, jpackage-utils > 1.4
-%if ! %{gcj_support}
+BuildRequires:  jpackage-utils > 0:1.7.5
+BuildRequires:  java-devel > 0:1.6.0
+BuildRequires:  ant
+BuildRequires:  sed
+Requires:  java > 0:1.6.0
 BuildArch:      noarch
-%endif
 Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
-%if %{gcj_support}
-BuildRequires:		java-gcj-compat-devel
-Requires(post):		java-gcj-compat
-Requires(postun):	java-gcj-compat
-%endif
-
 %description
 JLex is a Lexical Analyzer Generator for Java
 
 %package javadoc
 Group:          Development/Java
 Summary:        Javadoc for %{name}.
-Requires(post):		%{__rm}
-Requires(post):		/bin/ln
-Requires(postun):	%{__rm}
 
 %description javadoc
 Javadoc for %{name}.
@@ -83,57 +79,40 @@
 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
 install -m 644 dist/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
+
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+%add_to_maven_depmap jlex jlex %{version} JPP %{name}
+
 # javadoc
 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -r dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 
-%if %{gcj_support}
-%{_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
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
+%update_maven_depmap
 
 %postun
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
+%update_maven_depmap
 
 %files
 %defattr(-,root,root,-)
-%{_javadir}
-
-%if %{gcj_support}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/jlex-1.2.6.jar.*
-%endif
+%{_javadir}/*.jar
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(-,root,root,-)
 %doc %{_javadocdir}/%{name}-%{version}
-%ghost %doc %{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Sun Aug 12 2012 Ralph Apel <[email protected]> - 0:1.2.6-6
+- Fiest JPP-6 release
+
 * Fri Aug 04 2006 Vivek Lakshmanan <[email protected]> - 0:1.2.6-5jpp
 - Handle javadoc subpackage properly.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.