2002-10-01 11:58:29 +02:00
|
|
|
%define name ngircd
|
2012-03-19 19:19:58 +01:00
|
|
|
%define version 19.1
|
2002-10-01 11:58:29 +02:00
|
|
|
%define release 1
|
|
|
|
%define prefix %{_prefix}
|
|
|
|
|
2003-11-29 21:29:09 +01:00
|
|
|
Summary: A lightweight daemon for the Internet Relay Chat (IRC)
|
2002-10-01 11:58:29 +02:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
2009-01-13 08:31:18 +01:00
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: http://ngircd.barton.de/
|
2002-10-01 11:58:29 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2009-01-13 08:31:18 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: zlib-devel, openssl-devel
|
2002-10-01 11:58:29 +02:00
|
|
|
|
|
|
|
%description
|
2012-02-12 17:57:33 +01:00
|
|
|
This package provides ngIRCd, a lightweight Internet Relay Chat
|
|
|
|
server for small or private networks. It is simple to configure, can
|
|
|
|
cope with dynamic IP addresses, and supports IPv6 as well as SSL. It
|
|
|
|
is written from scratch, not based on the original IRCd and quite
|
|
|
|
portable.
|
2002-10-01 11:58:29 +02:00
|
|
|
|
2003-11-29 21:29:09 +01:00
|
|
|
Advantages:
|
2012-02-12 17:57:33 +01:00
|
|
|
- well arranged (lean) configuration file
|
|
|
|
- simple to build/install, configure and maintain
|
|
|
|
- supports IPv6 and SSL
|
|
|
|
- no problems with servers that have dynamic IP addresses
|
|
|
|
- freely available, modern, portable and tidy C-source
|
|
|
|
- ngIRCd is being actively developed since 11 years.
|
2002-10-01 11:58:29 +02:00
|
|
|
|
|
|
|
%prep
|
2009-01-13 08:31:18 +01:00
|
|
|
%setup -q
|
2002-10-01 11:58:29 +02:00
|
|
|
%build
|
2009-01-13 08:31:18 +01:00
|
|
|
%configure \
|
|
|
|
--with-zlib \
|
|
|
|
--with-openssl
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2002-10-01 11:58:29 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%makeinstall
|
|
|
|
(
|
|
|
|
cd "$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 )
|
2009-01-13 08:31:18 +01:00
|
|
|
rm -fr usr/share/doc/ngircd
|
2002-10-01 11:58:29 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(755,root,root)
|
2009-01-13 08:31:18 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc/*
|
2002-10-01 11:58:29 +02:00
|
|
|
%config(noreplace) /etc
|
|
|
|
%{_prefix}/sbin
|
2009-01-13 08:31:18 +01:00
|
|
|
%{_mandir}/man5/ngircd.conf*
|
|
|
|
%{_mandir}/man8/ngircd.8*
|