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