File marsnwe.spec of Package marsnwe
Name: marsnwe
Version: 0.99.pl20
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Productivity/Networking/Novell
Summary: Novell Server Emulation
Provides: mars_nwe
Autoreqprov: on
PreReq: %insserv_prereq %fillup_prereq
Source: mars_nwe-0.99.pl20.tar.bz2
Source1: rc.nwe
Patch: mars_nwe.dif
Patch1: mars_nwe-lib64.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This program provides complete emulation of a Novell server. It
supports file-service, bindery-service, print-service, and
routing-service. Your kernel must be configured according to
/usr/share/doc/packages/marsnwe/INSTALL.
Authors:
--------
Martin Stover <mstover@freeway.de>
%debug_package
%prep
%setup -n mars_nwe
%patch -p1
if [ "%_lib" != "lib" ] ; then
%patch1
fi
%build
make
make
%install
make install
make install_ini
chmod 644 doc/* examples/*
chmod 755 examples
install %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/nwe
ln -sf $RPM_BUILD_ROOT/etc/init.d/nwe $RPM_BUILD_ROOT/usr/sbin/rcnwe
%clean
[ "${RPM_BUILD_ROOT}" != "/" -a -d "${RPM_BUILD_ROOT}" ] && rm -rf "${RPM_BUILD_ROOT}"
%post
%{fillup_and_insserv -s nwe START_MARSNWE}
%postun
%{insserv_cleanup}
%files
%defattr(-,root,root)
%doc doc/* examples
%config /etc/nwserv.conf
%config /etc/init.d/nwe
/usr/sbin/rcnwe
/usr/sbin/ncpserv
/usr/sbin/nwbind
/usr/sbin/nwclient
/usr/sbin/nwconn
/usr/sbin/nwserv