forked from pool/java-cup
- Add conflicts for each variant
- Sync .changes - Drop weird jpackage-prepare script and use standard pre_checkin.sh - Disable build of javadoc * drop java-cup-javadoc.patch - license update: HPND SPDX syntax - Add conflicts for each variant - Sync .changes - Drop weird jpackage-prepare script and use standard pre_checkin.sh - sync licenses OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-cup?expand=0&rev=10
This commit is contained in:
parent
719cb3d5a6
commit
b65160f957
@ -1,10 +1,28 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 29 07:47:30 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- Add conflicts for each variant
|
||||||
|
- Sync .changes
|
||||||
|
- Drop weird jpackage-prepare script and use standard pre_checkin.sh
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 23 08:06:54 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- Disable build of javadoc
|
||||||
|
* drop java-cup-javadoc.patch
|
||||||
|
-------------------------------------------------------------------
|
||||||
Fri Jan 25 15:36:53 UTC 2013 - coolo@suse.com
|
Fri Jan 25 15:36:53 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
- sync licenses
|
- sync licenses
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 8 11:54:44 UTC 2010 - mvyskocil@suse.cz
|
Mon Jun 4 13:08:48 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
- license update: HPND
|
||||||
|
SPDX syntax
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 8 11:55:22 UTC 2010 - mvyskocil@suse.cz
|
||||||
|
|
||||||
- Build ignore xml-comons-jax-1.3-apis
|
- Build ignore xml-comons-jax-1.3-apis
|
||||||
|
|
||||||
|
@ -16,20 +16,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
|
|
||||||
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
|
|
||||||
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
|
|
||||||
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
|
|
||||||
##### WARNING: please do not edit this auto generated spec file. Use the java-cup.spec! #####
|
##### WARNING: please do not edit this auto generated spec file. Use the java-cup.spec! #####
|
||||||
%define with_bootstrap 1
|
%global with_bootstrap 1
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%define section free
|
|
||||||
%define cvs_version 11a
|
%define cvs_version 11a
|
||||||
%define real_name java-cup
|
%define real_name java-cup
|
||||||
|
|
||||||
Name: java-cup-bootstrap
|
Name: java-cup-bootstrap
|
||||||
# This line is not a comment, please do not remove it!
|
|
||||||
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
|
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: LALR Parser Generator in Java
|
Summary: LALR Parser Generator in Java
|
||||||
@ -42,7 +35,6 @@ Source1: java-cup.script
|
|||||||
Source2: java-cup-generated-files.tar.bz2
|
Source2: java-cup-generated-files.tar.bz2
|
||||||
# From http://www2.cs.tum.edu/projects/cup/
|
# From http://www2.cs.tum.edu/projects/cup/
|
||||||
Source3: java-cup.license
|
Source3: java-cup.license
|
||||||
Source1000: jpackage-bootstrap-prepare.sh
|
|
||||||
Patch1: java-cup-no-classpath-in-manifest.patch
|
Patch1: java-cup-no-classpath-in-manifest.patch
|
||||||
Patch2: java-cup-no-cup-no-jflex.patch
|
Patch2: java-cup-no-cup-no-jflex.patch
|
||||||
Patch3: java-cup-classpath.patch
|
Patch3: java-cup-classpath.patch
|
||||||
@ -63,6 +55,13 @@ Provides: java_cup = %{version}-%{release}
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
# bootstrap variant is just stripped down java-cup, so it conflicts
|
||||||
|
%if %without bootstrap
|
||||||
|
Conflicts: java-cup-bootstrap
|
||||||
|
%else
|
||||||
|
Conflicts: java-cup
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||||
use CUP in an Ant-Target
|
use CUP in an Ant-Target
|
||||||
@ -71,9 +70,7 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
|||||||
myGrammar.cup
|
myGrammar.cup
|
||||||
|
|
||||||
* use generic parametrized classes (since Java 1.5) as datatypes for
|
* use generic parametrized classes (since Java 1.5) as datatypes for
|
||||||
non
|
non terminals and terminals
|
||||||
|
|
||||||
* terminals and terminals
|
|
||||||
|
|
||||||
* have Your own symbol classes
|
* have Your own symbol classes
|
||||||
|
|
||||||
@ -135,7 +132,6 @@ export OPT_JAR_LIST=:
|
|||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)
|
||||||
# compatibility symlinks
|
# compatibility symlinks
|
||||||
(cd %{buildroot}%{_javadir} && %{__ln_s} %{real_name}.jar java_cup.jar && %{__ln_s} %{real_name}-runtime.jar java_cup-runtime.jar)
|
(cd %{buildroot}%{_javadir} && %{__ln_s} %{real_name}.jar java_cup.jar && %{__ln_s} %{real_name}-runtime.jar java_cup-runtime.jar)
|
||||||
|
|
||||||
%{__mkdir_p} %{buildroot}%{_bindir}
|
%{__mkdir_p} %{buildroot}%{_bindir}
|
||||||
%{__install} -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{real_name}
|
%{__install} -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{real_name}
|
||||||
|
|
||||||
|
@ -1,8 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 29 07:47:30 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- Add conflicts for each variant
|
||||||
|
- Sync .changes
|
||||||
|
- Drop weird jpackage-prepare script and use standard pre_checkin.sh
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 23 08:06:54 UTC 2013 - mvyskocil@suse.com
|
Fri Aug 23 08:06:54 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
- Disable build of javadoc
|
- Disable build of javadoc
|
||||||
* drop java-cup-javadoc.patch
|
* drop java-cup-javadoc.patch
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 25 15:36:53 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- sync licenses
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 4 13:08:48 UTC 2012 - cfarrell@suse.com
|
Mon Jun 4 13:08:48 UTC 2012 - cfarrell@suse.com
|
||||||
|
@ -16,19 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
|
%global _without_bootstrap 1
|
||||||
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
|
|
||||||
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
|
|
||||||
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
|
|
||||||
%define _without_bootstrap 1
|
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%define section free
|
|
||||||
%define cvs_version 11a
|
%define cvs_version 11a
|
||||||
%define real_name java-cup
|
%define real_name java-cup
|
||||||
|
|
||||||
Name: java-cup
|
Name: java-cup
|
||||||
# This line is not a comment, please do not remove it!
|
|
||||||
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
|
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: LALR Parser Generator in Java
|
Summary: LALR Parser Generator in Java
|
||||||
@ -41,7 +34,6 @@ Source1: java-cup.script
|
|||||||
Source2: java-cup-generated-files.tar.bz2
|
Source2: java-cup-generated-files.tar.bz2
|
||||||
# From http://www2.cs.tum.edu/projects/cup/
|
# From http://www2.cs.tum.edu/projects/cup/
|
||||||
Source3: java-cup.license
|
Source3: java-cup.license
|
||||||
Source1000: jpackage-bootstrap-prepare.sh
|
|
||||||
Patch1: java-cup-no-classpath-in-manifest.patch
|
Patch1: java-cup-no-classpath-in-manifest.patch
|
||||||
Patch2: java-cup-no-cup-no-jflex.patch
|
Patch2: java-cup-no-cup-no-jflex.patch
|
||||||
Patch3: java-cup-classpath.patch
|
Patch3: java-cup-classpath.patch
|
||||||
@ -62,6 +54,13 @@ Provides: java_cup = %{version}-%{release}
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
# bootstrap variant is just stripped down java-cup, so it conflicts
|
||||||
|
%if %without bootstrap
|
||||||
|
Conflicts: java-cup-bootstrap
|
||||||
|
%else
|
||||||
|
Conflicts: java-cup
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||||
use CUP in an Ant-Target
|
use CUP in an Ant-Target
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
|
||||||
# create a -bootstrap spec for majority of Java packages for bootstrapping
|
|
||||||
#
|
|
||||||
#Usage:
|
|
||||||
# 1.) add these two lines below into the spec file including hash sign (#)
|
|
||||||
# behind the Name: tag
|
|
||||||
# # This line is not a comment, please do not remove it!
|
|
||||||
# #%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
|
|
||||||
# 2.) you need to define a with_bootstrap macro with value 1
|
|
||||||
#
|
|
||||||
# How it works:
|
|
||||||
# 1.) Was called by rpmbuild (or Re, or should be invoked manually from command line)
|
|
||||||
# 2.) Rename the package name to name-bootstrap
|
|
||||||
# 3.) Redefine the with_bootstrap macro to _without_bootstrap 1
|
|
||||||
# 4.) Define a real_name macro with real name (used in %install and %files)
|
|
||||||
# 5.) Copy the .changes to -boostrap.changes
|
|
||||||
|
|
||||||
|
|
||||||
ORIG_SPEC=${2%-bootstrap}
|
|
||||||
# Never update -bootstrap file when it is already opened. It will break advanced build scripts:
|
|
||||||
if [[ "${2}" != "${ORIG_SPEC}" ]]; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f ${1}/${ORIG_SPEC}.spec ]] ; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
|
||||||
sed "s/^%define _without_bootstrap.*$/${EDIT_WARNING}%define with_bootstrap 1/;
|
|
||||||
s/^\(Name:.*\)$/\1-bootstrap/;
|
|
||||||
" < ${1}/${ORIG_SPEC}.spec > ${1}/${ORIG_SPEC}-bootstrap.spec
|
|
||||||
|
|
||||||
cp -a ${1}/${ORIG_SPEC}.changes ${1}/${ORIG_SPEC}-bootstrap.changes
|
|
14
pre_checkin.sh
Normal file
14
pre_checkin.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME1=java-cup
|
||||||
|
NAME2=java-cup-bootstrap
|
||||||
|
COPY_CHANGES=true
|
||||||
|
|
||||||
|
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${NAME1}.spec! #####\n"
|
||||||
|
sed "s/^%global _without_bootstrap.*$/${EDIT_WARNING}%global with_bootstrap 1/;
|
||||||
|
s/^\(Name:.*\)$/\1-bootstrap/;
|
||||||
|
" < ${NAME1}.spec > ${NAME2:-${NAME1}-bootstrap}.spec
|
||||||
|
|
||||||
|
if ${COPY_CHANGES}; then
|
||||||
|
cp ${NAME1}.changes ${NAME2:-${NAME1}-bootstrap}.changes
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user