1Name:		idutils
2Version:	4.6
3Release:	1%{?dist}
4Summary:	A simple, fast, high-capacity, language-independent identifier database tool
5
6Group:		Development/Tools
7License:	GPLv3+
8URL:		http://www.gnu.org/software/idutils/
9Source0:	http://ftp.gnu.org/gnu/idutils/%{name}-%{version}.tar.gz
10BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12BuildRequires:	emacs, gettext-devel
13Requires(post): info
14Requires(preun): info
15
16%description
17`mkid' is a simple, fast, high-capacity, language-independent
18identifier database tool.  Actually, the term `identifier' is too
19limiting--`mkid' stores tokens, be they program identifiers of any
20form, literal numbers, or words of human-readable text.  Database
21queries can be issued from the command-line, or from within emacs,
22serving as an augmented tags facility.
23
24
25%prep
26%setup -q
27
28
29%build
30%configure
31make %{?_smp_mflags}
32
33
34%check
35make check
36
37
38%install
39rm -rf $RPM_BUILD_ROOT
40make install DESTDIR=$RPM_BUILD_ROOT
41%find_lang %{name}
42rm -f $RPM_BUILD_ROOT%{_infodir}/dir
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47
48%files -f %{name}.lang
49%defattr(-,root,root,-)
50%doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README* THANKS TODO
51%doc %{_mandir}/man1/*.1.gz
52%{_bindir}/*
53%{_datadir}/emacs/site-lisp/
54%{_datadir}/id-lang.map
55%{_infodir}/idutils.info*
56
57
58%post
59/sbin/install-info %{_infodir}/idutils.info.gz %{_infodir}/dir || :
60
61
62%preun
63if [ "$1" = 0 ]; then
64  /sbin/install-info --delete %{_infodir}/idutils.info.gz %{_infodir}/dir || :
65fi
66
67
68%changelog
69* Sat Oct 18 2008 Jim Meyering <meyering@redhat.com>
70- Newer version of gnulib to fix test-program build failure on ppc.
71
72* Fri Oct 17 2008 Jim Meyering <meyering@redhat.com>
73- Include man1/*.1.gz and tweak Source0.
74
75* Fri Sep 12 2008 Markus Armbruster <armbru@redhat.com>
76- Initial build for Fedora
77