7074c774e294b71c3149a5a9ce369f117dad96b9
[icmp-dn.git] / admin / icmpdn.spec.in
1 Name:           icmpdn
2 Version:        @VERSION@
3 Release:        2
4 License:        LGPL for library, GPL for utilities
5 Group:          System Environment/Libraries
6 Summary:        ICMP host name utilities
7 Source0:        http://www.dolda2000.com/~fredrik/icmp-dn/%name-%version.tar.gz
8 URL:            http://www.dolda2000.com/~fredrik/icmp-dn/
9 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10
11 %description
12 icmpdn is an implementation of the RFC 1788 ICMP domain name
13 facilities for Linux. It includes icmpdnd, a daemon which responds to
14 ICMP domain name requests from other hosts, idnlookup, which requests
15 the domain name of another host, and nss_icmp, which is a nameswitch
16 module for doing reverse hostname lookups via idnlookup.
17
18 %prep
19 %setup
20
21 %build
22 %configure --libdir=/%{_lib}
23 make %{?_smp_mflags}
24
25 %install
26 rm -rf "$RPM_BUILD_ROOT"
27 mkdir $RPM_BUILD_ROOT
28 make DESTDIR=$RPM_BUILD_ROOT install
29 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
30 install -m755 admin/icmpdnd "$RPM_BUILD_ROOT%{_initrddir}"
31
32 %post -p /sbin/ldconfig
33
34 %postun -p /sbin/ldconfig
35
36 %clean
37 rm -rf "$RPM_BUILD_ROOT"
38
39 %files
40 %defattr(-,root,root)
41 /%{_lib}/libnss_icmp.so
42 /%{_lib}/libnss_icmp.la
43 /%{_lib}/libnss_icmp.so.2.0.0
44 /%{_lib}/libnss_icmp.so.2
45 %config %{_sysconfdir}/nss-icmp.conf
46
47 %attr(4755,root,root) %{_bindir}/idnlookup
48
49 %config %{_initrddir}/icmpdnd
50 %{_sbindir}/icmpdnd
51
52 %doc AUTHORS ChangeLog COPYING COPYING.LIB README
53
54 %changelog
55 * Thu Jul 07 2005 Fredrik Tolf <fredrik@dolda2000.com>
56 - Compressed the description.
57 - Added COPYING.LIB, which contains the LGPL.
58
59 * Thu Jun 30 2005 Fredrik Tolf <fredrik@dolda2000.com>
60 - Fixed more things as from fedora-extras-list:
61 - Replaced /lib with /%{_lib}
62 - Run ldconfig in %post and %postun.
63 - Install init script in %{_initrdddir} instead of %_{sysconfdir}.
64
65 * Tue Jun 28 2005 Fredrik Tolf <fredrik@dolda2000.com>
66 - Fixed a lot of things after a discussion on fedora-extras-list,
67   among other things:
68 - Removed Vendor tag
69 - Fixed Source tag
70 - Replaced en-dashes with ASCII hyphens
71 - Added SMP flags to make
72 - Removed INSTALL and NEWS from %doc
73 - Added this ChangeLog section.