1 | # Note: this .spec is borrowed from https://src.fedoraproject.org/git/rpms/libgpg-error.git
|
---|
2 |
|
---|
3 | Summary: Library for error values used by GnuPG components
|
---|
4 | Name: libgpg-error
|
---|
5 | Version: 1.28
|
---|
6 | Release: 2%{?dist}
|
---|
7 | URL: https://www.gnupg.org/related_software/libgpg-error/
|
---|
8 | Group: System Environment/Libraries
|
---|
9 | License: LGPLv2+
|
---|
10 |
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 | %scm_source github https://github.com/bitwiseworks/libgpg-error master-os2
|
---|
13 | #scm_source git file://f:/rd/ports/keepassx/libgpg-error master-os2
|
---|
14 |
|
---|
15 | BuildRequires: gawk, gettext, autoconf, automake, gettext-devel, libtool
|
---|
16 | #BuildRequires: texinfo
|
---|
17 | %if 0%{?fedora} > 13
|
---|
18 | BuildRequires: gettext-autopoint
|
---|
19 | %endif
|
---|
20 |
|
---|
21 | %description
|
---|
22 | This is a library that defines common error values for all GnuPG
|
---|
23 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
|
---|
24 | pinentry, SmartCard Daemon and possibly more in the future.
|
---|
25 |
|
---|
26 | %package devel
|
---|
27 | Summary: Development files for the %{name} package
|
---|
28 | Group: Development/Libraries
|
---|
29 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
---|
30 |
|
---|
31 | %description devel
|
---|
32 | This is a library that defines common error values for all GnuPG
|
---|
33 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
|
---|
34 | pinentry, SmartCard Daemon and possibly more in the future. This package
|
---|
35 | contains files necessary to develop applications using libgpg-error.
|
---|
36 |
|
---|
37 | %debug_package
|
---|
38 |
|
---|
39 | %prep
|
---|
40 | %scm_setup
|
---|
41 | libtoolize
|
---|
42 | autogen.sh --force
|
---|
43 |
|
---|
44 | %build
|
---|
45 | %configure \
|
---|
46 | --disable-static --disable-rpath --disable-languages \
|
---|
47 | --disable-doc --disable-tests
|
---|
48 | make %{?_smp_mflags}
|
---|
49 |
|
---|
50 | %install
|
---|
51 | rm -fr $RPM_BUILD_ROOT
|
---|
52 | make install DESTDIR=$RPM_BUILD_ROOT
|
---|
53 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
---|
54 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
---|
55 |
|
---|
56 | %find_lang %{name}
|
---|
57 |
|
---|
58 | %check
|
---|
59 | make check
|
---|
60 |
|
---|
61 | %clean
|
---|
62 | rm -fr $RPM_BUILD_ROOT
|
---|
63 |
|
---|
64 | %files -f %{name}.lang
|
---|
65 | %defattr(-,root,root)
|
---|
66 | %{!?_licensedir:%global license %%doc}
|
---|
67 | %license COPYING COPYING.LIB
|
---|
68 | %doc AUTHORS README NEWS ChangeLog
|
---|
69 | %{_bindir}/gpg-error.exe
|
---|
70 | %{_libdir}/gpg-err0.dll
|
---|
71 | #%{_datadir}/libgpg-error
|
---|
72 |
|
---|
73 | %files devel
|
---|
74 | %defattr(-,root,root)
|
---|
75 | %{_bindir}/gpg-error-config
|
---|
76 | %{_libdir}/gpg-error*.a
|
---|
77 | %{_includedir}/gpg-error.h
|
---|
78 | %{_includedir}/gpgrt.h
|
---|
79 | %{_datadir}/aclocal/gpg-error.m4
|
---|
80 | #%{_infodir}/gpgrt.info*
|
---|
81 | #%{_mandir}/man1/gpg-error-config.*
|
---|
82 |
|
---|
83 | %changelog
|
---|
84 | * Wed Nov 23 2017 yd <yd@os2power.com> 1.28-2
|
---|
85 | - disable weak symbols for pthread, fixes pthread locking.
|
---|
86 |
|
---|
87 | * Tue Nov 22 2017 yd <yd@os2power.com> 1.28-1
|
---|
88 | - first public rpm build.
|
---|