summaryrefslogtreecommitdiff
path: root/packaging/libgpg-error.spec
blob: fbede3dc64b819e5a841e260eb91fd4f7b962a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Name:           libgpg-error
Version:        1.46
Release:        0
License:        LGPL-2.1+
Summary:        Library That Defines Common Error Values for All GnuPG Components
Url:            http://www.gnupg.org/
Group:          Security/Crypto Libraries
Source:         %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
Source1001: 	libgpg-error.manifest
BuildRequires:  gettext-tools
BuildRequires:  libtool

%description
This is a library that defines common error values for all GnuPG
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
pinentry, SmartCard Daemon, and possibly more in the future.

%package devel
License:        LGPL-2.1+ and GPL-2.0+ and X11
Summary:        Development package for libgpg-error
Group:          Development/Libraries
Requires:       glibc-devel
Requires:       libgpg-error = %{version}

%description devel
Files needed for software development using libgpg-error.

%prep
%setup -q -n libgpg-error-%{version}
cp %{SOURCE1001} .

%build
export CPPFLAGS+=" -P"
autoreconf -fiv
%configure --disable-static --with-pic --disable-doc
make %{?_smp_mflags}

%install
%make_install
rm -r %{buildroot}%{_datadir}/common-lisp
%find_lang %{name}

%post  -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%lang_package


%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING.LIB
%{_libdir}/libgpg-error*.so.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING.MIT COPYING
%{_datadir}/aclocal/gpg-error.m4
%{_datadir}/aclocal/gpgrt.m4
%{_includedir}/*
%{_bindir}/*
%{_libdir}/libgpg-error*.so
%{_libdir}/pkgconfig/gpg-error.pc

%changelog