- something, but still nothing master
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 1 Oct 2008 12:07:21 +0000 (12:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    colobus.spec -> 1.10

colobus.spec

index 0cb355a..351644c 100644 (file)
@@ -1,6 +1,8 @@
 # TODO:
 # - finish spec
-# - rc-inetd support
+# - rc-inetd / daemontools support
+# - run as news uid
+%include       /usr/lib/rpm/macros.perl
 Summary:       NNTP server for ezmlm mailing list archives
 Summary(pl.UTF-8):     Serwer NNTP dla archiwów list mailowych ezmlm
 Name:          colobus
@@ -8,12 +10,15 @@ Version:     2.1
 Release:       1
 License:       MIT/X
 Group:         Networking/Daemons
-Source0:       http://trainedmonkey.com/colobus/%{name}-%{version}.tar.gz
+Source0:       http://trainedmonkey.com/projects/colobus/%{name}-%{version}.tar.gz
 # Source0-md5: 36e83195fb4f08dba3162e9169554ee1
-URL:           http://trainedmonkey.com/colobus/
+URL:           http://trainedmonkey.com/projects/colobus/
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sysconfdir             /etc/%{name}
+
 %description
 colobus is an NNTP server written in Perl for ezmlm mailing list
 archives. It is used by news.php.net and nntp.perl.org to provide
@@ -27,12 +32,21 @@ news.
 
 %prep
 %setup -q
+mv config.example config
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
+install colobus-archive colobus $RPM_BUILD_ROOT%{_sbindir}
+cp -a config $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CREDITS INSTALL LICENSE README TODO
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config
+%attr(755,root,root) %{_sbindir}/colobus
+%attr(755,root,root) %{_sbindir}/colobus-archive
This page took 0.177401 seconds and 4 git commands to generate.