]> git.pld-linux.org Git - packages/gpgme.git/blame - gpgme.spec
This commit was manufactured by cvs2git to create branch 'AC-branch'.
[packages/gpgme.git] / gpgme.spec
CommitLineData
b2b97ed5 1#
2# Conditional build:
3%bcond_without gpgsm # with gnupg S/MIME support
4%bcond_without pth # without pth-based version of library
5%bcond_without static_libs # do not build static libraries
6%bcond_with tests # perform tests
7#
8# TODO: separate pth version? disable by default (if !needed at all)?
9Summary: Library for accessing GnuPG
10Summary(pl.UTF-8): Biblioteka dająca dostęp do funkcji GnuPG
11Name: gpgme
12Version: 1.1.5
13Release: 1
14Epoch: 1
15License: LGPL v2.1+
16Group: Libraries
17Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
18# Source0-md5: db7d7dfc10edcc20e8a15a7a8fdc1080
19Patch0: %{name}-info.patch
20Patch1: %{name}-gpg2.patch
21Patch2: %{name}-kill-tests.patch
22URL: http://www.gnupg.org/gpgme.html
23BuildRequires: autoconf >= 2.59
24BuildRequires: automake >= 1:1.9.3
25BuildRequires: libgpg-error-devel >= 1.4
26BuildRequires: libtool
27%{?with_pth:BuildRequires: pth-devel >= 1.2.0}
28BuildRequires: texinfo
29BuildConflicts: gnupg < 1.3.0
30%{!?with_gpgsm:Requires: gnupg >= 1.3.0}
31%{?with_gpgsm:Requires: gnupg2 >= 2.0.3}
32%{?with_gpgsm:Requires: gnupg-smime >= 1.9.8}
33Requires: libgpg-error >= 1.4
34Obsoletes: cryptplug
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38A library for accessing GnuPG.
39
40%description -l pl.UTF-8
41Biblioteka dająca dostęp do funkcji GnuPG.
42
43%package devel
44Summary: Header files for GPGME library
45Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPGME
46Group: Development/Libraries
47Requires: %{name} = %{epoch}:%{version}-%{release}
48Requires: libgpg-error-devel >= 1.4
49
50%description devel
51Header files for GPGME library, needed for compiling programs using
52GPGME.
53
54%description devel -l pl.UTF-8
55Pliki nagłówkowe biblioteki GPGME, potrzebne do kompilacji programów
56używających GPGME.
57
58%package static
59Summary: Static version of GPGME library
60Summary(pl.UTF-8): Statyczna wersja biblioteki GPGME
61Group: Development/Libraries
62Requires: %{name}-devel = %{epoch}:%{version}-%{release}
63
64%description static
65Static version of GPGME library.
66
67%description static -l pl.UTF-8
68Statyczna wersja biblioteki GPGME.
69
70%prep
71%setup -q
72%patch0 -p1
73%{?with_gpgsm:%patch1 -p1}
74%{!?with_tests:%patch2 -p1}
75
76%build
77%{__libtoolize}
78%{__aclocal} -I m4
79%{__autoconf}
80%{__autoheader}
81%{__automake}
82%configure \
83 %{?with_static_libs:--enable-static} \
84 %{?with_gpgsm:--with-gpgsm=%{_bindir}/gpgsm} \
85 %{!?with_gpgsm:--without-gpgsm} \
86 %{!?with_pth:--without-pth} \
87 --with-gpg=/usr/bin/gpg%{?with_gpgsm:2}
88
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93
94%{__make} install \
95 DESTDIR=$RPM_BUILD_ROOT
96
97%clean
98rm -rf $RPM_BUILD_ROOT
99
100%post -p /sbin/ldconfig
101%postun -p /sbin/ldconfig
102
103%post devel
104[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
105
106%postun devel
107[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109%files
110%defattr(644,root,root,755)
111%doc README ChangeLog THANKS TODO NEWS AUTHORS
112%attr(755,root,root) %{_libdir}/lib*.so.*.*
113
114%files devel
115%defattr(644,root,root,755)
116%attr(755,root,root) %{_bindir}/gpgme-config
117%attr(755,root,root) %{_libdir}/lib*.so
118%{_libdir}/lib*.la
119%{_includedir}/*
120%{_aclocaldir}/*.m4
121%{_infodir}/*.info*
122
123%if %{with static_libs}
124%files static
125%defattr(644,root,root,755)
126%{_libdir}/lib*.a
127%endif
This page took 0.051898 seconds and 4 git commands to generate.