/[packages]/cauldron/libgpg-error/current/SPECS/libgpg-error.spec
ViewVC logotype

Contents of /cauldron/libgpg-error/current/SPECS/libgpg-error.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 478 - (show annotations) (download)
Sat Jan 8 10:21:28 2011 UTC (11 years, 4 months ago) by blino
File size: 2722 byte(s)
imported package libgpg-error
1 %define version 1.10
2 %define release %mkrel 1
3
4 %define major 0
5 %define libname %mklibname gpg-error %{major}
6 %define develname %mklibname gpg-error -d
7
8 Summary: Library containing common error values for GnuPG components
9 Name: libgpg-error
10 Version: %{version}
11 Release: %{release}
12 License: LGPLv2+
13 Group: System/Libraries
14 URL: http://www.gnupg.org/
15 Source0: ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
16 Source1: %{SOURCE0}.sig
17 Patch0: libgpg-error-1.9-libdir.patch
18 Buildroot: %{_tmppath}/%{name}-%{version}-root
19
20 %description
21 This is a library that defines common error values for all GnuPG
22 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
23 pinentry, SmartCard Daemon and possibly more in the future.
24
25 %package common
26 Summary: Common files for libgpg-error
27 Group: System/Libraries
28 Conflicts: libgpg-error < 1.7
29
30 %description common
31 This package contains the common files that are used by the
32 libgpg-error library.
33
34 %package -n %{libname}
35 Summary: Library containing common error values for GnuPG components
36 Group: System/Libraries
37 Provides: %{name} = %{version}-%{release}
38 Requires: %{name}-common >= %{version}-%{release}
39
40 %description -n %{libname}
41 This is a library that defines common error values for all GnuPG
42 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
43 pinentry, SmartCard Daemon and possibly more in the future.
44
45 %package -n %{develname}
46 Summary: Development related files of %{name}
47 Group: Development/Other
48 Provides: %{name}-devel = %{version}-%{release}
49 Requires: %{libname} = %{version}-%{release}
50 Obsoletes: %mklibname gpg-error 0 -d
51
52 %description -n %{develname}
53 %{name} is a library that defines common error values for all
54 GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent,
55 libgcrypt, pinentry, SmartCard Daemon and possibly more in the future.
56
57 This package contains headers and other necessary files to develop
58 or compile applications that use %{name}.
59
60 %prep
61 %setup -q
62 %patch0 -p0 -b .libdir
63
64 %build
65 %configure2_5x
66 %make
67
68 %check
69 make check
70
71 %install
72 rm -rf %{buildroot}
73 %makeinstall_std
74
75 %multiarch_binaries %{buildroot}%{_bindir}/gpg-error-config
76
77 %find_lang %{name}
78
79 %if %mdkversion < 200900
80 %post -n %{libname} -p /sbin/ldconfig
81 %endif
82 %if %mdkversion < 200900
83 %postun -n %{libname} -p /sbin/ldconfig
84 %endif
85
86 %clean
87 rm -rf %{buildroot}
88
89 %files common -f %{name}.lang
90 %defattr(-,root,root)
91
92 %files -n %{libname}
93 %defattr(-,root,root)
94 %{_libdir}/lib*.so.%{major}*
95
96 %files -n %{develname}
97 %defattr(-,root,root)
98 %doc AUTHORS ChangeLog NEWS README
99 %{_bindir}/*
100 %{multiarch_bindir}/gpg-error-config
101 %{_datadir}/aclocal/*.m4
102 %{_libdir}/lib*.so
103 %{_libdir}/lib*.la
104 %{_includedir}/*
105 %{_datadir}/common-lisp/source/gpg-error
106
107

  ViewVC Help
Powered by ViewVC 1.1.28