]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Some more abstractions for freeswtch.spec
authorMichal Bielicki <michal.bielicki@seventhsignal.de>
Tue, 5 Feb 2008 22:46:41 +0000 (22:46 +0000)
committerMichal Bielicki <michal.bielicki@seventhsignal.de>
Tue, 5 Feb 2008 22:46:41 +0000 (22:46 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7532 d0543943-73ff-0310-b7d9-9358b9ac24b2

freeswitch.spec

index 52cfc05c07f6d6a64fe5760446b0d232209c9cf2..983c68ccecacb6bf782eb98bad87b2f628b4b166 100644 (file)
@@ -223,8 +223,8 @@ export ACLOCAL_FLAGS="-I /usr/share/aclocal"
                 --with-libcurl \
 %endif
 %endif
-                --with-openssl
-
+                --with-openssl \
+               %{?configure_options}
 
 #Create the version header file here
 cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/%{version}/g" > src/include/switch_version.h
@@ -264,7 +264,9 @@ touch .noversion
 
 # Add a freeswitch user with group daemon
 %pre
+%ifos linux
 /usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{prefix}/var freeswitch 2> /dev/null || :
+%endif
 
 %post
 %{?run_ldconfig:%run_ldconfig}