source: spec/trunk/SPECS/libgpg-error.spec@ 1566

Last change on this file since 1566 was 1261, checked in by Yuri Dario, 8 years ago

spec: libgpg-error: Release version 1.28-2.

File size: 2.3 KB
Line 
1# Note: this .spec is borrowed from https://src.fedoraproject.org/git/rpms/libgpg-error.git
2
3Summary: Library for error values used by GnuPG components
4Name: libgpg-error
5Version: 1.28
6Release: 2%{?dist}
7URL: https://www.gnupg.org/related_software/libgpg-error/
8Group: System Environment/Libraries
9License: LGPLv2+
10
11Vendor: 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
15BuildRequires: gawk, gettext, autoconf, automake, gettext-devel, libtool
16#BuildRequires: texinfo
17%if 0%{?fedora} > 13
18BuildRequires: gettext-autopoint
19%endif
20
21%description
22This is a library that defines common error values for all GnuPG
23components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
24pinentry, SmartCard Daemon and possibly more in the future.
25
26%package devel
27Summary: Development files for the %{name} package
28Group: Development/Libraries
29Requires: %{name}%{?_isa} = %{version}-%{release}
30
31%description devel
32This is a library that defines common error values for all GnuPG
33components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
34pinentry, SmartCard Daemon and possibly more in the future. This package
35contains files necessary to develop applications using libgpg-error.
36
37%debug_package
38
39%prep
40%scm_setup
41libtoolize
42autogen.sh --force
43
44%build
45%configure \
46 --disable-static --disable-rpath --disable-languages \
47 --disable-doc --disable-tests
48make %{?_smp_mflags}
49
50%install
51rm -fr $RPM_BUILD_ROOT
52make install DESTDIR=$RPM_BUILD_ROOT
53rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
54rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
55
56%find_lang %{name}
57
58%check
59make check
60
61%clean
62rm -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.
Note: See TracBrowser for help on using the repository browser.