aa6b5823da8323aeda9eeefd6a4b13d9d567ff66
[platform/upstream/libgpg-error.git] / packaging / libgpg-error.spec
1 #
2 # spec file for package libgpg-error
3 #
4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 #
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
14
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
16 #
17
18
19 Name:           libgpg-error
20 Version:        1.10
21 Release:        0
22 License:        GPL-2.0+ ; LGPL-2.1+
23 Summary:        Library That Defines Common Error Values for All GnuPG Components
24 Url:            http://www.gnupg.org/
25 Group:          Development/Libraries/C and C++
26 Source:         %{name}-%{version}.tar.bz2
27 Source2:        baselibs.conf
28 Patch0:         %{name}-nld-build.diff
29 BuildRequires:  gettext-tools
30 BuildRequires:  libtool
31 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
32
33 %description
34 This is a library that defines common error values for all GnuPG
35 components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
36 pinentry, SmartCard Daemon, and possibly more in the future.
37
38 %package devel
39 License:        GPL-2.0+ ; LGPL-2.1+ ; MIT
40 Summary:        Development package for libgpg-error
41 Group:          Development/Libraries/C and C++
42 Requires:       glibc-devel
43 Requires:       libgpg-error = %{version}
44
45 %description devel
46 Files needed for software development using libgpg-error.
47
48 %prep
49 %setup -q -n libgpg-error-%{version}
50
51 %build
52 autoreconf -fiv
53 %configure --disable-static --with-pic
54 make %{?_smp_mflags}
55
56 %install
57 %make_install
58 # Drop the lisp stuff, it depends on ASDF and CFFI
59 # which needs to be packaged first
60 rm -r %{buildroot}%{_datadir}/common-lisp
61 %find_lang %{name}
62
63 %post  -p /sbin/ldconfig
64
65 %postun -p /sbin/ldconfig
66
67 %files  -f %{name}.lang
68 %defattr(-,root,root)
69 %{_libdir}/libgpg-error*.so.*
70
71 %files devel
72 %defattr(-,root,root)
73 %doc README NEWS ChangeLog COPYING.LIB COPYING AUTHORS ABOUT-NLS
74 %{_datadir}/aclocal/gpg-error.m4
75 %{_includedir}/*
76 %{_bindir}/*
77 %{_libdir}/libgpg-error*.so
78
79 %changelog