diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 7 | ||||
-rw-r--r-- | idutils.spec.in | 76 |
3 files changed, 84 insertions, 0 deletions
@@ -31,6 +31,7 @@ idutils-*.tar.gz idutils-*.tar.gz.sig idutils-*.tar.lzma idutils-*.tar.lzma.sig +idutils.spec lib/.cvsignore lib/.gitignore lib/charset.alias diff --git a/Makefile.am b/Makefile.am index 32b7c8c..60927b6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,8 @@ EXTRA_DIST = \ .x-sc_cast_of_argument_to_free \ .x-sc_require_config_h \ cfg.mk \ + idutils.spec \ + idutils.spec.in \ maint.mk \ bootstrap \ bootstrap.conf \ @@ -23,6 +25,11 @@ gen-ChangeLog: mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi +idutils.spec: idutils.spec.in .version + sed 's/@''PACKAGE@/$(PACKAGE)/;s/@''VERSION@/$(VERSION)/' $< > $@-t + mv $@-t $@ +MAINTAINERCLEANFILES = idutils.spec + BUILT_SOURCES = .version .version: echo $(VERSION) > $@-t && mv $@-t $@ diff --git a/idutils.spec.in b/idutils.spec.in new file mode 100644 index 0000000..c0c3a89 --- /dev/null +++ b/idutils.spec.in @@ -0,0 +1,76 @@ +Name: idutils +Version: @VERSION@ +Release: 1%{?dist} +Summary: A simple, fast, high-capacity, language-independent identifier database tool + +Group: Development/Tools +License: GPLv3+ +URL: http://www.gnu.org/software/idutils/ +Source0: http://ftp.gnu.org/gnu/idutils/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: emacs, gettext-devel +Requires(post): info +Requires(preun): info + +%description +`mkid' is a simple, fast, high-capacity, 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 words of human-readable text. Database +queries can be issued from the command-line, or from within emacs, +serving as an augmented tags facility. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%check +make check + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +%find_lang %{name} +rm -f $RPM_BUILD_ROOT%{_infodir}/dir + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README* THANKS TODO +%doc %{_mandir}/man1/*.1.gz +%{_bindir}/* +%{_datadir}/emacs/site-lisp/ +%{_datadir}/id-lang.map +%{_infodir}/idutils.info* + + +%post +/sbin/install-info %{_infodir}/idutils.info.gz %{_infodir}/dir || : + + +%preun +if [ "$1" = 0 ]; then + /sbin/install-info --delete %{_infodir}/idutils.info.gz %{_infodir}/dir || : +fi + + +%changelog +* Sat Oct 18 2008 Jim Meyering <meyering@redhat.com> +- Newer version of gnulib to fix test-program build failure on ppc. + +* Fri Oct 17 2008 Jim Meyering <meyering@redhat.com> +- Include man1/*.1.gz and tweak Source0. + +* Fri Sep 12 2008 Markus Armbruster <armbru@redhat.com> +- Initial build for Fedora |