Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
whois
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 19
[-]
[+]
Changed
whois.spec
@@ -17,7 +17,6 @@ # norootforbuild - Name: whois BuildRequires: libidn-devel License: GPL v2 or later @@ -32,6 +31,7 @@ Patch0: whois-5.0.15-no.patch Patch1: whois-ip_del.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define mkpasswd_suffix %{name} %description This is a new whois (RFC 954) client rewritten from scratch by Marco @@ -59,8 +59,25 @@ mkdir -p $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/man1} make BASEDIR=$RPM_BUILD_ROOT mandir=%{_mandir} prefix=/usr \ install install-mkpasswd install-pos + +mv %{buildroot}%{_bindir}/mkpasswd %{buildroot}%{_bindir}/mkpasswd-%{mkpasswd_suffix} +mv %{buildroot}%{_mandir}/man1/mkpasswd.1 %{buildroot}%{_mandir}/man1/mkpasswd-%{mkpasswd_suffix}.1 + %find_lang %{name} +%post +if [ ! -e %{_bindir}/mkpasswd ] ; then + ln -sf %{_bindir}/mkpasswd-%{mkpasswd_suffix} %{_bindir}/mkpasswd +fi + +%preun +if [ $1 == 0 ] ; then + if [ -L %{_bindir}/mkpasswd ] ; then + rm -f %{_bindir}/mkpasswd + fi +fi + + %clean rm -rf %{buildroot} @@ -68,8 +85,8 @@ %defattr(-,root,root) %doc README debian/changelog debian/copyright %{_bindir}/whois -%{_bindir}/mkpasswd -%{_mandir}/man1/mkpasswd.1* +%{_bindir}/mkpasswd-%{mkpasswd_suffix} +%{_mandir}/man1/mkpasswd-%{mkpasswd_suffix}.1* %{_mandir}/man1/whois.1* %{_mandir}/man5/whois.conf.5*