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