summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-01-30 19:24:05 +0100
committerRemi Collet <fedora@famillecollet.com>2015-01-30 19:24:05 +0100
commit8898df10da4159bf7f0b38b9e204ef7b55774db1 (patch)
tree48b132d5c8a29e26d382f3bf8bbe1904f84f8f9a
parent7544364395a62b43fafd0d804b9f60f7b93e002c (diff)
qelectrotech-debuginfo-0.40-0.5.svn3658
-rwxr-xr-xmksrc.sh6
-rw-r--r--qelectrotech.spec17
2 files changed, 18 insertions, 5 deletions
diff --git a/mksrc.sh b/mksrc.sh
index 1f6fced..649375e 100755
--- a/mksrc.sh
+++ b/mksrc.sh
@@ -10,15 +10,17 @@ RPM=$(php -r "printf('%.2f', $VER);")
svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}-svn${REV}
-sed -e "/displayedVersion/s/${VER}-dev/${VER}-dev (Revision ${REV})/" \
+sed -e "/displayedVersion/s/\"[^\"]*\"/\"${VER}-dev (Revision ${REV})\"/" \
-i qelectrotech-${VER}-svn${REV}/sources/qet.h
+grep 'displayedVersion' qelectrotech-${VER}-svn${REV}/sources/qet.h
+
tar czf qelectrotech-${VER}-svn${REV}.tgz qelectrotech-${VER}-svn${REV}
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 - ${RPM}-0.1.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
+sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.5.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 b95f101..ea867ac 100644
--- a/qelectrotech.spec
+++ b/qelectrotech.spec
@@ -1,6 +1,14 @@
-#global svnrel 3371
+# spec file for qelectrotech
+#
+# Copyright (c) 2009-2015 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/3.0/
+#
+# Please, preserve the changelog entries
+#
+%global svnrel 3658
%global rdate 20141227
-%global upver 0.4rc2
+%global upver 0.4
Name: qelectrotech
@@ -23,7 +31,7 @@ Summary(ru): Редактор электрических схем
# Remember to check rdate and upver macro on each update
Version: 0.40
%if 0%{?svnrel}
-Release: 0.1.svn%{svnrel}%{?dist}
+Release: 0.5.svn%{svnrel}%{?dist}
%else
Release: 0.4.rc2%{?dist}
%endif
@@ -229,6 +237,9 @@ fi
%changelog
+* Fri Jan 30 2015 Remi Collet <remi@fedoraproject.org> - 0.40-0.5.svn3658
+- Update to 0.4 snapshot revision 3658
+
* Sat Dec 27 2014 Remi Collet <remi@fedoraproject.org> - 0.40-0.4.rc2
- Update to 0.4rc1