Skip to content
Snippets Groups Projects
Commit f38795ee authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#1317] Updated spec files

parent 5b0e8eb5
No related branches found
No related tags found
No related merge requests found
...@@ -9,24 +9,42 @@ ...@@ -9,24 +9,42 @@
# Last Modified: 2009-05-27 17:23:32 -0400 # Last Modified: 2009-05-27 17:23:32 -0400
##################################################### #####################################################
%define name sflphone-client-gnome Name: sflphone-client-gnome
%define version VERSION
%define release 1suse
Name: %name
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
Group: System Environment/Daemons Group: Productivity/Networking/System
Summary: A VoIP daemon with SIP protocol and IAX protocol Summary: GNOME client for SFLphone
Version: %version Version: VERSION
Release: %release Release: opensuse
URL: http://www.sflphone.org/ URL: http://www.sflphone.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-client-gnome.tar.gz Source0: sflphone-client-gnome.tar.gz
Requires: commoncpp2 libccrtp1 libsamplerate pulseaudio libgsm1 libspeex dbus-1-glib expat gtk2 glibc glib2 dbus-1 libsexy libnotify perl BuildRequires: liblog4c-devel
BuildRequires: gtk2-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: libnotify-devel
BuildRequires: libsexy-devel
BuildRequires: evolution-data-server-devel
Requires: sflphone-common = %{version}
Requires: dbus-1-glib
Requires: gtk2
Requires: glib2
Requires: dbus-1-glib
Requires: libnotify
Requires: librsvg
Requires: liblog4c3
Requires: libsexy
Conflicts: sflphone
Prefix: %{_prefix} Prefix: %{_prefix}
%description %description
SFLphoned is a VoIP client with SIP protocol and IAX protocol. Provide a GNOME client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
SFLphone is released under the GNU General Public License.
SFLphone is being developed by the global community, and maintained by
Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
Authors: Authors:
-------- --------
......
...@@ -9,24 +9,45 @@ ...@@ -9,24 +9,45 @@
# Last Modified: 2009-05-27 17:23:32 -0400 # Last Modified: 2009-05-27 17:23:32 -0400
##################################################### #####################################################
%define name sflphone-common Name: sflphone-common
%define version VERSION
%define release 1suse
Name: %name
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
Group: System Environment/Daemons Group: System Environment/Daemons
Summary: A VoIP daemon with SIP protocol and IAX protocol Summary: SIP and IAX2 compatible softphone - Core
Version: %version Version: VERSION
Release: %release Release: opensuse
URL: http://www.sflphone.org/ URL: http://www.sflphone.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-common.tar.gz Source0: sflphone-common.tar.gz
Requires: commoncpp2 libccrtp1 libsamplerate pulseaudio libgsm1 libspeex dbus-1-glib expat gtk2 glibc glib2 dbus-1 libsexy libnotify perl BuildRequires: libpulse-devel
BuildRequires: commoncpp2-devel
BuildRequires: libccrtp-devel
BuildRequires: libsamplerate-devel
BuildRequires: dbus-1-devel
BuildRequires: libexpat-devel
BuildRequires: libgsm-devel
BuildRequires: speex-devel
BuildRequires: libcppunit-devel
BuildRequires: alsa-devel
Requires: libsamplerate
Requires: libexpat1
Requires: commoncpp2
Requires: libgsm1
Requires: libspeex
Requires: dbus-1
Requires: libasound2
Requires: libpulse0
Requires: libccrtp1
Conflicts: sflphone
Prefix: %{_prefix} Prefix: %{_prefix}
%description %description
SFLphoned is a VoIP daemon with SIP protocol and IAX protocol. SFLphone is meant to be a robust enterprise-class desktop phone.
SFLphone is released under the GNU General Public License.
SFLphone is being developed by the global community, and maintained by
Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
Authors: Authors:
-------- --------
......
...@@ -7,16 +7,12 @@ ...@@ -7,16 +7,12 @@
# Author: Julien Bonjean (julien@bonjean.info) # Author: Julien Bonjean (julien@bonjean.info)
# #
# Creation Date: 2009-04-20 # Creation Date: 2009-04-20
# Last Modified: 2009-05-27 17:28:36 -0400 # Last Modified: 2009-05-28 10:13:41 -0400
##################################################### #####################################################
# #
# Not working with git 1.5.4.3 # Not working with git 1.5.4.3
# #
#
#
#
TAG=`date +%Y-%m-%d` TAG=`date +%Y-%m-%d`
...@@ -226,28 +222,28 @@ if [ ${DO_PREPARE} ]; then ...@@ -226,28 +222,28 @@ if [ ${DO_PREPARE} ]; then
exit -1 exit -1
fi fi
FULL_VER=`cd ${REPOSITORY_DIR} && git describe --tag HEAD | cut -d "/" -f2 | cut -d "-" -f1-2 | sed 's/\.rc.*//' | sed 's/\.beta.*//'` VERSION=`cd ${REPOSITORY_DIR} && git describe --tag HEAD | cut -d "/" -f2 | cut -d "-" -f1`
# if push is activated # if push is activated
if [ ${DO_PUSH} ];then if [ ${DO_PUSH} ];then
# first changelog generation for commit # first changelog generation for commit
echo "Update changelogs (1/2)" echo "Update debian changelogs (1/2)"
${SCRIPTS_DIR}/sfl-git-dch.sh ${RELEASE_MODE} ${SCRIPTS_DIR}/sfl-git-dch.sh ${RELEASE_MODE}
if [ "$?" -ne "0" ]; then if [ "$?" -ne "0" ]; then
echo "!! Cannot update changelogs" echo "!! Cannot update debian changelogs"
exit -1 exit -1
fi fi
echo " Doing commit" echo " Doing commit"
VERSION_COMMIT=${FULL_VER}${VERSION_APPEND} VERSION_COMMIT=${VERSION}${VERSION_APPEND}
if [ ! ${RELEASE_MODE} ]; then if [ ! ${RELEASE_MODE} ]; then
VERSION_COMMIT=${FULL_VER}" Snapshot ${TAG}" VERSION_COMMIT="snapshot"
fi fi
cd ${REPOSITORY_DIR} cd ${REPOSITORY_DIR}
git commit -m "[#1262] Updated changelogs for version ${VERSION_COMMIT}" . >/dev/null git commit -m "[#1262] Updated debian changelogs (${VERSION_COMMIT})" . >/dev/null
echo " Pushing commit" echo " Pushing commit"
git push origin master >/dev/null git push origin master >/dev/null
...@@ -262,15 +258,19 @@ if [ ${DO_PREPARE} ]; then ...@@ -262,15 +258,19 @@ if [ ${DO_PREPARE} ]; then
fi fi
# generate the changelog, according to the distribution and the git commit messages # generate the changelog, according to the distribution and the git commit messages
echo "Update changelogs (2/2)" echo "Update debian changelogs (2/2)"
cd ${REPOSITORY_DIR} cd ${REPOSITORY_DIR}
${SCRIPTS_DIR}/sfl-git-dch.sh ${RELEASE_MODE} ${SCRIPTS_DIR}/sfl-git-dch.sh ${RELEASE_MODE}
if [ "$?" -ne "0" ]; then if [ "$?" -ne "0" ]; then
echo "!! Cannot update changelogs" echo "!! Cannot update debian changelogs"
exit -1 exit -1
fi fi
echo "Write version numbers for following processes"
echo "${VERSION}${VERSION_APPEND}" > ${REPOSITORY_DIR}/VERSION.opensuse
echo "${VERSION}-0ubuntu1${VERSION_APPEND}" > ${REPOSITORY_DIR}/VERSION.ubuntu
echo "Archiving repository" echo "Archiving repository"
tar czf ${REPOSITORY_ARCHIVE} --exclude .git -C `dirname ${REPOSITORY_DIR}` sflphone tar czf ${REPOSITORY_ARCHIVE} --exclude .git -C `dirname ${REPOSITORY_DIR}` sflphone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment