File idutils.spec of Package idutils
#
# spec file for package idutils (Version 4.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: idutils
BuildRequires: emacs-nox
Url: http://www.gnu.org/software/idutils/
License: GPL v2 or later
Group: Productivity/Text/Utilities
Provides: id-utils
Obsoletes: id-utils id_utils
AutoReqProv: on
PreReq: %{install_info_prereq}
Summary: Language-Independent Identifier Database Tool
Version: 4.2
Release: 229
Source: ftp://ftp.gnu.org/pub/gnu/idutils/idutils-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Mkid is a simple, fast, high-capacity, and language-independent
identifier database tool. Actually, the term identifier is too
limiting--mkid stores tokens, be they program identifiers of any form,
literal numbers, or ordinary words. Database queries can be issued
from the command line or from within Emacs, serving as an augmented
tags facility.
Authors:
--------
Greg McGary <gkm@gnu.org>
Tom Horsley <Tom.Horsley@mail.hcsc.com>
%prep
%setup
%build
#autoreconf --force --install
#test -f po/Makevars || mv po/Makevars.template po/Makevars
./configure CFLAGS="$RPM_OPT_FLAGS" --prefix=%{_prefix} --infodir=%{_infodir}
export LC_CTYPE=ISO-8859-1
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/var/lib/idutils
mv $RPM_BUILD_ROOT%{_prefix}/share/id-lang.map $RPM_BUILD_ROOT/var/lib/idutils
ln -s ../../var/lib/idutils/id-lang.map $RPM_BUILD_ROOT%{_prefix}/share/id-lang.map
%find_lang %name
%post
if test -f %{_infodir}/id-utils.info.gz; then
mv %{_infodir}/id-utils.info.gz %{_infodir}/id-utils.info.gz.rpmdelete
%install_info_delete --info-dir=%{_infodir} %{_infodir}/id-utils.info.gz
mv %{_infodir}/id-utils.info.gz.rpmdelete %{_infodir}/id-utils.info.gz
fi
%install_info --info-dir=%{_infodir} %{_infodir}/idutils.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/idutils.info.gz
%files -f %name.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING NEWS README THANKS TODO
%config /var/lib/idutils/id-lang.map
%dir /var/lib/idutils
%{_prefix}/share/id-lang.map
%{_prefix}/share/emacs/site-lisp/idutils.el
%{_prefix}/share/emacs/site-lisp/idutils.elc
%{_prefix}/bin/*
%doc %{_infodir}/idutils.info*
%changelog
* Fri Nov 10 2006 schwab@suse.de
- Try harder.
* Thu Oct 19 2006 schwab@suse.de
- Work around rpm bug.
* Thu Aug 10 2006 schwab@suse.de
- Update to idutils 4.2.
* Bug fix release.
- Rename to idutils.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 09 2006 schwab@suse.de
- Update to id-utils 4.0.
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Fri Jun 20 2003 ro@suse.de
- fix build with current gettext
* Tue May 13 2003 schwab@suse.de
- Add %%defattr.
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Apr 07 2003 schwab@suse.de
- Only delete info entries when removing last version.
* Thu Feb 06 2003 schwab@suse.de
- Use %%install_info.
* Mon Nov 18 2002 ro@suse.de
- set AM_GNU_GETTEXT_VERSION to 0.10.40
- dont clobber po/Makefile
* Sat Mar 30 2002 schwab@suse.de
- Update to id-utils 3.2d.
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Nov 08 2001 schwab@suse.de
- Add libjpeg libpng libtiff libungif to neededforbuild.
* Wed Nov 07 2001 schwab@suse.de
- Fix typo in locate_id_file_name.
* Mon Sep 03 2001 schwab@suse.de
- Fix problem with rehashing.
- Fix crashes due to missing files.
- Use fgets instead of gets.
* Wed Jun 06 2001 schwab@suse.de
- Fix for new configure tools.
* Tue Mar 13 2001 ro@suse.de
- added emacs-x11 to neededforbuild
* Thu Mar 08 2001 schwab@suse.de
- Add xshared to neededforbuild.
* Fri Dec 08 2000 schwab@suse.de
- Use regex from libc.
- Fix configure script.
* Fri Nov 17 2000 kukuk@suse.de
- fix neededforbuild: ge_exec -> emacs
* Tue Oct 24 2000 schwab@suse.de
- Renamed from id_utils
* Thu Jan 20 2000 ke@suse.de
- Apply patch from ak@suse.de: fix segfault when given no arguments
(#1736).
- /usr/info -> usr/share/info.
- configure -> %%build.
- add group tag.
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Mar 17 1999 ro@suse.de
- changed diff file
* Mon Jul 27 1998 bs@suse.de
- added export LC_CTYPE=ISO-8859-1 to build section - emacs needs it.
* Fri Jul 17 1998 ke@suse.de
- Apply patch from Greg McGary to recognize C++ files.
- Improve $RPM_BUILD_ROOT.
* Fri Jul 10 1998 bs@suse.de
- added xaw3d to neededforbuild (ge_exec needs it)
* Thu Oct 09 1997 Karl Eichwalder <ke@suse.de>
* .spec: add $RPM_BUILD_ROOT.
* Mon Sep 22 1997 Karl Eichwalder <ke@suse.de>
* .spec (preamble): #neededforbuild ge_exec.
* .spec (%%install): Do Check, create link.
* .spec (%%post, %%preun): Remove both.
* .spec (%%files): Add /usr/share/id-lang.map.
* Wed Sep 10 1997 Karl Eichwalder <ke@suse.de>
* Use spec file.
* Sat Aug 16 1997 Karl Eichwalder <ke@suse.de>
* initial package: version 3.2