diff --git a/clean-tarball.sh b/clean-tarball.sh deleted file mode 100755 index 0b3cfc7..0000000 --- a/clean-tarball.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -if [ $# -ne 1 ]; then - echo "Usage: ./clean-tarball VERSION" - exit 1 -fi - -VERSION=${1} -NAME="jflex" - -wget http://jflex.de/${NAME}-${VERSION}.tar.gz -tar xvf ${NAME}-${VERSION}.tar.gz - -( - cd ${NAME}-${VERSION} - find . -name "*.jar" -delete - rm -Rf src/java_cup/ examples/ -) - -tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION} -rm -Rf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION} - diff --git a/create-tarball.sh b/create-tarball.sh new file mode 100755 index 0000000..81106a8 --- /dev/null +++ b/create-tarball.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ $# -ne 1 ]; then + echo "Usage: ./create-tarball.sh VERSION" + exit 1 +fi + +VERSION=${1} +NAME="jflex" + +wget http://jflex.de/${NAME}-${VERSION}.tar.gz +tar xvf ${NAME}-${VERSION}.tar.gz + +( + cd ${NAME}-${VERSION} + find . -name "*.jar" -delete + rm -Rf src/java_cup/ examples/ +) + +tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION} +rm -Rf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION} + diff --git a/jflex.spec b/jflex.spec index b9890f4..d71d812 100644 --- a/jflex.spec +++ b/jflex.spec @@ -3,16 +3,17 @@ Summary: Fast Scanner Generator Name: jflex Version: 1.4.3 -Release: 15%{?dist} +Release: 16%{?dist} Epoch: 0 License: GPL+ URL: http://jflex.de/ -# ./clean-tarball.sh +# ./create-tarball.sh %%{version} Source0: %{name}-%{version}-clean.tar.gz Source1: http://repo2.maven.org/maven2/de/jflex/jflex/1.4.3/jflex-1.4.3.pom Source2: %{name}.desktop Source3: %{name}.png Source4: %{name}.1 +Source5: create-tarball.sh Patch0: jflex-build_xml.patch Patch1: jflex-junit-incompatibility.patch @@ -133,6 +134,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %changelog +* Fri Aug 02 2013 Michal Srb - 0:1.4.3-16 +- Add create-tarball.sh script to SRPM + * Thu Jun 20 2013 Mikolaj Izdebski - 0:1.4.3-15 - Fix javadoc generation - Update to current packaging guidelines