Module: sems
Branch: master
Commit: 5aa987ba5cc4e6f736a9edb45ef634abb10cb60d
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=5aa987ba5cc4e6f736a9edb45ef634abb10cb60d

Author: Pavel Kasparek <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Fri Mar  1 09:50:21 2013 +0100

updating sems rpm specfile to use also release number
updating rpmtar makefile target to use also release number

---

 Makefile          |    6 +++++-
 pkg/rpm/sems.spec |    5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4250553..dad8d7e 100644
--- a/Makefile
+++ b/Makefile
@@ -76,10 +76,14 @@ tar:
                                                       "$(NAME)-$(RELEASE)" ) ; 
\
                            rm -rf tmp
 
+# the rpmtar target creates source tar.gz file, with versions taken from rpm 
spec file
+# the tarball can be used for rpm building 
 .PHONY: rpmtar
 rpmtar: 
        RPM_VERSION=`cat pkg/rpm/sems.spec|grep -e "^Version:"|awk '{print 
$$2}'`; \
+       RPM_RELEASE=`cat pkg/rpm/sems.spec|grep -e "^Release:"|awk '{print 
$$2}'`; \
        echo "RPM_VERSION=$${RPM_VERSION}"; \
+       echo "RPM_RELEASE=$${RPM_RELEASE}"; \
                $(TAR) -C .. \
                 --exclude=$(notdir $(CURDIR))/tmp \
                 --exclude=core/$(notdir $(CURDIR))/tmp \
@@ -101,7 +105,7 @@ rpmtar:
                             mv tmp/_tar1/$(notdir $(CURDIR)) \
                                tmp/_tar2/"$(NAME)-$${RPM_VERSION}" && \
                             (cd tmp/_tar2 && $(TAR) \
-                                            -zcf 
../../"$(NAME)-$${RPM_VERSION}".tar.gz \
+                                            -zcf 
../../"$(NAME)-$${RPM_VERSION}-$${RPM_RELEASE}".tar.gz \
                                                        
"$(NAME)-$${RPM_VERSION}" ) ; \
                             rm -rf tmp;
   
diff --git a/pkg/rpm/sems.spec b/pkg/rpm/sems.spec
index 3102102..54d0003 100644
--- a/pkg/rpm/sems.spec
+++ b/pkg/rpm/sems.spec
@@ -5,7 +5,7 @@ Release:        1
 URL:           http://www.iptel.org/sems
 # svn -r 1095 export http://svn.berlios.de/svnroot/repos/sems/branches/1.0.0 
sems-1.0.0
 # tar cjvf sems-1.0.0.tar.bz2 sems-1.0.0
-Source:                %{name}-%{version}.tar.gz
+Source:                %{name}-%{version}-%{release}.tar.gz
 License:       GPLv2+
 Group:         Applications/Communications
 # Enable OpenSER
@@ -415,6 +415,9 @@ fi
 /usr/lib/sems/plug-in/speex.so
 
 %changelog
+* Fri Mar 1 2013 Pavel Kasparek <[email protected]> 1.6.0-1
+- Updating for v1.6.0, build attempt on CentOS 6
+
 * Tue Dec 09 2008 Alfred E. Heggestad <[email protected]> 1.1.0-1
 - Update for v1.1.0
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to