SPECS: openser.spec - mysql, pgsql, odbc and radius bconds added
jajcus
jajcus at pld-linux.org
Fri Nov 9 13:12:44 CET 2007
Author: jajcus Date: Fri Nov 9 12:12:44 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- mysql, pgsql, odbc and radius bconds added
---- Files affected:
SPECS:
openser.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/openser.spec
diff -u SPECS/openser.spec:1.4 SPECS/openser.spec:1.5
--- SPECS/openser.spec:1.4 Wed Sep 19 20:39:07 2007
+++ SPECS/openser.spec Fri Nov 9 13:12:39 2007
@@ -1,4 +1,11 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without mysql # mysql support
+%bcond_without pgsql # PostgreSQL support
+%bcond_without odbc # ODBC support
+%bcond_without radius # radius support
+#
Summary: SIP proxy, redirect and registrar server
Summary(pl.UTF-8): Serwer SIP rejestrujący, przekierowujący i robiący proxy
Name: openser
@@ -17,15 +24,15 @@
BuildRequires: bison
BuildRequires: expat-devel
BuildRequires: flex
-BuildRequires: libpqxx-devel
+%{?with_pgsql:BuildRequires: libpqxx-devel}
BuildRequires: libxml2-devel
-BuildRequires: mysql-devel
+%{?with_mysql:BuildRequires: mysql-devel}
BuildRequires: net-snmp-devel
BuildRequires: openssl-devel
BuildRequires: perl-devel
-BuildRequires: radiusclient-ng-devel
+%{?with_radius:BuildRequires: radiusclient-ng-devel}
BuildRequires: rpmbuild(macros) >= 1.268
-BuildRequires: unixODBC-devel
+%{?with_odbc:BuildRequires: unixODBC-devel}
#BuildRequires: xmlrpc-c-devel >= 1.10.0
BuildRequires: zlib-devel
Requires(post,preun): /sbin/chkconfig
@@ -142,8 +149,21 @@
find -type d -name CVS | xargs rm -rf
%build
+exclude_modules="%{exclude_modules}"
+%if %{without mysql}
+exclude_modules="$exclude_modules mysql"
+%endif
+%if %{without pgsql}
+exclude_modules="$exclude_modules postgres"
+%endif
+%if %{without odbc}
+exclude_modules="$exclude_modules unixodbc"
+%endif
+%if %{without radius}
+exclude_modules="$exclude_modules auth_radius avp_radius group_radius uri_radius"
+%endif
%{__make} all \
- exclude_modules="%{exclude_modules}" \
+ exclude_modules="$exclude_modules" \
CC="%{__cc}" \
PREFIX="%{_prefix}" \
CFLAGS="%{rpmcflags} -Wcast-align -fPIC" \
@@ -153,8 +173,21 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/{ser,sysconfig,rc.d/init.d}
+exclude_modules="%{exclude_modules}"
+%if %{without mysql}
+exclude_modules="$exclude_modules mysql"
+%endif
+%if %{without pgsql}
+exclude_modules="$exclude_modules postgres"
+%endif
+%if %{without odbc}
+exclude_modules="$exclude_modules unixodbc"
+%endif
+%if %{without radius}
+exclude_modules="$exclude_modules auth_radius avp_radius group_radius uri_radius"
+%endif
%{__make} install \
- exclude_modules="%{exclude_modules}" \
+ exclude_modules="$exclude_modules" \
PREFIX="%{_prefix}" \
basedir=$RPM_BUILD_ROOT
@@ -196,8 +229,12 @@
%defattr(644,root,root,755)
%doc README* TODO scripts examples
%attr(755,root,root) %{_sbindir}/*
+%if %{with mysql}
%exclude %{_sbindir}/openser_mysql.sh
+%endif
+%if %{with pgsql}
%exclude %{_sbindir}/openser_postgresql.sh
+%endif
%dir %{_sysconfdir}/openser
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openser/openser.cfg
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openser/openserctlrc
@@ -270,16 +307,21 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/openser/modules/jabber.so
+%if %{with mysql}
%files mysql
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/openser_mysql.sh
%attr(755,root,root) %{_libdir}/openser/modules/mysql.so
+%endif
+%if %{with pgsql}
%files postgres
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/openser_postgresql.sh
%attr(755,root,root) %{_libdir}/openser/modules/postgres.so
+%endif
+%if %{with radius}
%files radius
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openser/dictionary.radius
@@ -287,10 +329,13 @@
%attr(755,root,root) %{_libdir}/openser/modules/avp_radius.so
%attr(755,root,root) %{_libdir}/openser/modules/group_radius.so
%attr(755,root,root) %{_libdir}/openser/modules/uri_radius.so
+%endif
+%if %{with odbc}
%files odbc
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/openser/modules/unixodbc.so
+%endif
%files perl
%defattr(644,root,root,755)
@@ -302,6 +347,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2007-11-09 12:12:39 jajcus
+- mysql, pgsql, odbc and radius bconds added
+
Revision 1.4 2007-09-19 18:39:07 kosmo
- updated to 1.2.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/openser.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list