Name: inspircd
Version: 2.0.26
Release: alt1.0

Summary: InspIRCd is a modular Internet Relay Chat (IRC) server 
Group: Networking/IRC
License: GPL-2.0

Url: http://www.inspircd.org

Source0: %name-%version.tar.gz

BuildRequires: gcc-c++

%description
It was created from scratch to be stable, modern and lightweight.
It avoids a number of design flaws and performance issues that plague other 
more established projects, such as UnrealIRCd, while providing the same level
of feature parity.

It provides a tunable number of features through the use of an advanced but 
well documented module system. By keeping core functionality to a minimum we 
hope to increase the stability, security and speed of InspIRCd while also
making it customisable to the needs of many different users.

%prep
%setup
sed -i 's/DPIC/DPIC -DHAS_STRLCPY/' make/template/main.mk


%build
./configure \
	--binary-dir=/usr/bin \
	--module-dir=/usr/lib64/%name \
	--prefix=/etc/%name \
	--config-dir=/etc/%name \
	--log-dir=/var/log
%make_build

%install
%makeinstall_std

%files

%doc README.md
%_bindir/%name
%_libdir/%name
%_sysconfdir/%name

%changelog
* Tue Jun 26 2018 Pavel Akopov <pak@altlinux.org> 2.0.26-alt1.0
- initial build

