]> git.pld-linux.org Git - packages/gpgme.git/blob - gpgme.spec
- updated to 0.4.5, removed obsolete acfix patch
[packages/gpgme.git] / gpgme.spec
1 #
2 # Conditional build:
3 %bcond_without  pth     # without pth-based version of library
4 #
5 # TODO: separate pth version? disable by default (if !needed at all)?
6 Summary:        Library for accessing GnuPG
7 Summary(pl):    Biblioteka daj±ca dostêp do funkcji GnuPG
8 Name:           gpgme
9 Version:        0.4.5
10 Release:        1
11 License:        GPL v2+
12 Group:          Libraries
13 Source0:        ftp://ftp.gnupg.org/gcrypt/alpha/gpgme/%{name}-%{version}.tar.gz
14 # Source0-md5:  f04bc4feb818f55107910d17273adf98
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-am18.patch
17 URL:            http://www.gnupg.org/gpgme.html
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake >= 1.7.6
20 BuildRequires:  libgpg-error-devel >= 0.5
21 BuildRequires:  libtool
22 %{?with_pth:BuildRequires:      pth-devel >= 1.2.0}
23 BuildRequires:  texinfo
24 BuildConflicts: gnupg < 1.2.2
25 Requires:       gnupg >= 1.2.2
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 A library for accessing GnuPG.
30
31 %description -l pl
32 Biblioteka daj±ca dostêp do funkcji GnuPG.
33
34 %package devel
35 Summary:        Header files for %{name}
36 Summary(pl):    Pliki nag³ówkowe dla %{name}
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       libgpg-error-devel >= 0.5
40
41 %description devel
42 Header files for %{name}, needed for compiling programs using %{name}.
43
44 %description devel -l pl
45 Pliki nag³ówkowe dla %{name}, potrzebne do kompilacji programów
46 u¿ywaj±cych %{name}.
47
48 %package static
49 Summary:        Static version of %{name} library
50 Summary(pl):    Statyczna wersja biblioteki %{name}
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static version of %{name} library.
56
57 %description static -l pl
58 Statyczna wersja biblioteki %{name}.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --enable-shared \
72         --enable-static \
73         --without-gpgsm \
74         %{!?with_pth:--without-pth}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %post devel
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
92
93 %postun devel
94 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
95
96 %files
97 %defattr(644,root,root,755)
98 %doc README ChangeLog THANKS TODO NEWS AUTHORS
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/gpgme-config
104 %attr(755,root,root) %{_libdir}/lib*.so
105 %{_libdir}/lib*.la
106 %{_includedir}/*
107 %{_aclocaldir}/*.m4
108 %{_infodir}/*.info*
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/lib*.a
This page took 0.129065 seconds and 3 git commands to generate.