whois/whois.spec

115 lines
3.3 KiB
RPMSpec
Raw Normal View History

2011-03-07 10:23:59 +00:00
Name: whois
2012-06-27 08:32:05 +00:00
Version: 5.0.17
Release: 2%{?dist}
2011-03-07 10:23:59 +00:00
Summary: Improved WHOIS client
Group: Applications/Internet
License: GPLv2+
URL: http://www.linux.it/~md/software/
2012-03-08 08:27:30 +00:00
Source0: http://ftp.debian.org/debian/pool/main/w/%{name}/%{name}_%{version}.tar.xz
# Update xn-mgbaam7a8 TLD, bug #839893, submitted to upstream
Patch0: whois-5.0.17-.xn-mgbaam7a8-is-handled-by-whois.aeda.net.ae.patch
2011-03-07 10:23:59 +00:00
BuildRequires: gettext, libidn-devel, perl
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
%define genname whois
%define alternative md
%define cfgfile %{name}.conf
%description
Searches for an object in a RFC 3912 database.
This version of the WHOIS client tries to guess the right server to ask for
the specified object. If no guess can be made it will connect to
whois.networksolutions.com for NIC handles or whois.arin.net for IPv4
addresses and network names.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .xn-mgbaam7a8
2011-03-07 10:23:59 +00:00
# Enable NLS
sed -i -e 's:#\(.*pos\):\1:' Makefile
%build
make CONFIG_FILE="%{_sysconfdir}/%{cfgfile}" HAVE_LIBIDN=1 HAVE_ICONV=1 \
CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install
# Omit mkpasswd
make install-whois install-pos BASEDIR=$RPM_BUILD_ROOT
install -p -m644 -D %{cfgfile} $RPM_BUILD_ROOT%{_sysconfdir}/%{cfgfile}
%find_lang %{name}
# Rename to alternative names
mv $RPM_BUILD_ROOT%{_bindir}/%{name}{,.%{alternative}}
touch $RPM_BUILD_ROOT%{_bindir}/%{name}
chmod 755 $RPM_BUILD_ROOT%{_bindir}/%{name}
mv $RPM_BUILD_ROOT%{_mandir}/man1/%{name}{,.%{alternative}}.1
touch $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
%post
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{name} \
%{genname} %{_bindir}/%{name}.%{alternative} 30 \
--slave %{_mandir}/man1/%{name}.1.gz \
%{genname}-man %{_mandir}/man1/%{name}.%{alternative}.1.gz
%postun
if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove \
%{genname} %{_bindir}/%{name}.%{alternative}
fi
%files -f %{name}.lang
%doc COPYING README debian/changelog debian/copyright
%config(noreplace) %{_sysconfdir}/%{cfgfile}
%{_bindir}/%{name}.%{alternative}
%ghost %verify(not md5 size mtime) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.%{alternative}.*
%ghost %verify(not md5 size mtime) %{_mandir}/man1/%{name}.1.gz
%changelog
* Fri Jul 13 2012 Petr Pisar <ppisar@redhat.com> - 5.0.17-2
- .xn--mgbaam7a8 is handled by whois.aeda.net.ae (bug #839893)
2012-06-27 08:32:05 +00:00
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 5.0.17-1
- 5.0.17 bump
2012-04-30 11:55:26 +00:00
* Mon Apr 30 2012 Petr Pisar <ppisar@redhat.com> - 5.0.16-1
- 5.0.16 bump
2012-03-08 08:27:30 +00:00
* Thu Mar 08 2012 Petr Pisar <ppisar@redhat.com> - 5.0.15-1
- 5.0.15 bump
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2012-01-02 13:44:19 +00:00
* Mon Jan 02 2012 Petr Pisar <ppisar@redhat.com> - 5.0.14-1
- 5.0.14 bump
2011-11-28 12:28:51 +00:00
* Mon Nov 28 2011 Petr Pisar <ppisar@redhat.com> - 5.0.13-1
- 5.0.13 bump
2011-10-12 11:51:03 +00:00
* Wed Oct 12 2011 Petr Pisar <ppisar@redhat.com> - 5.0.12-1
- 5.0.12 bump
- Remove defattr from spec code
2011-03-07 10:23:59 +00:00
* Thu Mar 03 2011 Petr Pisar <ppisar@redhat.com> - 5.0.11-1
- 5.0.11 bump
* Mon Dec 06 2010 Petr Pisar <ppisar@redhat.com> - 5.0.10-1
- 5.0.10 bump
* Wed Sep 29 2010 Petr Pisar <ppisar@redhat.com> - 5.0.7-1
- 5.0.7 imported