2007-01-16 00:19:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package jlex (Version 1.2.6)
|
|
|
|
#
|
2010-11-15 17:46:30 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:19:01 +01:00
|
|
|
#
|
2009-06-19 00:36:09 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:19:01 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
# icecream 0
|
|
|
|
|
2008-07-25 16:51:45 +02:00
|
|
|
|
2007-01-16 00:19:01 +01:00
|
|
|
Name: jlex
|
2008-07-25 16:51:45 +02:00
|
|
|
BuildRequires: ant java-1_5_0-gcj-compat-devel xml-commons-apis-bootstrap
|
2008-07-28 01:10:30 +02:00
|
|
|
#!BuildIgnore: xml-commons-apis xml-commons-resolver xml-commons xerces-j2
|
2010-11-15 17:46:19 +01:00
|
|
|
#!BuildIgnore: xml-commons-jaxp-1.3-apis xml-commons-resolver12
|
2007-01-16 00:19:01 +01:00
|
|
|
%define name jlex
|
|
|
|
%define version 1.2.6
|
|
|
|
%define release 2jpp
|
|
|
|
%define section free
|
|
|
|
Version: 1.2.6
|
2010-11-15 17:46:30 +01:00
|
|
|
Release: 265
|
2007-01-16 00:19:01 +01:00
|
|
|
Summary: A Lexical Analyzer Generator for Java
|
2011-12-06 18:20:44 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:19:01 +01:00
|
|
|
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
|
2008-07-25 16:51:45 +02:00
|
|
|
Url: http://www.cs.princeton.edu/~appel/modern/java/JLex/
|
2007-01-16 00:19:01 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
JLex is a lexical analyzer generator for Java.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
2011-12-06 18:20:44 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:19:01 +01:00
|
|
|
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}
|
|
|
|
|
2008-07-25 16:51:45 +02:00
|
|
|
%changelog
|