Blame SPECS/jflex.spec

0df95b
%{?scl:%scl_package jflex}
0df95b
%{!?scl:%global pkg_name %{name}}
0df95b
0df95b
%bcond_without desktop
0df95b
%bcond_without emacs
0df95b
0df95b
Summary:        Fast Scanner Generator
0df95b
Name:           %{?scl_prefix}jflex
0df95b
Version:        1.6.1
0df95b
Release:        8.2%{?dist}
0df95b
License:        BSD
0df95b
URL:            http://jflex.de/
0df95b
BuildArch:      noarch
0df95b
0df95b
# ./create-tarball.sh %%{version}
0df95b
Source0:        %{pkg_name}-%{version}-clean.tar.gz
0df95b
Source2:        %{pkg_name}.desktop
0df95b
Source3:        %{pkg_name}.png
0df95b
Source4:        %{pkg_name}.1
0df95b
Source5:        create-tarball.sh
0df95b
0df95b
BuildRequires:  %{?scl_prefix}maven-local
0df95b
BuildRequires:  %{?scl_prefix}ant
0df95b
BuildRequires:  %{?scl_prefix}jflex
0df95b
BuildRequires:  %{?scl_prefix}junit
0df95b
BuildRequires:  %{?scl_prefix}sonatype-oss-parent
0df95b
BuildRequires:  java-devel
0df95b
BuildRequires:  %{?scl_prefix}java_cup
0df95b
%if %{with desktop}
0df95b
BuildRequires:  desktop-file-utils
0df95b
%endif
0df95b
%if %{with emacs}
0df95b
BuildRequires:  emacs
0df95b
Requires:       emacs-filesystem >= %{_emacs_version}
0df95b
%endif
0df95b
0df95b
%description
0df95b
JFlex is a lexical analyzer generator (also known as scanner
0df95b
generator) for Java, written in Java.  It is also a rewrite of the
0df95b
very useful tool JLex which was developed by Elliot Berk at Princeton
0df95b
University.  As Vern Paxson states for his C/C++ tool flex: They do
0df95b
not share any code though.  JFlex is designed to work together with
0df95b
the LALR parser generator CUP by Scott Hudson, and the Java
0df95b
modification of Berkeley Yacc BYacc/J by Bob Jamison.  It can also be
0df95b
used together with other parser generators like ANTLR or as a
0df95b
standalone tool.
0df95b
0df95b
%package javadoc
0df95b
Summary:        API documentation for %{pkg_name}
0df95b
0df95b
%description javadoc
0df95b
This package provides %{summary}.
0df95b
0df95b
%prep
0df95b
%setup -n %{pkg_name}-%{version} -q
0df95b
%mvn_file : %{pkg_name}
0df95b
%pom_add_dep java_cup:java_cup
0df95b
0df95b
%pom_remove_plugin :maven-antrun-plugin
0df95b
%pom_remove_plugin :jflex-maven-plugin
0df95b
0df95b
# Tests fail with 320k stacks (default on i686), so lets increase
0df95b
# stack to 16M to avoid stack overflows.  See rhbz#1119308
0df95b
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" "<argLine>-Xss16384k</argLine>"
0df95b
0df95b
%build
0df95b
java -jar $(find-jar java_cup) -parser LexParse -interface -destdir src/main/java src/main/cup/LexParse.cup
0df95b
jflex -d src/main/java/jflex --skel src/main/jflex/skeleton.nested src/main/jflex/LexScan.flex
0df95b
%mvn_build
0df95b
0df95b
%if %{with emacs}
0df95b
# Compile Emacs jflex-mode source
0df95b
%{_emacs_bytecompile} lib/jflex-mode.el
0df95b
%endif
0df95b
0df95b
%install
0df95b
%mvn_install
0df95b
0df95b
# wrapper script for direct execution
0df95b
%jpackage_script jflex.Main "" "" jflex:java_cup jflex true
0df95b
0df95b
# manpage
0df95b
install -d -m 755 %{buildroot}%{_mandir}/man1
0df95b
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1
0df95b
0df95b
# .desktop + icons
0df95b
%if %{with desktop}
0df95b
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
0df95b
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
0df95b
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{pkg_name}.png
0df95b
%endif
0df95b
0df95b
# Emacs files
0df95b
%if %{with emacs}
0df95b
install -d -m 755 %{buildroot}%{_emacs_sitelispdir}/%{pkg_name}
0df95b
install -p -m 644 lib/jflex-mode.el %{buildroot}%{_emacs_sitelispdir}/%{pkg_name}
0df95b
install -p -m 644 lib/jflex-mode.elc %{buildroot}%{_emacs_sitelispdir}/%{pkg_name}
0df95b
%endif
0df95b
0df95b
%files -f .mfiles
0df95b
%doc doc
0df95b
%doc COPYRIGHT
0df95b
%{_bindir}/%{pkg_name}
0df95b
%{_mandir}/man1/%{pkg_name}.1.gz
0df95b
%if %{with desktop}
0df95b
%{_datadir}/applications/%{pkg_name}.desktop
0df95b
%{_datadir}/pixmaps/%{pkg_name}.png
0df95b
%endif
0df95b
%if %{with emacs}
0df95b
%{_emacs_sitelispdir}/%{pkg_name}
0df95b
%endif
0df95b
0df95b
%files javadoc
0df95b
%doc COPYRIGHT
0df95b
%doc %{_javadocdir}/%{pkg_name}
0df95b
0df95b
%changelog
0df95b
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 1.6.1-8.2
0df95b
- Mass rebuild 2017-06-22
0df95b
0df95b
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 1.6.1-8.1
0df95b
- Automated package import and SCL-ization
0df95b
0df95b
* Fri Jun  2 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.1-8
0df95b
- Don't hardcode java_cup JAR path
0df95b
0df95b
* Wed May 31 2017 Michael Simacek <msimacek@redhat.com> - 1.6.1-7
0df95b
- Replace absolute path with a macro
0df95b
0df95b
* Tue Mar  7 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.1-6
0df95b
- Add bconds for desktop and emacs
0df95b
0df95b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-5
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0df95b
0df95b
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.1-4
0df95b
- Add missing build-requires
0df95b
0df95b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0df95b
0df95b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0df95b
0df95b
* Tue Mar 17 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.1-1
0df95b
- Update to upstream version 1.6.1
0df95b
0df95b
* Tue Jul  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.0-1
0df95b
- Update to upstream version 1.6.0
0df95b
0df95b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0df95b
0df95b
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.1-1
0df95b
- Update to upstream version 1.5.1
0df95b
0df95b
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.0-3
0df95b
- Use Requires: java-headless rebuild (#1067528)
0df95b
0df95b
* Tue Jan 28 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.0-2
0df95b
- Fix license tag
0df95b
0df95b
* Mon Jan 27 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5.0-1
0df95b
- Update to upstream version 1.5.0
0df95b
- Build with Maven
0df95b
0df95b
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 0:1.4.3-16
0df95b
- Add create-tarball.sh script to SRPM
0df95b
0df95b
* Thu Jun 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-15
0df95b
- Fix javadoc generation
0df95b
- Update to current packaging guidelines
0df95b
0df95b
* Thu Jun 20 2013 Michal Srb <msrb@redhat.com> - 0:1.4.3-14
0df95b
- Build from clean tarball
0df95b
- Install license file with javadoc package
0df95b
0df95b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-13
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0df95b
0df95b
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-12
0df95b
- Install Emacs jflex-mode
0df95b
0df95b
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-11
0df95b
- Remove bundled java_cup sources
0df95b
- Resolves: rhbz#877051
0df95b
0df95b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-10
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0df95b
0df95b
* Wed May  2 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4.3-9
0df95b
- Fix license tag
0df95b
- Import manpage from Debian's jflex 1.4.1-3 (GPL+)
0df95b
0df95b
* Thu Apr 19 2012 Jaromir Capik <jcapik@redhat.com> - 0:1.4.3-8
0df95b
- Desktop file generated
0df95b
- Icon created from the GPL licensed logo
0df95b
0df95b
* Mon Mar 12 2012 Jaromir Capik <jcapik@redhat.com> - 0:1.4.3-7
0df95b
- Wrapper script generated
0df95b
- Minor spec file changes according to the latest guidelines
0df95b
0df95b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-6
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0df95b
0df95b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.3-5
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0df95b
0df95b
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-4
0df95b
- Add dependency on java_cup in the maven pom.xml.
0df95b
0df95b
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-3
0df95b
- Require java_cup.
0df95b
0df95b
* Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-3
0df95b
- Provide JFlex.jar.
0df95b
- Don't put java_cup classes in the jar.
0df95b
0df95b
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-2
0df95b
- Add maven pom and depmaps.
0df95b
0df95b
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-1
0df95b
- Update to 1.4.3.
0df95b
0df95b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.1-0.5
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0df95b
0df95b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4.1-0.4
0df95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0df95b
0df95b
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.4.1-0.3
0df95b
- drop repotag
0df95b
0df95b
* Mon Mar 03 2008 Matt Wringe <mwringe@redhat.com> - 0:1.4.1-0jpp.2
0df95b
- Add missing buildrequires on java_cup
0df95b
0df95b
* Fri Feb 22 2008 Matt Wringe <mwringe@redhat.com> - 0:1.4.1-0jpp.1
0df95b
- Patch build file to allow bootstrap building
0df95b
0df95b
* Mon Feb 18 2008 Lubomir Kundrak <lkundrak@redhat.com> - 0:1.4.1-0jpp.1
0df95b
- Naive attempt to update to newer version
0df95b
0df95b
* Mon Apr 02 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.5-2jpp.2
0df95b
- Add patches jflex-CharSet_java.patch and jflex-StateSet_java.patch
0df95b
  to allow building with the new gcj
0df95b
0df95b
* Mon Feb 12 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.5-2jpp.1
0df95b
- Remove javadoc post and postun sections due to new jpp standard 
0df95b
- Update makefile patch to compress jar
0df95b
- Fix rpmlint issues
0df95b
0df95b
* Wed Jan 04 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.3.5-2jpp
0df95b
- First JPP 1.7 build
0df95b
0df95b
* Wed Nov 16 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.3.5-1jpp
0df95b
- First JPackage release