]> git.pld-linux.org Git - packages/bircd.git/blobdiff - bircd.spec
- enable crypt oper pass in config file
[packages/bircd.git] / bircd.spec
index 72bf739f04b84b3a017ad0c70bf8931c3b2225fa..93bee3cd0f7daf33c3a2c2dbc75ac49eee813aa2 100644 (file)
@@ -1,8 +1,12 @@
+#
+# Conditional build
+%bcond_with    smode   # build with /smode command support
+#
 Summary:       Internet Relay Chat Server
 Summary(pl):   Serwer IRC (Internet Relay Chat)
 Name:          bircd
 Version:       2.0.3rc6
-Release:       1
+Release:       3
 License:       GPL
 Group:         Daemons
 Source0:       http://www.onthanet.nl/~borg/download/%{name}%{version}.tgz
@@ -13,7 +17,9 @@ Source3:      %{name}.logrotate
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-config.patch
 Patch2:                %{name}-fix.patch
+Patch3:                %{name}-smode.patch
 URL:           http://www.onthanet.nl/~borg/
+BuildRequires: rpmbuild(macros) >= 1.159
 PreReq:                rc-scripts
 Requires(pre): /usr/bin/getgid
 Requires(pre): /bin/id
@@ -21,8 +27,10 @@ Requires(pre):       /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
-Requires(postun):      /usr/sbin/userdel
 Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Provides:      group(ircd)
+Provides:      user(ircd)
 Obsoletes:     ircd
 Obsoletes:     ircd6
 Obsoletes:     ircd-hybrid
@@ -46,6 +54,7 @@ IPv6.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%{?with_smode:%patch3 -p1}
 
 %build
 ./Config
@@ -119,10 +128,9 @@ if [ "$1" = "0" ]; then
 fi
 
 %postun
-# If package is being erased for the last time.
 if [ "$1" = "0" ]; then
-       /usr/sbin/userdel ircd 2> /dev/null
-       /usr/sbin/groupdel ircd 2> /dev/null
+       %userremove ircd
+       %groupremove ircd
 fi
 
 %files
This page took 0.048216 seconds and 4 git commands to generate.