- Change Copyright to License
- Update URL
- Make BuildRoot use %{_tmppath} macro
- Add basic BuildRequires
- Compile with zlib and openssl
- Install all docs in standard document location
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
Name: %{name}
Version: %{version}
Release: %{release}
Name: %{name}
Version: %{version}
Release: %{release}
-Copyright: GPL
-Group: Networking/Daemons
-URL: http://arthur.ath.cx/~alex/ngircd/
+License: GPLv2+
+Group: System Environment/Daemons
+URL: http://ngircd.barton.de/
Source: %{name}-%{version}.tar.gz
Source: %{name}-%{version}.tar.gz
-Packager: Sean Reifschneider <jafo-rpms@tummy.com>
-BuildRoot: /var/tmp/%{name}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: zlib-devel, openssl-devel
%description
ngIRCd is a free open source daemon for the Internet Relay Chat (IRC),
%description
ngIRCd is a free open source daemon for the Internet Relay Chat (IRC),
+%configure \
+ --with-zlib \
+ --with-openssl
+
+make %{?_smp_mflags}
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
( cd usr/sbin; mv *-ngircd ngircd )
( cd usr/share/man/man5; mv *-ngircd.conf.5 ngircd.conf.5 )
( cd usr/share/man/man8; mv *-ngircd.8 ngircd.8 )
( cd usr/sbin; mv *-ngircd ngircd )
( cd usr/share/man/man5; mv *-ngircd.conf.5 ngircd.conf.5 )
( cd usr/share/man/man8; mv *-ngircd.8 ngircd.8 )
+ rm -fr usr/share/doc/ngircd
%files
%defattr(755,root,root)
%files
%defattr(755,root,root)
-%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc/*
%config(noreplace) /etc
%{_prefix}/sbin
%config(noreplace) /etc
%{_prefix}/sbin
+%{_mandir}/man5/ngircd.conf*
+%{_mandir}/man8/ngircd.8*