summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-17 16:54:12 +0200
committerJim Meyering <meyering@redhat.com>2008-10-18 12:06:30 +0200
commit1d665a817259dcfa620de8e79b388b4bd31a17c7 (patch)
tree3515a54522d5a94ab4fcf1fb52874c46b8f900c5
parenta04f3ac4820c90707a092dea387f36aba6a6ab18 (diff)
downloadidutils-1d665a817259dcfa620de8e79b388b4bd31a17c7.tar.gz
idutils-1d665a817259dcfa620de8e79b388b4bd31a17c7.tar.bz2
idutils-1d665a817259dcfa620de8e79b388b4bd31a17c7.zip
add idutils.spec.in
* idutils.spec.in: New file, mostly from from Markus Armbruster. * Makefile.am (idutils.spec): New rule. (EXTRA_DIST): Add idutils.spec.in and idutils.spec. * .gitignore: Add idutils.spec.
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am7
-rw-r--r--idutils.spec.in76
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 026978d..8486acb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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