]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois.spec
- updated to 4.7.11
[packages/whois.git] / whois.spec
index fb0b1477faa25e5ed955a5619456e0f98bec3506..71d6ede4e5935f728af5f89f71d540db4f9d11c7 100644 (file)
@@ -3,16 +3,16 @@ Summary(pl):  Rozszerzony klient WHOIS
 Summary(ru):   õÌÕÞÛÅÎÎÙÊ ËÌÉÅÎÔ WHOIS
 Summary(uk):   ðÏËÒÁÝÅÎÉÊ Ë̦¤ÎÔ WHOIS
 Name:          whois
-Version:       4.6.5
+Version:       4.7.11
 Release:       1
 License:       GPL
 Group:         Networking/Utilities
-Source0:       http://www.linux.it/~md/software/%{name}_%{version}.tar.gz
-# Source0-md5: 2341ab2c39113d112d13ae34da85b7f6
-Patch0:                %{name}-Makefile.patch
-Patch1:                %{name}-pl.po-update.patch
+#Source0:      http://www.linux.it/~md/software/%{name}_%{version}.tar.gz
+Source0:       http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.gz
+# Source0-md5: aca7ac4c907232f2eea5e7cbb7d6245d
 URL:           http://www.linux.it/~md/software/
 BuildRequires: gettext-devel
+BuildRequires: libidn-devel
 BuildRequires: %{_bindir}/perl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,18 +40,25 @@ wi
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
+
+mv -f po/{no,nb}.po
+%{__perl} -pi -e 's/no\.mo/nb.mo/' po/Makefile
 
 %build
 %{__make} \
        CC="%{__cc}" \
-       OPTS="%{rpmcflags} -DHAVE_GETADDRINFO=1"
+       OPTS="%{rpmcflags}" \
+       HAVE_LIBIDN=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1}
+
+install whois.conf $RPM_BUILD_ROOT%{_sysconfdir}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       BASEDIR=$RPM_BUILD_ROOT \
+       prefix=%{_prefix}
 
 %find_lang %{name}
 
@@ -60,6 +67,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README
+%doc README debian/changelog
 %attr(755,root,root) %{_bindir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whois.conf
 %{_mandir}/man1/*
This page took 0.365173 seconds and 4 git commands to generate.