# # spec file for package sn # Name: sn Version: 0.3.8 Release: 3.2 Summary: sn - Small NNTP server for leaf sites License: GPL-2.0+ and LGPL-2.1+ Source: %{name}-%{version}.tar.gz # eisfair create-sn-db Source1: create-sn-db.c # patches by debian Patch: sn-Makefile.diff Patch1: sn-cmdopen.c.diff Patch2: sn-format.c.diff Patch3: sn-readln.c.diff Patch4: sn-Makefile2.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libdb-dev BuildRequires: libpam-dev %description sn is a small news system for small sites serving perhaps a few dozen newsgroups, and with a slow connection to the internet. It is similar to leafnode (ftp.troll.no, by Arnt Gulbrandsen). The target user is a home or SOHO with a single modem connection to the Internet, maybe running IP masq or similar, and serving a few workstations. %prep %setup -q # prep snauth cp contrib/pam_authentication/snauth.c . patch < contrib/pam_authentication/patch %patch -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" make # build create-sn-db gcc -ldb -Wall -Wstrict-prototypes -o create-sn-db %{S:1} %install mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_datadir}/man/man8 mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} make PREFIX=%{buildroot}/usr install %{__cp} create-sn-db %{buildroot}%{_localstatedir}/lib/%{name} %{__mv} %{buildroot}%{_sbindir}/snauth %{buildroot}%{_sbindir}/in.snauth %files %defattr(-,root,root) %{_sbindir}/SNHELLO %{_sbindir}/SNPOST %{_sbindir}/dot-outgoing.ex %{_sbindir}/in.snauth %{_sbindir}/sncancel %{_sbindir}/sncat %{_sbindir}/sndelgroup %{_sbindir}/sndumpdb %{_sbindir}/snexpire %{_sbindir}/snfetch %{_sbindir}/snget %{_sbindir}/sngetd %{_sbindir}/snlockf %{_sbindir}/snmail %{_sbindir}/snnewgroup %{_sbindir}/snntpd %{_sbindir}/snprimedb %{_sbindir}/snscan %{_sbindir}/snsend %{_sbindir}/snsplit %{_sbindir}/snstore %{_datadir}/man %{_localstatedir}/lib/%{name}/create-sn-db %changelog * Tue Mar 08 2016 holgerbruenjes@gmx.net - first version