ngircd.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. %define name ngircd
  2. %define version 26
  3. %define release 1
  4. %define prefix %{_prefix}
  5. Summary: A lightweight daemon for the Internet Relay Chat (IRC)
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. License: GPLv2+
  10. Group: System Environment/Daemons
  11. URL: http://ngircd.barton.de/
  12. Source: %{name}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: zlib-devel, openssl-devel
  15. %description
  16. ngIRCd is a free, portable and lightweight Internet Relay Chat server for small
  17. or private networks, developed under the GNU General Public License (GPL).
  18. The server is quite easy to configure, can handle dynamic IP addresses, and
  19. optionally supports IDENT, IPv6 connections, SSL-protected links, and PAM for
  20. user authentication as well as character set conversion for legacy clients. The
  21. server has been written from scratch and is not based on the forefather, the
  22. daemon of IRCNet.
  23. %prep
  24. %setup -q
  25. %build
  26. %configure \
  27. --with-zlib \
  28. --with-openssl
  29. make %{?_smp_mflags}
  30. %install
  31. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
  32. %makeinstall
  33. (
  34. cd "$RPM_BUILD_ROOT"
  35. ( cd usr/sbin; mv *-ngircd ngircd )
  36. ( cd usr/share/man/man5; mv *-ngircd.conf.5 ngircd.conf.5 )
  37. ( cd usr/share/man/man8; mv *-ngircd.8 ngircd.8 )
  38. rm -fr usr/share/doc/ngircd
  39. )
  40. %clean
  41. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
  42. %files
  43. %defattr(755,root,root)
  44. %doc AUTHORS COPYING ChangeLog INSTALL.md NEWS README.md doc/*
  45. %config(noreplace) /etc
  46. %{_prefix}/sbin
  47. %{_mandir}/man5/ngircd.conf*
  48. %{_mandir}/man8/ngircd.8*