RPM spec file for libassuan

Robert Schiele robert.schiele at t-online.de
Fri Sep 5 21:27:01 CEST 2003


Hello.

Just for fun I have now also done a RPM spec file for libassuan.  Again this
is against CVS HEAD.  (BTW: Is this intentional that config.rpath is listed
twice for EXTRA_DIST?)

2003-09-05  Robert Schiele  <rschiele at uni-mannheim.de>

	* libassuan.spec.in: New file.
	* Makefile.am (EXTRA_DIST): Add libassuan.spec.in.
	* AUTHORS (Maintainer): Add Robert Schiele as contributor.

Index: AUTHORS
===================================================================
RCS file: /cvs/gnupg/libassuan/AUTHORS,v
retrieving revision 1.2
diff -u -r1.2 AUTHORS
--- AUTHORS	6 Aug 2003 09:07:39 -0000	1.2
+++ AUTHORS	5 Sep 2003 18:10:01 -0000
@@ -19,6 +19,10 @@
 later split of into a separate library.
 
 
+The RPM specs file libassuan.spec has been contributed by
+Robert Schiele <rschiele at uni-mannheim.de>
+
+
  Copyright 2003 Free Software Foundation, Inc.
 
  This file is free software; as a special exception the author gives
Index: Makefile.am
===================================================================
RCS file: /cvs/gnupg/libassuan/Makefile.am,v
retrieving revision 1.5
diff -u -r1.5 Makefile.am
--- Makefile.am	29 Jul 2003 12:38:35 -0000	1.5
+++ Makefile.am	5 Sep 2003 18:10:01 -0000
@@ -1,4 +1,8 @@
 SUBDIRS = m4  src doc 
 ACLOCAL_AMFLAGS = -I m4
 
-EXTRA_DIST = config.rpath  config.rpath
+EXTRA_DIST = config.rpath  config.rpath libassuan.spec.in
+
+dist-hook:
+	sed -e 's/@pkg_version@/$(VERSION)/g' \
+	    $(top_srcdir)/libassuan.spec.in  > $(distdir)/libassuan.spec
Index: libassuan.spec.in
===================================================================
RCS file: (none)
retrieving revision (none)
diff -u -r(none) libassuan.spec.in
--- libassuan.spec.in	2003-03-14 14:07:09.000000000 +0100
+++ libassuan.spec.in	2003-09-05 20:06:45.000000000 +0200
@@ -0,0 +1,63 @@
+# This is a template.  The dist target uses it to create the real file.
+Summary: libassuan
+Name: libassuan
+Version: %(echo @pkg_version@ | tr - _)
+Release: 1
+URL: ftp://ftp.gnupg.org/gcrypt/alpha/libiassuan/
+Source: ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/%{name}-@pkg_version@.tar.gz
+Group: Development/Libraries
+Copyright: GPL
+BuildRoot: %{_tmppath}/%{name}-%{version}
+BuildRequires: make
+Prereq: /sbin/ldconfig /sbin/install-info
+
+%description
+This is the IPC library used by GnuPG 1.9, gpgme and the old newpg
+package.  It used to be included with the latter packages but we
+decided to make your life not too easy and separated it out to a
+standalone library.
+
+%prep
+%setup -q -n %{name}- at pkg_version@
+
+%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 infodir=$RPM_BUILD_ROOT%{_infodir}
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+make distclean
+
+%post
+/sbin/ldconfig
+/sbin/install-info %{_infodir}/assuan.info.gz %{_infodir}/dir
+
+%preun
+if [ "$1" = 0 ]; then
+ /sbin/install-info --delete %{_infodir}/assuan.info.gz %{_infodir}/dir
+fi
+
+%postun
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%doc COPYING AUTHORS README INSTALL NEWS ChangeLog
+%attr(0755,root,root) %{_bindir}/libassuan-config
+%attr(0644,root,root) %{_libdir}/*assuan.a
+%{_includedir}/assuan.h
+%{_datadir}/aclocal/libassuan.m4
+%{_infodir}/assuan.info*
+
+%changelog
+* Fri Sep  5 2003 Robert Schiele <rschiele at uni-mannheim.de>
+- initial specfile.
+
+# EOF

Robert

-- 
Robert Schiele			Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker	mailto:rschiele at uni-mannheim.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : /pipermail/attachments/20030905/133f4f10/attachment.bin


More information about the Gnupg-devel mailing list