# # spec file for package jlex (Version 1.2.6) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # icecream 0 Name: jlex BuildRequires: ant java2-devel-packages xml-commons-apis %define name jlex %define version 1.2.6 %define release 2jpp %define section free Version: 1.2.6 Release: 24 Summary: A Lexical Analyzer Generator for Java License: BSD 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 Patch0: %{name}-%{version}.static.patch URL: http://www.cs.princeton.edu/~appel/modern/java/JLex/ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description JLex is a lexical analyzer generator for Java. %package javadoc PreReq: coreutils Group: Development/Libraries/Java Summary: Javadoc for jlex %description javadoc JLex is a Lexical Analyzer Generator for Java. This package contains the javadoc documentation for JLex. %prep %setup -c -T cp %{SOURCE0} . %patch0 -p0 cp %{SOURCE1} build.xml %build unset CLASSPATH ant %install # jar 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) # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -r dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_javadir}/* %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}-%{version} %changelog -n jlex * Mon Sep 25 2006 - skh@suse.de - don't use icecream - use source="1.4" and target="1.4" for build with java 1.5 * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Jul 28 2005 - jsmeix@suse.de - Adjustments in the spec file. * Mon Jul 18 2005 - jsmeix@suse.de - Current version 1.2.6 from JPackage.org * Thu Sep 02 2004 - skh@suse.de - Initial package created with version 1.2.6 (JPackage 1.5)