libgpg-error RPM

Robert Schiele robert.schiele@t-online.de
Wed Sep 3 01:31:01 2003


--rz+pwK2yUstbofK6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 03, 2003 at 12:17:13AM +0200, Robert Schiele wrote:
> If there is interest, I could do a spec file for libgpg-error.  Then ever=
ybody
> could do builds of RPM packages in a simple way as you can do now with gp=
gme.

Ok, here we go.  This is against CVS HEAD.  Comments welcome.

2003-09-03  Robert Schiele <rschiele@uni-mannheim.de>

	* AUTHORS: Add reference to libgpg-error.spec.in.

	* Makefile.am: Add libgpg-error.spec.in to EXTRA_DIST.
	Add dist-hook to build libgpg-error.spec from
	libgpg-error.spec.in.

        * libgpg-error.spec.in: New file.


Index: AUTHORS
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnupg/libgpg-error/AUTHORS,v
retrieving revision 1.1
diff -u -r1.1 AUTHORS
--- AUTHORS	15 May 2003 18:51:42 -0000	1.1
+++ AUTHORS	2 Sep 2003 23:18:36 -0000
@@ -7,6 +7,9 @@
 g10 Code GmbH <code@g10code.com>
  - Design and implementation.
=20
+Robert Schiele <rschiele@uni-mannheim.de>
+ - libgpg-error.spec.in
+
=20
  Copyright 2003 g10 Code GmbH
=20
Index: Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnupg/libgpg-error/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- Makefile.am	15 May 2003 21:56:13 -0000	1.2
+++ Makefile.am	2 Sep 2003 23:18:36 -0000
@@ -21,4 +21,8 @@
=20
 ACLOCAL_AMFLAGS =3D -I m4
=20
-EXTRA_DIST =3D config.rpath
+EXTRA_DIST =3D 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
Index: libgpg-error.spec.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: (none)
retrieving revision (none)
diff -u -r(none) AUTHORS
--- libgpg-error.spec.in	2003-03-14 14:07:09.000000000 +0100
+++ libgpg-error.spec.in	2003-09-03 01:15:05.000000000 +0200
@@ -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}.t=
ar.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=3D"$RPM_OPT_FLAGS"; export CFLAGS
+./configure --prefix=3D/usr
+make
+
+%install
+rm -fr $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+make install prefix=3D$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

Robert

--=20
Robert Schiele			Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker	mailto:rschiele@uni-mannheim.de

--rz+pwK2yUstbofK6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/VSitxcDFxyGNGNcRAu5sAJ44oKUPLGpC/MVB4Vqy/O541aVTGQCg40my
zZ8u3X5j8AKk1e+0NkyHduY=
=6dCi
-----END PGP SIGNATURE-----

--rz+pwK2yUstbofK6--