123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- %define pkg_version 11a
- %define section free
- %define with_bootstrap 1
- Name: java_cup
- Summary: LALR Parser Generator for Java
- Version: 0.11a
- Release: 5%{?_dist_release}
- Group: Development/Tools
- License: BSD and LGPLv2
- URL: http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/
- Source0: java_cup-0.11a.tar.bz2
- Source1: java_cup-pom.xml
- Patch0: %{name}-build.patch
- BuildArch: noarch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: ant
- BuildRequires: jpackage-utils >= 1.5
- %if !%{with_bootstrap}
- BuildRequires: java_cup >= 0.11a
- %endif
- BuildRequires: java-1.6.0-openjdk-devel
- %description
- java_cup is a LALR Parser Generator for Java
- %package javadoc
- Summary: Javadoc for java_cup
- Group: Documentation
- %description javadoc
- Javadoc for java_cup
- %package manual
- Summary: Documentation for java_cup
- Group: Documentation
- %description manual
- Documentation for java_cup.
- %prep
- %setup -q
- %patch0 -b .sav
- cp %{SOURCE1} pom.xml
- find . -name "*.class" -exec rm -f {} \;
- %if !%{with_bootstrap}
- rm -rf java_cup-0.11a/bin/JFlex.jar
- rm -rf java_cup-0.11a/bin/java-cup-11.jar
- %endif
- %build
- %if !%{with_bootstrap}
- export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
- %endif
- ant
- find . -name parser.cup -exec rm {} \;
- ant javadoc
- %install
- rm -rf $RPM_BUILD_ROOT
- install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
- install -m 644 dist/java-cup-%{pkg_version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
- install -m 644 dist/java-cup-%{pkg_version}-runtime.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-runtime-%{version}.jar
- (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
- ln -sf ${jar} ${jar/-%{version}/}; done)
- install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
- cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
- (cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
- install -d -m 755 %{buildroot}%{_mavenpomdir}
- install -pm 644 pom.xml \
- %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(0644,root,root,0755)
- %doc changelog.txt
- %{_javadir}/*
- %{_mavenpomdir}/*
- %files manual
- %defattr(0644,root,root,0755)
- %doc manual.html
- %files javadoc
- %defattr(0644,root,root,0755)
- %doc %{_javadocdir}/%{name}-%{version}
- %doc %{_javadocdir}/%{name}
- %changelog
- * Sat Sep 4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.11a-5
- - Initial build for Vine Linux
- * Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-4
- - Add maven pom and depmap.
- * Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-3
- - Fix bootstrap.
- * Sun Jan 17 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 1:0.11a-2
- - Rebuilt in non-bootstrap mode (removed all prebuilt jars).
- - Added BR: jflex and java_cup >= 1:0.11a for non-bootstrap mode
- - Remove unnecessary R(post,postun): coreutils
- * Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-1
- - Update to 0.11a.
- - Drop gcj_support.
- * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10k-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10k-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- * Tue Jul 15 2008 Lubomir Rintel <lkundrak@v3.sk> - 1:0.10k-1
- - Fix the version to match upstream, so that FEver can be used
- * Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.10-0.k.6.3
- - drop repotag
- * Sun Feb 17 2008 Lubomir Kundrak <lkundrak@redhat.com> - 1:0.10-0.k.6jpp.2
- - Ant task
- - Clean up to satisfy QA script and rpmlint
- * Fri Aug 04 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.6jpp.1
- - Re-sync with latest version from JPP.
- - Partially adopt new naming convention.
- * Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 1:0.10-0.k.5jpp_2fc
- - Rebuilt
- * Thu Jul 20 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.5jpp_1fc
- - Re-sync with latest version from JPP.
- * Wed Jul 19 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.4jpp_1fc
- - Conditional native compilation for GCJ.
- * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_10fc
- - rebuild
- * Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 1:0.10-0.k.1jpp_9fc
- - stop scriptlet spew
- * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_8fc
- - bump again for double-long bug on ppc(64)
- * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_7fc
- - rebuilt for new gcc4.1 snapshot and glibc changes
- * Tue Jan 3 2006 Jesse Keating <jkeating@redhat.com> 1:0.10-0.k.1jpp_6fc
- - rebuilt again
- * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- - rebuilt
- * Tue Jul 19 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_5fc
- - Build on ia64, ppc64, s390 and s390x.
- - Switch to aot-compile-rpm.
- * Tue Jun 28 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_4fc
- - BC-compile.
- * Tue Jun 21 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_3fc
- - Remove classes from the tarball.
- * Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_2fc
- - Build into Fedora.
- * Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 1:0.10-0.k.1jpp_1rh
- - RH vacuuming
- * Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 1:0.10-0.k.1jpp
- - fix version/release (bump epoch)
- - change License tag from Free to BSD-style
- - add Distribution tag
- - really update for JPackage 1.5
- * Wed Mar 26 2003 Paul Nasrat <pauln@truemesh.com> 0.10k-1jpp
- - for jpackage-utils 1.5
- - New spec reverse engineered from binary rpms
|