whois/whois.spec

265 lines
7.8 KiB
RPMSpec
Raw Normal View History

# Add IDN support
%{bcond_without whois_enables_idn}
2017-04-26 09:57:36 +00:00
# Use libidn2 instead of libidn
%{bcond_without whois_enables_libidn2}
2011-03-07 10:23:59 +00:00
Name: whois
2017-06-13 11:22:25 +00:00
Version: 5.2.16
Release: 1%{?dist}
2011-03-07 10:23:59 +00:00
Summary: Improved WHOIS client
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
2017-04-26 09:57:36 +00:00
# Do not pass non-domains to libidn2,
# <https://github.com/rfc1036/whois/issues/50>,
# <https://github.com/rfc1036/whois/pull/53>
2017-06-13 11:22:25 +00:00
Patch0: whois-5.2.15-Fix-CIDR-notation-and-IPv6-queries-with-libidn2.patch
2015-06-09 07:05:36 +00:00
BuildRequires: coreutils
BuildRequires: gcc
2013-04-18 11:30:53 +00:00
BuildRequires: gettext
%if %{with whois_enables_idn}
%if %{with whois_enables_libidn2}
BuildRequires: libidn2-devel
%else
2013-04-18 11:30:53 +00:00
BuildRequires: libidn-devel
%endif
%endif
2015-06-09 07:05:36 +00:00
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl(autodie)
2013-04-18 11:30:53 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
2011-03-07 10:23:59 +00:00
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
2017-02-27 12:54:47 +00:00
%global genname whois
%global alternative md
%global cfgfile %{name}.conf
2011-03-07 10:23:59 +00:00
%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}
2017-02-27 12:54:47 +00:00
%patch0 -p1
2011-03-07 10:23:59 +00:00
%build
2017-02-27 12:54:47 +00:00
# libidn2 support is broken <https://github.com/rfc1036/whois/issues/50>
make CONFIG_FILE="%{_sysconfdir}/%{cfgfile}" \
%if %{with whois_enables_idn}
%if %{with whois_enables_libidn2}
HAVE_LIBIDN2=1 \
%else
HAVE_LIBIDN=1 \
%endif
%endif
HAVE_ICONV=1 \
2015-12-09 08:02:47 +00:00
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{__global_ldflags}" %{?_smp_mflags}
2011-03-07 10:23:59 +00:00
%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
2015-02-02 13:47:09 +00:00
%license COPYING debian/copyright
%doc README debian/changelog
2011-03-07 10:23:59 +00:00
%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
2013-04-18 11:30:53 +00:00
%{_mandir}/man5/%{cfgfile}.5.gz
2011-03-07 10:23:59 +00:00
%changelog
2017-06-13 11:22:25 +00:00
* Tue Jun 13 2017 Petr Pisar <ppisar@redhat.com> - 5.2.16-1
- 5.2.16 bump
2017-04-26 09:57:36 +00:00
* Wed Apr 26 2017 Petr Pisar <ppisar@redhat.com> - 5.2.15-2
- Use libidn2 instead of libidn
2017-02-27 12:54:47 +00:00
* Mon Feb 27 2017 Petr Pisar <ppisar@redhat.com> - 5.2.15-1
2017-02-27 13:30:59 +00:00
- 5.2.15 bump
2017-02-27 12:54:47 +00:00
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-02 11:54:36 +00:00
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 5.2.14-1
- 5.2.14 bump
2016-10-31 13:23:36 +00:00
* Mon Oct 31 2016 Petr Pisar <ppisar@redhat.com> - 5.2.13-1
- 5.2.13 bump
2016-03-29 13:39:28 +00:00
* Tue Mar 29 2016 Petr Pisar <ppisar@redhat.com> - 5.2.12-1
- 5.2.12 bump
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-12-09 08:02:47 +00:00
* Wed Dec 09 2015 Petr Pisar <ppisar@redhat.com> - 5.2.11-2
- Pass linker flags properly
2015-12-08 14:56:29 +00:00
* Tue Dec 08 2015 Petr Pisar <ppisar@redhat.com> - 5.2.11-1
- 5.2.11 bump
2015-07-30 13:22:05 +00:00
* Thu Jul 30 2015 Petr Pisar <ppisar@redhat.com> - 5.2.10-1
- 5.2.10 bump
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-09 07:05:36 +00:00
* Tue Jun 09 2015 Petr Pisar <ppisar@redhat.com> - 5.2.9-1
- 5.2.9 bump
2015-05-19 14:13:36 +00:00
* Tue May 19 2015 Petr Pisar <ppisar@redhat.com> - 5.2.8-1
- 5.2.8 bump
2015-03-27 06:51:48 +00:00
* Fri Mar 27 2015 Petr Pisar <ppisar@redhat.com> - 5.2.7-1
- 5.2.7 bump
2015-03-24 16:23:47 +00:00
* Tue Mar 24 2015 Petr Pisar <ppisar@redhat.com> - 5.2.6-2
- Fix a regression in hiding disclaimers
2015-03-24 07:22:34 +00:00
* Tue Mar 24 2015 Petr Pisar <ppisar@redhat.com> - 5.2.6-1
- 5.2.6 bump
2015-03-03 14:27:10 +00:00
* Tue Mar 03 2015 Petr Pisar <ppisar@redhat.com> - 5.2.5-1
- 5.2.5 bump
2015-02-02 13:47:09 +00:00
* Mon Feb 02 2015 Petr Pisar <ppisar@redhat.com> - 5.2.4-1
- 5.2.4 bump
2015-01-05 14:05:19 +00:00
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 5.2.3-1
- 5.2.3 bump
2014-11-13 07:33:59 +00:00
* Thu Nov 13 2014 Petr Pisar <ppisar@redhat.com> - 5.2.2-1
- 5.2.2 bump
2014-10-17 11:27:34 +00:00
* Fri Oct 17 2014 Petr Pisar <ppisar@redhat.com> - 5.2.1-1
- 5.2.1 bump
2014-09-19 12:18:41 +00:00
* Fri Sep 19 2014 Petr Pisar <ppisar@redhat.com> - 5.2.0-1
- 5.2.0 bump
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-08-05 11:37:18 +00:00
* Tue Aug 05 2014 Petr Pisar <ppisar@redhat.com> - 5.1.5-1
- 5.1.5 bump
2014-07-07 13:43:46 +00:00
* Mon Jul 07 2014 Petr Pisar <ppisar@redhat.com> - 5.1.4-1
- 5.1.4 bump
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-26 13:21:44 +00:00
* Mon May 26 2014 Petr Pisar <ppisar@redhat.com> - 5.1.3-1
- 5.1.3 bump
2014-05-07 08:22:48 +00:00
* Wed May 07 2014 Petr Pisar <ppisar@redhat.com> - 5.1.2-1
- 5.1.2 bump
2014-01-13 07:38:53 +00:00
* Mon Jan 13 2014 Petr Pisar <ppisar@redhat.com> - 5.1.1-1
- 5.1.1 bump
2014-01-07 13:06:46 +00:00
* Tue Jan 07 2014 Petr Pisar <ppisar@redhat.com> - 5.1.0-1
- 5.1.0 bump
2013-11-28 07:15:57 +00:00
* Thu Nov 28 2013 Petr Pisar <ppisar@redhat.com> - 5.0.26-3
- Fix a typo in the manual (bug #1029065)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-17 12:51:10 +00:00
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.26-1
- 5.0.26 bump
2013-05-13 09:20:22 +00:00
* Mon May 13 2013 Petr Pisar <ppisar@redhat.com> - 5.0.25-1
- 5.0.25 bump
2013-04-18 11:30:53 +00:00
* Thu Apr 18 2013 Petr Pisar <ppisar@redhat.com> - 5.0.24-1
- 5.0.24 bump
2013-04-08 09:33:33 +00:00
* Mon Apr 08 2013 Petr Pisar <ppisar@redhat.com> - 5.0.23-1
- 5.0.23 bump
2013-04-04 07:10:15 +00:00
* Thu Apr 04 2013 Petr Pisar <ppisar@redhat.com> - 5.0.22-1
- 5.0.22 bump
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-10-08 08:48:05 +00:00
* Mon Oct 08 2012 Petr Pisar <ppisar@redhat.com> - 5.0.20-1
- 5.0.20 bump
2012-09-19 08:34:38 +00:00
* Wed Sep 19 2012 Petr Pisar <ppisar@redhat.com> - 5.0.19-1
- 5.0.19 bump
2012-08-02 13:40:56 +00:00
* Thu Aug 02 2012 Petr Pisar <ppisar@redhat.com> - 5.0.18-1
- 5.0.18 bump
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jul 13 2012 Petr Pisar <ppisar@redhat.com> - 5.0.17-2
- .xn--mgbaam7a8 is handled by whois.aeda.net.ae (bug #839893)
- Document how to write IDN in whois.conf (bug #839898)
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