Blame SPECS/jflex.spec

a2167b
%global pkg_name jflex
a2167b
%{?scl:%scl_package %{pkg_name}}
a2167b
%{?maven_find_provides_and_requires}
a2167b
a2167b
%bcond_with bootstrap
a2167b
a2167b
Summary:        Fast Scanner Generator
a2167b
Name:           %{?scl_prefix}%{pkg_name}
a2167b
Version:        1.4.3
a2167b
Release:        20.14%{?dist}
a2167b
Epoch:          0
a2167b
License:        GPL+
a2167b
URL:            http://jflex.de/
a2167b
# ./create-tarball.sh %%{version}
a2167b
Source0:        %{pkg_name}-%{version}-clean.tar.gz
a2167b
Source1:        http://repo2.maven.org/maven2/de/jflex/jflex/1.4.3/jflex-1.4.3.pom
a2167b
Source4:        %{pkg_name}.1
a2167b
Source5:        create-tarball.sh
a2167b
a2167b
Patch0:         jflex-build_xml.patch
a2167b
Patch1:         jflex-junit-incompatibility.patch
a2167b
a2167b
# Build-require itself except in bootstrapping mode
a2167b
%{!?with_bootstrap:BuildRequires: %{?scl_prefix}jflex}
a2167b
a2167b
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
a2167b
BuildRequires:  %{?scl_prefix_java_common}ant
a2167b
BuildRequires:  %{?scl_prefix_java_common}junit
a2167b
BuildRequires:  %{?scl_prefix_java_common}java_cup
a2167b
Requires:       %{?scl_prefix_java_common}java_cup
a2167b
BuildArch:      noarch
a2167b
a2167b
%description
a2167b
JFlex is a lexical analyzer generator (also known as scanner
a2167b
generator) for Java, written in Java.  It is also a rewrite of the
a2167b
very useful tool JLex which was developed by Elliot Berk at Princeton
a2167b
University.  As Vern Paxson states for his C/C++ tool flex: They do
a2167b
not share any code though.  JFlex is designed to work together with
a2167b
the LALR parser generator CUP by Scott Hudson, and the Java
a2167b
modification of Berkeley Yacc BYacc/J by Bob Jamison.  It can also be
a2167b
used together with other parser generators like ANTLR or as a
a2167b
standalone tool.
a2167b
a2167b
%package javadoc
a2167b
Summary:        API documentation for %{pkg_name}
a2167b
a2167b
%description javadoc
a2167b
This package provides %{summary}.
a2167b
a2167b
%prep
a2167b
%setup -q -n %{pkg_name}-%{version}
a2167b
%{?scl:scl enable %{scl} - <<"EOF"}
a2167b
set -e -x
a2167b
%patch0 -b .sav
a2167b
%patch1 -p1 -b .sav
a2167b
a2167b
%{__sed} -i 's/\r//' COPYRIGHT
a2167b
%{__sed} -i 's|includes="JFlex/\*\*,java_cup/\*\*,skeleton|includes="JFlex/\*\*,skeleton|g' src/build.xml
a2167b
%{?scl:EOF}
a2167b
a2167b
%build
a2167b
%{?scl:scl enable %{scl} - <<"EOF"}
a2167b
set -e -x
a2167b
a2167b
pushd src
a2167b
%if %{with bootstrap}
a2167b
# intial build using the autogenerated sym.java LexParse.java and LexScan.java
a2167b
# these are created by the jflex ant task which needs to be built first
a2167b
export CLASSPATH=$(build-classpath junit java_cup)
a2167b
ant jar-bootstrap
a2167b
# now that the JFlex.jar has been build we can use jflex ant tasks
a2167b
# removing the generated files and rebuilding using the JFlex.jar
a2167b
export CLASSPATH=${CLASSPATH}:../lib/JFlex.jar
a2167b
%else
a2167b
export CLASSPATH=$(build-classpath junit java_cup jflex)
a2167b
%endif
a2167b
a2167b
ant genclean libclean jar
a2167b
javadoc -sourcepath . -d ../api JFlex
a2167b
popd
a2167b
%{?scl:EOF}
a2167b
a2167b
%install
a2167b
%{?scl:scl enable %{scl} - <<"EOF"}
a2167b
set -e -x
a2167b
install -d -m 755 %{buildroot}%{_javadir}
a2167b
install -d -m 755 %{buildroot}%{_mavenpomdir}
a2167b
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
a2167b
install -d -m 755 %{buildroot}%{_mandir}/man1
a2167b
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
a2167b
a2167b
# jars
a2167b
install -p -m 644 lib/JFlex.jar %{buildroot}%{_javadir}/%{pkg_name}.jar
a2167b
ln -sf %{pkg_name}.jar %{buildroot}%{_javadir}/JFlex.jar
a2167b
a2167b
# pom
a2167b
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom
a2167b
%add_maven_depmap
a2167b
a2167b
# javadoc
a2167b
cp -pr api/* %{buildroot}%{_javadocdir}/%{name}
a2167b
a2167b
# manpage
a2167b
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1
a2167b
a2167b
%{?scl:EOF}
a2167b
a2167b
a2167b
%files -f .mfiles
a2167b
%doc doc
a2167b
%doc COPYRIGHT
a2167b
%{_javadir}/JFlex.jar
a2167b
%{_mandir}/man1/%{pkg_name}.1.gz
a2167b
a2167b
%files javadoc
a2167b
%doc COPYRIGHT
a2167b
%doc %{_javadocdir}/%{name}
a2167b
a2167b
a2167b
%changelog
a2167b
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 0:1.4.3-20.14
a2167b
- Fix BR on maven-local & co.
a2167b
a2167b
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 0:1.4.3-20.13
a2167b
- maven33 rebuild #2
a2167b
a2167b
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 0:1.4.3-20.12
a2167b
- maven33 rebuild
a2167b
a2167b
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 0:1.4.3-20.11
a2167b
- Mass rebuild 2015-01-13
a2167b
a2167b
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 0:1.4.3-20.10
a2167b
- BR/R on packages from rh-java-common
a2167b
a2167b
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 0:1.4.3-20.9
a2167b
- Mass rebuild 2015-01-06
a2167b
a2167b
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.8
a2167b
- Mass rebuild 2014-05-26
a2167b
a2167b
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.7
a2167b
- Mass rebuild 2014-02-19
a2167b
a2167b
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.6
a2167b
- Mass rebuild 2014-02-18
a2167b
a2167b
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.5
a2167b
- Remove requires on java
a2167b
a2167b
* Mon Feb 17 2014 Michal Srb <msrb@redhat.com> - 0:1.4.3-20.4
a2167b
- SCL-ize BR/R
a2167b
a2167b
* Thu Feb 13 2014 Michal Srb <msrb@redhat.com> - 0:1.4.3-20.3
a2167b
- Rebuilt with jflex as a BR
a2167b
a2167b
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.2
a2167b
- Rebuild to regenerate auto-requires
a2167b
a2167b
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-20.1
a2167b
- First maven30 software collection build
a2167b
a2167b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.4.3-20
a2167b
- Mass rebuild 2013-12-27
a2167b
a2167b
* Thu Oct 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-19
a2167b
- Remove desktop files
a2167b
a2167b
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 0:1.4.3-18
a2167b
- Add create-tarball.sh script to SRPM
a2167b
a2167b
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-17
a2167b
- Remove workaround for rpm bug #646523
a2167b
a2167b
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-16
a2167b
- Rebuild to regenerate API documentation
a2167b
- Resolves: CVE-2013-1571
a2167b
a2167b
* Thu Jun 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-15
a2167b
- Fix javadoc generation
a2167b
- Update to current packaging guidelines
a2167b
a2167b
* Thu Jun 20 2013 Michal Srb <msrb@redhat.com> - 0:1.4.3-14
a2167b
- Build from clean tarball
a2167b
- Install license file with javadoc package
a2167b
a2167b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-13
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a2167b
a2167b
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-12
a2167b
- Install Emacs jflex-mode
a2167b
a2167b
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-11
a2167b
- Remove bundled java_cup sources
a2167b
- Resolves: rhbz#877051
a2167b
a2167b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-10
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a2167b
a2167b
* Wed May  2 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-9
a2167b
- Fix license tag
a2167b
- Import manpage from Debian's jflex 1.4.1-3 (GPL+)
a2167b
a2167b
* Thu Apr 19 2012 Jaromir Capik <jcapik@redhat.com> - 0:1.4.3-8
a2167b
- Desktop file generated
a2167b
- Icon created from the GPL licensed logo
a2167b
a2167b
* Mon Mar 12 2012 Jaromir Capik <jcapik@redhat.com> - 0:1.4.3-7
a2167b
- Wrapper script generated
a2167b
- Minor spec file changes according to the latest guidelines
a2167b
a2167b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-6
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a2167b
a2167b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-5
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a2167b
a2167b
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-4
a2167b
- Add dependency on java_cup in the maven pom.xml.
a2167b
a2167b
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-3
a2167b
- Require java_cup.
a2167b
a2167b
* Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-3
a2167b
- Provide JFlex.jar.
a2167b
- Don't put java_cup classes in the jar.
a2167b
a2167b
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-2
a2167b
- Add maven pom and depmaps.
a2167b
a2167b
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-1
a2167b
- Update to 1.4.3.
a2167b
a2167b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.1-0.5
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a2167b
a2167b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.1-0.4
a2167b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a2167b
a2167b
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4.1-0.3
a2167b
- drop repotag
a2167b
a2167b
* Mon Mar 03 2008 Matt Wringe <mwringe@redhat.com> - 0:1.4.1-0jpp.2
a2167b
- Add missing buildrequires on java_cup
a2167b
a2167b
* Fri Feb 22 2008 Matt Wringe <mwringe@redhat.com> - 0:1.4.1-0jpp.1
a2167b
- Patch build file to allow bootstrap building
a2167b
a2167b
* Mon Feb 18 2008 Lubomir Kundrak <lkundrak@redhat.com> - 0:1.4.1-0jpp.1
a2167b
- Naive attempt to update to newer version
a2167b
a2167b
* Mon Apr 02 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.5-2jpp.2
a2167b
- Add patches jflex-CharSet_java.patch and jflex-StateSet_java.patch
a2167b
  to allow building with the new gcj
a2167b
a2167b
* Mon Feb 12 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.5-2jpp.1
a2167b
- Remove javadoc post and postun sections due to new jpp standard 
a2167b
- Update makefile patch to compress jar
a2167b
- Fix rpmlint issues
a2167b
a2167b
* Wed Jan 04 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.3.5-2jpp
a2167b
- First JPP 1.7 build
a2167b
a2167b
* Wed Nov 16 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.3.5-1jpp
a2167b
- First JPackage release