Репозитории ALT
Группа :: Сети/Прочее
Пакет: whoson
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
Name: whoson
Version: 2.05
Release: alt1
Packager: Victor Forsyuk <force at altlinux.org>
Summary: Protocol for Keeping Track of Dynamically Allocated IP
License: Public Domain
Group: Networking/Other
URL: http://whoson.sf.net/
Source0: http://download.sf.net/whoson/whoson-%version.tar.gz
Source1: whosond.init
Source2: whoson.conf
# Automatically added by buildreq on Thu Jan 08 2009
BuildRequires: chrpath gcc-c++ groff-base
%description
Simple method for Internet server programs to know if a particular (dynamically
allocated) IP address is currently allocated to a known (trusted) user and,
optionally, the identity of the said user.
%package server
Summary: Whoson server binary and scripts
Group: Networking/Other
Requires: %name = %version-%release
%description server
Whoson server binary and scripts
%package -n lib%{name}
Summary: Whoson library
Group: Development/C
Requires: %name = %version-%release
%description -n lib%{name}
This is whoson library package.
%package -n lib%{name}-devel
Summary: Header files and development documentation for whoson
Group: Development/C
Requires: lib%{name} = %version-%release
%description -n lib%{name}-devel
This is whoson development package. It includes files and development
documentation for whoson.
%package -n lib%{name}-devel-static
Summary: Static libraries for whoson
Group: Development/C
Requires: lib%{name}-devel = %version-%release
%description -n lib%{name}-devel-static
You should install the lib%{name}-devel-static package if you would like to
develop statically linked whoson applications.
%prep
%setup
%build
%configure %{subst_enable static}
# Parallel make broken in whoson 2.03 :(
%make
# Build with disabled static will insert rpath in whoson binary. Instead of
# patching build system we simply delete rpath from built executable.
chrpath -d whoson
%install
install -d %buildroot{%_initrddir,/var/lib/whosond}
%make_install DESTDIR=%buildroot install
install -m0755 %SOURCE1 %buildroot%_initrddir/whosond
install -m0644 %SOURCE2 %buildroot%_sysconfdir/
for i in wso_login wso_logout wso_query wso_version; do
rm -f %buildroot%_man3dir/$i.3
echo ".so whoson.3" > %buildroot%_man3dir/$i.3
done
%post server
%post_service whosond
%preun server
%preun_service whosond
%files
%_sbindir/whoson
%config(noreplace) %verify(not size mtime md5) %_sysconfdir/whoson.conf
%_man5dir/*
%_man8dir/whoson.*
%files server
%_sbindir/whosond
%_initrddir/whosond
%dir /var/lib/whosond
%_man8dir/whosond.*
%files -n lib%{name}
%_libdir/lib*.so.*
%files -n lib%{name}-devel
%_libdir/lib*.so
%_includedir/*
%_man3dir/*
%if_enabled static
%files -n lib%{name}-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Name: whoson
Version: 2.05
Release: alt1
Packager: Victor Forsyuk <force at altlinux.org>
Summary: Protocol for Keeping Track of Dynamically Allocated IP
License: Public Domain
Group: Networking/Other
URL: http://whoson.sf.net/
Source0: http://download.sf.net/whoson/whoson-%version.tar.gz
Source1: whosond.init
Source2: whoson.conf
# Automatically added by buildreq on Thu Jan 08 2009
BuildRequires: chrpath gcc-c++ groff-base
%description
Simple method for Internet server programs to know if a particular (dynamically
allocated) IP address is currently allocated to a known (trusted) user and,
optionally, the identity of the said user.
%package server
Summary: Whoson server binary and scripts
Group: Networking/Other
Requires: %name = %version-%release
%description server
Whoson server binary and scripts
%package -n lib%{name}
Summary: Whoson library
Group: Development/C
Requires: %name = %version-%release
%description -n lib%{name}
This is whoson library package.
%package -n lib%{name}-devel
Summary: Header files and development documentation for whoson
Group: Development/C
Requires: lib%{name} = %version-%release
%description -n lib%{name}-devel
This is whoson development package. It includes files and development
documentation for whoson.
%package -n lib%{name}-devel-static
Summary: Static libraries for whoson
Group: Development/C
Requires: lib%{name}-devel = %version-%release
%description -n lib%{name}-devel-static
You should install the lib%{name}-devel-static package if you would like to
develop statically linked whoson applications.
%prep
%setup
%build
%configure %{subst_enable static}
# Parallel make broken in whoson 2.03 :(
%make
# Build with disabled static will insert rpath in whoson binary. Instead of
# patching build system we simply delete rpath from built executable.
chrpath -d whoson
%install
install -d %buildroot{%_initrddir,/var/lib/whosond}
%make_install DESTDIR=%buildroot install
install -m0755 %SOURCE1 %buildroot%_initrddir/whosond
install -m0644 %SOURCE2 %buildroot%_sysconfdir/
for i in wso_login wso_logout wso_query wso_version; do
rm -f %buildroot%_man3dir/$i.3
echo ".so whoson.3" > %buildroot%_man3dir/$i.3
done
%post server
%post_service whosond
%preun server
%preun_service whosond
%files
%_sbindir/whoson
%config(noreplace) %verify(not size mtime md5) %_sysconfdir/whoson.conf
%_man5dir/*
%_man8dir/whoson.*
%files server
%_sbindir/whosond
%_initrddir/whosond
%dir /var/lib/whosond
%_man8dir/whosond.*
%files -n lib%{name}
%_libdir/lib*.so.*
%files -n lib%{name}-devel
%_libdir/lib*.so
%_includedir/*
%_man3dir/*
%if_enabled static
%files -n lib%{name}-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь