Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cfb45cfe0 | ||
|
|
890b4ab559 | ||
|
|
b96936d965 | ||
|
|
9e62491fff | ||
|
|
989a34d3a7 | ||
|
|
97b1b3d022 |
4 changed files with 35 additions and 29 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: ser
|
|
||||||
# $Id$
|
|
||||||
NAME := ser
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
12
ser-0.9.6-axp.patch
Normal file
12
ser-0.9.6-axp.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up ser-0.9.6/Makefile.defs.axp ser-0.9.6/Makefile.defs
|
||||||
|
--- ser-0.9.6/Makefile.defs.axp 2007-12-04 15:57:03.000000000 +0100
|
||||||
|
+++ ser-0.9.6/Makefile.defs 2007-12-04 15:57:05.000000000 +0100
|
||||||
|
@@ -794,7 +794,7 @@ ifeq ($(CC_NAME), gcc)
|
||||||
|
CFLAGS= -O9 -funroll-loops $(PROFILE) -Wall
|
||||||
|
#if gcc 4.0+
|
||||||
|
ifeq ($(CC_SHORTVER), 4.x)
|
||||||
|
- CFLAGS+=-minline-all-stringops
|
||||||
|
+ CFLAGS+=
|
||||||
|
else
|
||||||
|
#if gcc 3.4+
|
||||||
|
ifeq ($(CC_SHORTVER), 3.4)
|
||||||
31
ser.spec
31
ser.spec
|
|
@ -1,15 +1,15 @@
|
||||||
%define special_modules mysql jabber cpl-c postgres pa
|
%define special_modules mysql jabber cpl-c postgres pa
|
||||||
%define serweb_version 0.9.4
|
%define serweb_version 0.9.4
|
||||||
|
|
||||||
%if "%{fedora}" >= "4"
|
%if 0%{?fedora} >= 4
|
||||||
%define serweb true
|
%define serweb true
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: SIP Express Router
|
Summary: SIP Express Router
|
||||||
Name: ser
|
Name: ser
|
||||||
Version: 0.9.6
|
Version: 0.9.6
|
||||||
Release: 14%{?dist}
|
Release: 17%{?dist}
|
||||||
License: GPL
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: http://ftp.iptel.org/pub/ser/latest/src/ser-%{version}_src.tar.gz
|
Source0: http://ftp.iptel.org/pub/ser/latest/src/ser-%{version}_src.tar.gz
|
||||||
Source1: ftp://ftp.berlios.de/pub/ser/latest/contrib/serweb-%{serweb_version}.tar.gz
|
Source1: ftp://ftp.berlios.de/pub/ser/latest/contrib/serweb-%{serweb_version}.tar.gz
|
||||||
|
|
@ -17,13 +17,15 @@ Source2: serweb.conf
|
||||||
Source3: ser.init
|
Source3: ser.init
|
||||||
Patch0: serweb-path.patch
|
Patch0: serweb-path.patch
|
||||||
Patch1: ser-0.9.6-sysdef.patch
|
Patch1: ser-0.9.6-sysdef.patch
|
||||||
|
Patch2: ser-0.9.6-axp.patch
|
||||||
URL: http://www.iptel.org/ser/
|
URL: http://www.iptel.org/ser/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: expat-devel, libxml2-devel, mysql-devel, postgresql-devel, bison
|
BuildRequires: expat-devel, libxml2-devel, mysql-devel, postgresql-devel, bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): chkconfig
|
||||||
Requires(preun): /sbin/chkconfig
|
Requires(preun): chkconfig
|
||||||
Requires(preun): /sbin/service
|
# for /sbin/service
|
||||||
|
Requires(preun): initscripts
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A high-performance, configurable SIP server. It can act as registrar, proxy
|
A high-performance, configurable SIP server. It can act as registrar, proxy
|
||||||
|
|
@ -73,6 +75,7 @@ SERWEB is web toolbox for SIP Express Router (ser). It can be used for:
|
||||||
%setup -q -a 1
|
%setup -q -a 1
|
||||||
%patch0 -p1 -b .path
|
%patch0 -p1 -b .path
|
||||||
%patch1 -p1 -b .sysdef
|
%patch1 -p1 -b .sysdef
|
||||||
|
%patch2 -p1 -b .axp
|
||||||
|
|
||||||
# Enable SQL support for the acc module
|
# Enable SQL support for the acc module
|
||||||
sed -i -e 's/#DEFS+=-DSQL_ACC/DEFS+=-DSQL_ACC/' modules/acc/Makefile
|
sed -i -e 's/#DEFS+=-DSQL_ACC/DEFS+=-DSQL_ACC/' modules/acc/Makefile
|
||||||
|
|
@ -82,10 +85,10 @@ find -name '.cvsignore' -exec rm -f {} \;
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__make} all skip_modules="%{special_modules}" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
|
CFLAGS="%{optflags}" %{__make} all skip_modules="%{special_modules}" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
|
||||||
|
|
||||||
for MOD in %{special_modules}; do
|
for MOD in %{special_modules}; do
|
||||||
%{__make} modules modules="modules/$MOD" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
|
CFLAGS="%{optflags}" %{__make} modules modules="modules/$MOD" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
|
||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
@ -215,6 +218,18 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 16 2009 Oliver Falk <oliver@linux-kernel.at> - 0.9.6-17
|
||||||
|
- Do not use -minline-all-stringops on alpha, alpha gcc doesn't
|
||||||
|
understand that
|
||||||
|
|
||||||
|
* Mon Feb 16 2009 Dennis Gilmore <dennis@ausil.us> - 0.9.6-16
|
||||||
|
- use fedora optimisation flags
|
||||||
|
|
||||||
|
* Mon Jul 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-15
|
||||||
|
- fix conditional comparison
|
||||||
|
- fix license tag
|
||||||
|
- fix unnecessary file deps
|
||||||
|
|
||||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.6-14
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.6-14
|
||||||
- Autorebuild for GCC 4.3
|
- Autorebuild for GCC 4.3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue