From 72890b8bda58be7047184a186a5c8d7f9f67fba89864e48506b9f1e35764e521 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 21 May 2009 02:37:49 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jflex?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + jflex-1.4.3.tar.bz2 | 3 + jflex-bootstrap.changes | 12 ++ jflex-bootstrap.spec | 219 ++++++++++++++++++++++++++++++++++ jflex-byaccj-utl.patch | 13 ++ jflex-classpath.patch | 47 ++++++++ jflex-javac-no-target.patch | 11 ++ jflex-lex-scan.patch | 12 ++ jflex-no-cup-no-jflex.patch | 57 +++++++++ jflex.changes | 12 ++ jflex.script | 27 +++++ jflex.spec | 218 +++++++++++++++++++++++++++++++++ jpackage-bootstrap-prepare.sh | 36 ++++++ ready | 0 15 files changed, 691 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jflex-1.4.3.tar.bz2 create mode 100644 jflex-bootstrap.changes create mode 100644 jflex-bootstrap.spec create mode 100644 jflex-byaccj-utl.patch create mode 100644 jflex-classpath.patch create mode 100644 jflex-javac-no-target.patch create mode 100644 jflex-lex-scan.patch create mode 100644 jflex-no-cup-no-jflex.patch create mode 100644 jflex.changes create mode 100644 jflex.script create mode 100644 jflex.spec create mode 100644 jpackage-bootstrap-prepare.sh create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jflex-1.4.3.tar.bz2 b/jflex-1.4.3.tar.bz2 new file mode 100644 index 0000000..c40ff08 --- /dev/null +++ b/jflex-1.4.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5837eb7c72c265dacc638ad29f6df6da2161247130b34846a6955e131ee08f31 +size 1188715 diff --git a/jflex-bootstrap.changes b/jflex-bootstrap.changes new file mode 100644 index 0000000..b6ee734 --- /dev/null +++ b/jflex-bootstrap.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Tue May 5 09:35:07 CEST 2009 - mvyskocil@suse.cz + +- Update to 1.4.3 (bugfix release) +- Build using java-1_5_0-gcj to allow openjdk bootstrap +- Recreated jflex-lex-scan.patch + +------------------------------------------------------------------- +Wed Apr 29 16:16:14 CEST 2009 - mvyskocil@suse.cz + +- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5) + diff --git a/jflex-bootstrap.spec b/jflex-bootstrap.spec new file mode 100644 index 0000000..ade31c1 --- /dev/null +++ b/jflex-bootstrap.spec @@ -0,0 +1,219 @@ +# +# spec file for package jflex-bootstrap (Version 1.4.3) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%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 jflex.spec! ##### +%define with_bootstrap 1 +%bcond_with bootstrap +%define section free + +Name: jflex-bootstrap +# This line is not a comment, please do not remove it! +#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name}) +Version: 1.4.3 +Release: 2 +Summary: Lexical Analyzer Generator for Java +License: GPL v2 only +Group: Development/Libraries/Java +Url: http://www.jflex.de/ +Source0: http://www.jflex.de/jflex-%{version}.tar.bz2 +Source1: jflex.script +Patch0: jflex-javac-no-target.patch +Patch1: jflex-no-cup-no-jflex.patch +Patch2: jflex-classpath.patch +Patch3: jflex-lex-scan.patch +Patch4: jflex-byaccj-utl.patch +Requires: java_cup +Requires: jpackage-utils +BuildRequires: ant +BuildRequires: java-cup-bootstrap +%if %without bootstrap +BuildRequires: jflex-bootstrap +%endif +BuildRequires: java-1_5_0-gcj-compat-devel +BuildRequires: junit +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%if %without bootstrap + +%package javadoc +License: GPL v2 only +Group: Development/Libraries/Java +Summary: Lexical Analyzer Generator for Java + +%description javadoc +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%package doc +License: GPL v2 only +Group: Development/Libraries/Java +Summary: Lexical Analyzer Generator for Java + +%description doc +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%endif + +%prep +%setup -q -n jflex-%{version} +%{__perl} -pi -e 's/\r$//g' examples/standalone/sample.inp +%{__rm} -rf src/java_cup +find . -name '*.jar' | xargs -t %{__rm} +%if %without bootstrap +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex) +export OPT_JAR_LIST=: +pushd src +%ant realclean +%ant jflex +popd +%endif +%patch0 -p1 +%if %with bootstrap +%patch1 -p1 +%else +# You must use Re jflex.spec and have a java-cup and jflex installed +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%endif + +%build +pushd src +%if %without bootstrap +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex) +%else +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit) +%endif +export OPT_JAR_LIST=: +%ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar +%if %without bootstrap +%{__mkdir_p} ../dist/docs/api +%{javadoc} -d ../dist/docs/api `find . -type f -name "*.java"` +%endif +popd + +%install +# jar +%{__mkdir_p} %{buildroot}%{_javadir} +%{__cp} -a lib/JFlex.jar %{buildroot}%{_javadir}/jflex-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# compatibility symlink +(cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar) +%if %without bootstrap +# javadoc +%{__mkdir_p} 755 %{buildroot}%{_javadocdir}/%{name}-%{version} +%{__cp} -a dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version} +%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} +%endif +%{__mkdir_p} %{buildroot}%{_bindir} +%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex + +%clean +%{__rm} -rf %{buildroot} +%{__rm} -rf %{_builddir}/jflex + +%files +%defattr(0644,root,root,0755) +%doc COPYRIGHT src/README src/changelog +%attr(0755,root,root) %{_bindir}/jflex +%{_javadir}/jflex.jar +%{_javadir}/jflex-%{version}.jar +%{_javadir}/JFlex.jar +%if %without bootstrap + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} + +%files doc +%defattr(0644,root,root,0755) +%doc examples doc +%endif + +%changelog +* Tue May 05 2009 mvyskocil@suse.cz +- Update to 1.4.3 (bugfix release) +- Build using java-1_5_0-gcj to allow openjdk bootstrap +- Recreated jflex-lex-scan.patch +* Wed Apr 29 2009 mvyskocil@suse.cz +- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5) diff --git a/jflex-byaccj-utl.patch b/jflex-byaccj-utl.patch new file mode 100644 index 0000000..a3f12d8 --- /dev/null +++ b/jflex-byaccj-utl.patch @@ -0,0 +1,13 @@ +--- jflex/examples/byaccj/README.orig 2003-01-07 16:30:17.000000000 +0100 ++++ jflex/examples/byaccj/README 2005-10-06 21:08:38.000000000 +0200 +@@ -1,8 +1,8 @@ + This directory contains an interoperability example for BYacc/J and JFlex + (a small calculator) + +-You need the parser generator byacc/j from +-http://troi.lincom-asg.com/~rjamison/byacc/ ++You need the parser generator byacc/j from ++http://byaccj.sourceforge.net/ + for this example to work (version byacc/j 1.1 has been tested). + + Use the Makefile to generate the lexer and parser. diff --git a/jflex-classpath.patch b/jflex-classpath.patch new file mode 100644 index 0000000..4d3ba2c --- /dev/null +++ b/jflex-classpath.patch @@ -0,0 +1,47 @@ +--- jflex-1.4.2/src/build.xml.orig 2008-08-07 13:01:10.926485858 -0400 ++++ jflex-1.4.2/src/build.xml 2008-08-07 13:03:33.725486421 -0400 +@@ -7,10 +7,10 @@ + + + +- ++ + + +- ++ + + + +@@ -28,12 +28,16 @@ + + + ++ + + + ++ + + + +@@ -41,12 +45,14 @@ + + + ++ + + + diff --git a/jflex-javac-no-target.patch b/jflex-javac-no-target.patch new file mode 100644 index 0000000..636bda1 --- /dev/null +++ b/jflex-javac-no-target.patch @@ -0,0 +1,11 @@ +--- jflex-1.4.2/src/build.xml.orig 2008-05-28 04:54:17.000000000 -0400 ++++ jflex-1.4.2/src/build.xml 2008-08-07 13:00:25.977345228 -0400 +@@ -64,8 +64,6 @@ + description="compile all classes"> + + diff --git a/jflex-lex-scan.patch b/jflex-lex-scan.patch new file mode 100644 index 0000000..aec411f --- /dev/null +++ b/jflex-lex-scan.patch @@ -0,0 +1,12 @@ +--- jflex-1.4.3/src/JFlex/LexScan.java ++++ jflex-1.4.3/src/JFlex/LexScan.java +@@ -1642,9 +1642,6 @@ + } + } + +- /** denotes if the user-EOF-code has already been executed */ +- private boolean zzEOFDone; +- + /* user code: */ + int balance = 0; + int commentbalance = 0; diff --git a/jflex-no-cup-no-jflex.patch b/jflex-no-cup-no-jflex.patch new file mode 100644 index 0000000..1658c78 --- /dev/null +++ b/jflex-no-cup-no-jflex.patch @@ -0,0 +1,57 @@ +--- jflex-1.4.2/src/build.xml.orig 2008-08-07 13:13:24.346611761 -0400 ++++ jflex-1.4.2/src/build.xml 2008-08-07 13:14:15.625486402 -0400 +@@ -28,12 +28,13 @@ + + + +- + + + ++ + + + +@@ -41,12 +42,14 @@ + + + ++ + + + +@@ -60,7 +63,7 @@ + + +- + + + ++ + + + diff --git a/jflex.changes b/jflex.changes new file mode 100644 index 0000000..b6ee734 --- /dev/null +++ b/jflex.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Tue May 5 09:35:07 CEST 2009 - mvyskocil@suse.cz + +- Update to 1.4.3 (bugfix release) +- Build using java-1_5_0-gcj to allow openjdk bootstrap +- Recreated jflex-lex-scan.patch + +------------------------------------------------------------------- +Wed Apr 29 16:16:14 CEST 2009 - mvyskocil@suse.cz + +- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5) + diff --git a/jflex.script b/jflex.script new file mode 100644 index 0000000..08a14f8 --- /dev/null +++ b/jflex.script @@ -0,0 +1,27 @@ +#!/bin/sh +# +# jflex script +# JPackage Project + +# Source functions library +if [ -f /usr/share/java-utils/java-functions ] ; then + . /usr/share/java-utils/java-functions +else + echo "Can't find functions library, aborting" + exit 1 +fi + +# Configuration +MAIN_CLASS="JFlex.Main" +BASE_FLAGS="" +BASE_OPTIONS="" +BASE_JARS="jflex" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/jflex.spec b/jflex.spec new file mode 100644 index 0000000..8257fbf --- /dev/null +++ b/jflex.spec @@ -0,0 +1,218 @@ +# +# spec file for package jflex (Version 1.4.3) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%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}} +%define _without_bootstrap 1 +%bcond_with bootstrap +%define section free + +Name: jflex +# This line is not a comment, please do not remove it! +#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name}) +Version: 1.4.3 +Release: 2 +Summary: Lexical Analyzer Generator for Java +License: GPL v2 only +Group: Development/Libraries/Java +Url: http://www.jflex.de/ +Source0: http://www.jflex.de/jflex-%{version}.tar.bz2 +Source1: jflex.script +Patch0: jflex-javac-no-target.patch +Patch1: jflex-no-cup-no-jflex.patch +Patch2: jflex-classpath.patch +Patch3: jflex-lex-scan.patch +Patch4: jflex-byaccj-utl.patch +Requires: java_cup +Requires: jpackage-utils +BuildRequires: ant +BuildRequires: java-cup-bootstrap +%if %without bootstrap +BuildRequires: jflex-bootstrap +%endif +BuildRequires: java-1_5_0-gcj-compat-devel +BuildRequires: junit +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%if %without bootstrap + +%package javadoc +License: GPL v2 only +Group: Development/Libraries/Java +Summary: Lexical Analyzer Generator for Java + +%description javadoc +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%package doc +License: GPL v2 only +Group: Development/Libraries/Java +Summary: Lexical Analyzer Generator for Java + +%description doc +JFlex is a lexical analyzer generator for Java written in Java. It is +also a rewrite of the very useful tool JLex which was developed by +Elliot Berk at Princeton University. As Vern Paxson states for his +C/C++ tool flex: they do not share any code though. + +Design goals The main design goals of JFlex are: + +* Full unicode support + +* Fast generated scanners + +* Fast scanner generation + +* Convenient specification syntax + +* Platform independence + +* JLex compatibility + + + +%endif + +%prep +%setup -q -n jflex-%{version} +%{__perl} -pi -e 's/\r$//g' examples/standalone/sample.inp +%{__rm} -rf src/java_cup +find . -name '*.jar' | xargs -t %{__rm} +%if %without bootstrap +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex) +export OPT_JAR_LIST=: +pushd src +%ant realclean +%ant jflex +popd +%endif +%patch0 -p1 +%if %with bootstrap +%patch1 -p1 +%else +# You must use Re jflex.spec and have a java-cup and jflex installed +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%endif + +%build +pushd src +%if %without bootstrap +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex) +%else +export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit) +%endif +export OPT_JAR_LIST=: +%ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar +%if %without bootstrap +%{__mkdir_p} ../dist/docs/api +%{javadoc} -d ../dist/docs/api `find . -type f -name "*.java"` +%endif +popd + +%install +# jar +%{__mkdir_p} %{buildroot}%{_javadir} +%{__cp} -a lib/JFlex.jar %{buildroot}%{_javadir}/jflex-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# compatibility symlink +(cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar) +%if %without bootstrap +# javadoc +%{__mkdir_p} 755 %{buildroot}%{_javadocdir}/%{name}-%{version} +%{__cp} -a dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version} +%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} +%endif +%{__mkdir_p} %{buildroot}%{_bindir} +%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex + +%clean +%{__rm} -rf %{buildroot} +%{__rm} -rf %{_builddir}/jflex + +%files +%defattr(0644,root,root,0755) +%doc COPYRIGHT src/README src/changelog +%attr(0755,root,root) %{_bindir}/jflex +%{_javadir}/jflex.jar +%{_javadir}/jflex-%{version}.jar +%{_javadir}/JFlex.jar +%if %without bootstrap + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} + +%files doc +%defattr(0644,root,root,0755) +%doc examples doc +%endif + +%changelog +* Tue May 05 2009 mvyskocil@suse.cz +- Update to 1.4.3 (bugfix release) +- Build using java-1_5_0-gcj to allow openjdk bootstrap +- Recreated jflex-lex-scan.patch +* Wed Apr 29 2009 mvyskocil@suse.cz +- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5) diff --git a/jpackage-bootstrap-prepare.sh b/jpackage-bootstrap-prepare.sh new file mode 100644 index 0000000..8bf1dcc --- /dev/null +++ b/jpackage-bootstrap-prepare.sh @@ -0,0 +1,36 @@ +#!/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 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4