summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS4
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.am6
-rw-r--r--libgpg-error.spec.in56
4 files changed, 71 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 61ef300..6cdcb9a 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -8,6 +8,10 @@ g10 Code GmbH <code@g10code.com>
- Design and implementation.
+The RPM specs file libgpg-error.spec has been contributed by
+Robert Schiele <rschiele@uni-mannheim.de>
+
+
Copyright 2003 g10 Code GmbH
This file is free software; as a special exception the author gives
diff --git a/ChangeLog b/ChangeLog
index f06090d..580f473 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-09-04 Marcus Brinkmann <marcus@g10code.de>
+
+ * libgpg-error.spec.in: New file.
+ * Makefile.am (EXTRA_DIST): Add libgpg-error.spec.in.
+ * AUTHORS (Maintainer): Add Robert Schiele as contributor.
+
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
* src/gpg-error-config.in: Rewritten.
diff --git a/Makefile.am b/Makefile.am
index fc97ad9..5a19b2d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,4 +21,8 @@ SUBDIRS = m4 src tests po
ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = config.rpath
+EXTRA_DIST = config.rpath libgpg-error.spec.in
+
+dist-hook:
+ sed -e 's/@pkg_version@/$(VERSION)/g' \
+ $(top_srcdir)/libgpg-error.spec.in > $(distdir)/libgpg-error.spec
diff --git a/libgpg-error.spec.in b/libgpg-error.spec.in
new file mode 100644
index 0000000..6687f00
--- /dev/null
+++ b/libgpg-error.spec.in
@@ -0,0 +1,56 @@
+# This is a template. The dist target uses it to create the real file.
+Summary: libgpg-error
+Name: libgpg-error
+Version: @pkg_version@
+Release: 1
+URL: ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/
+Source: ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/%{name}-%{version}.tar.gz
+Group: Development/Libraries
+Copyright: LGPL
+BuildRoot: %{_tmppath}/%{name}-%{version}
+BuildRequires: make
+Prereq: /sbin/ldconfig
+
+%description
+This is a library that defines common error values for all GnuPG
+components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
+pinentry, SmartCard Daemon and possibly more in the future.
+
+%prep
+%setup -q
+
+%build
+CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
+./configure --prefix=/usr
+make
+
+%install
+rm -fr $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+make install prefix=$RPM_BUILD_ROOT/usr
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+make distclean
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog
+%attr(0755,root,root) %{_bindir}/gpg-error-config
+%attr(0755,root,root) %{_libdir}/*gpg-error.so*
+%attr(0755,root,root) %{_libdir}/*gpg-error.la
+%attr(0644,root,root) %{_libdir}/*gpg-error.a
+%{_includedir}/gpg-error.h
+%{_datadir}/aclocal/gpg-error.m4
+
+%changelog
+* Wed Sep 3 2003 Robert Schiele <rschiele@uni-mannheim.de>
+- initial specfile.
+
+# EOF