gpgme-tool: Use membuf functions to build up strings.
[gpgme.git] / gpgme.spec.in
1 # This is a template.  The dist target uses it to create the real file.
2 Summary: GPGME - GnuPG Made Easy
3 Name: gpgme
4 Version: @pkg_version@
5 Release: 1
6 URL: http://www.gnupg.org/gpgme.html
7 Source: ftp://ftp.gnupg.org/gcrypt/alpha/gpgme/%{name}-%{version}.tar.gz
8 Group: Development/Libraries
9 Copyright: GPL
10 BuildRoot: %{_tmppath}/%{name}-%{version}
11 BuildRequires: make
12 Prereq: /sbin/ldconfig /sbin/install-info
13 Requires: gnupg
14
15 %description
16 GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier
17 for applications. It provides a High-Level Crypto API for encryption,
18 decryption, signing, signature verification and key management.
19
20 %prep
21 %setup -q
22
23 %build
24 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
25 ./configure --prefix=/usr
26 make
27
28 %install
29 rm -fr $RPM_BUILD_ROOT
30 mkdir -p $RPM_BUILD_ROOT
31 make install prefix=$RPM_BUILD_ROOT/usr infodir=$RPM_BUILD_ROOT%{_infodir}
32 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
33
34 %clean
35 rm -fr $RPM_BUILD_ROOT
36 make distclean
37
38 %post
39 /sbin/ldconfig
40 /sbin/install-info %{_infodir}/gpgme.info.gz %{_infodir}/dir
41
42 %preun
43 if [ "$1" = 0 ]; then
44  /sbin/install-info --delete %{_infodir}/gpgme.info.gz %{_infodir}/dir
45 fi
46
47 %postun
48 /sbin/ldconfig
49
50 %files
51 %defattr(-,root,root)
52 %doc COPYING COPYING.LESSER AUTHORS README INSTALL NEWS ChangeLog TODO THANKS
53 %attr(0755,root,root) %{_bindir}/gpgme-config
54 %attr(0755,root,root) %{_libdir}/*gpgme.so*
55 %attr(0755,root,root) %{_libdir}/*gpgme.la
56 %attr(0644,root,root) %{_libdir}/*gpgme.a
57 %{_includedir}/gpgme.h
58 %{_datadir}/aclocal/gpgme.m4
59 %{_infodir}/gpgme.info*
60
61 %changelog
62 * Sat Aug 30 2003 Robert Schiele <rschiele@uni-mannheim.de>
63 - %{_infodir}/dir is not packaged, remove to prevent checking failure
64 * Mon Jul 01 2002 Wojciech Polak <polak@lodz.pdi.net>
65 - initial specfile release for GPGME.
66
67 # EOF