summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmksrc.sh5
-rw-r--r--qelectrotech.spec11
2 files changed, 10 insertions, 6 deletions
diff --git a/mksrc.sh b/mksrc.sh
index 58670d1..427a170 100755
--- a/mksrc.sh
+++ b/mksrc.sh
@@ -5,7 +5,8 @@ if [ "$1" = "" ]; then
exit 1
fi
REV=$1
-VER=${2-0.3}
+VER=${2-0.4}
+RPM=$(php -r "printf('%.2f', $VER);")
svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}-svn${REV}
tar czf qelectrotech-${VER}-svn${REV}.tgz qelectrotech-${VER}-svn${REV}
@@ -14,6 +15,6 @@ rm -rf qelectrotech-${VER}-svn${REV}
vendor="Remi Collet <remi@fedoraproject.org>"
rpmdate=$(LC_ALL="C" date +"%a %b %d %Y")
-sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${VER}-2.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
+sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.1.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
-e "/global svnrel/s/svnrel.*/svnrel $1/" \
-i *spec
diff --git a/qelectrotech.spec b/qelectrotech.spec
index 9a906a5..f2256d2 100644
--- a/qelectrotech.spec
+++ b/qelectrotech.spec
@@ -1,6 +1,6 @@
-%global svnrel 2786
+%global svnrel 2788
%global rdate 20140128
-%global upver 0.3
+%global upver 0.4
Name: qelectrotech
@@ -21,9 +21,9 @@ Summary(ru): Редактор электрических схем
# Upstream version is a float so 0.11 < 0.2 < 0.21 < 0.3
# So use %.2f with upstream acknowledgment
# Remember to check rdate and upver macro on each update
-Version: 0.30
+Version: 0.40
%if %{?svnrel}
-Release: 2.svn%{svnrel}%{?dist}
+Release: 0.1.svn%{svnrel}%{?dist}
%else
Release: 1%{?dist}
%endif
@@ -226,6 +226,9 @@ fi
%changelog
+* Wed Jan 29 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.1.svn2788
+- Update to 0.4 snapshot revision 2788
+
* Tue Jan 28 2014 Remi Collet <remi@fedoraproject.org> - 0.30-2.svn2786
- Update to 0.3 snapshot revision 2786