]> git.pld-linux.org Git - packages/bircd.git/blobdiff - bircd.spec
- patch4 included in sources, removed
[packages/bircd.git] / bircd.spec
index c426cefefad839def73c30a58a06eb8dca7d8326..68ce14323b457d4d6617a1c433af9104c9fdffcc 100644 (file)
@@ -6,12 +6,14 @@
 Summary:       Internet Relay Chat Server
 Summary(pl):   Serwer IRC (Internet Relay Chat)
 Name:          bircd
-Version:       2.0.3rc11
-Release:       1
+%define         _rc     rc2
+%define         _rel    1
+Version:       2.1.0
+Release:       0.%{_rc}.%{_rel}
 License:       GPL
 Group:         Daemons
-Source0:       ftp://ftp.benet.uu3.net/pub/ircd/%{name}-%{version}.tgz
-# Source0-md5: b6b28fecb070c2695797105abf9929f1
+Source0:       ftp://ftp.benet.uu3.net/pub/irc/%{name}-%{version}%{_rc}.tgz
+# Source0-md5: 03ba33362b131fc0441d9f1724207bf7
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.logrotate
@@ -20,24 +22,23 @@ Patch0:             %{name}-makefile.patch
 Patch1:                %{name}-config.patch
 Patch2:                %{name}-smode.patch
 Patch3:                %{name}-crypt.patch
-Patch4:                %{name}-fix.patch
 URL:           http://www.benet.uu3.net/~borg/
-BuildRequires: rpmbuild(macros) >= 1.202
-PreReq:                rc-scripts
-Requires(pre): /usr/bin/getgid
-Requires(pre): /bin/id
-Requires(pre): /usr/sbin/groupadd
-Requires(pre): /usr/sbin/useradd
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires:      rc-scripts
 Provides:      group(ircd)
 Provides:      user(ircd)
 Obsoletes:     ircd
-Obsoletes:     ircd6
 Obsoletes:     ircd-hybrid
 Obsoletes:     ircd-ptlink
+Obsoletes:     ircd6
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/ircd
@@ -58,7 +59,6 @@ IPv6.
 %patch1 -p1
 %{?with_smode:%patch2 -p1}
 %{?with_crypt:%patch3 -p1}
-%patch4 -p1
 
 %build
 ./Config
@@ -90,21 +90,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add ircd
-if [ -f /var/lock/subsys/ircd ]; then
-       /etc/rc.d/init.d/ircd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/ircd start\" to start IRC daemon."
-fi
+%service ircd restart "IRC daemon"
 touch /var/log/ircd/{opers.log,rejects.log,users.log}
 chmod 640 /var/log/ircd/*
 chown ircd:ircd /var/log/ircd/*
 
 %preun
-# If package is being erased for the last time.
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/ircd ]; then
-               /etc/rc.d/init.d/ircd stop 1>&2
-       fi
+       %service ircd stop
        /sbin/chkconfig --del ircd
 fi
 
This page took 0.043784 seconds and 4 git commands to generate.