2019-09-30 10:56:22 -04:00
|
|
|
Name: libgpg-error
|
2020-01-10 17:53:03 +08:00
|
|
|
Version: 1.35
|
|
|
|
|
Release: 1
|
2019-09-30 10:56:22 -04:00
|
|
|
Summary: Library for common error values and messages in GnuPG components.
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://www.gnupg.org/ftp/gcrypt/libgpg-error/
|
2020-01-10 17:53:03 +08:00
|
|
|
Source0: https://www.gnupg.org/ftp/gcrypt/libgpg-error/%{name}-%{version}.tar.gz
|
2019-09-30 10:56:22 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gawk, gettext, autoconf, automake, gettext-devel, libtool, texinfo, gettext-autopoint
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The libgpg-error package contains a library that originally defines common error values for all GnuPG components.
|
|
|
|
|
Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SCdaemon.
|
|
|
|
|
Because Libgpg-error is a common dependency all GnuPG components, more features will be added to this library.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary:Development files for libgpg-error
|
|
|
|
|
Requires:%{name}%{?_isa} = %{version}-%{release}
|
2019-12-26 12:07:22 +08:00
|
|
|
Requires(pre): /sbin/install-info
|
|
|
|
|
Requires(post): /sbin/install-info
|
2019-09-30 10:56:22 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Contains header files and development libraries for libgpg-error.
|
|
|
|
|
|
2020-01-10 17:53:03 +08:00
|
|
|
%package_help
|
|
|
|
|
|
2019-09-30 10:56:22 -04:00
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g;s|@GPG_ERROR_CONFIG_HOST@|none|g' src/gpg-error-config.in
|
|
|
|
|
sed -i -e 's|sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/lib /usr/lib %{_libdir}|g' configure
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --disable-rpath --disable-languages
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_post
|
|
|
|
|
%ldconfig_postun
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
|
[ -f %{_infodir}/gpgrt.info.gz ] && /sbin/install-info %{_infodir}/gpgrt.info.gz %{_infodir}/dir
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%preun devel
|
|
|
|
|
if [ $1 = 0 -a -f %{_infodir}/gpgrt.info.gz ]; then
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/gpgrt.info.gz %{_infodir}/dir
|
|
|
|
|
fi
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2020-01-10 17:53:03 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:56:22 -04:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING COPYING.LIB
|
|
|
|
|
%doc AUTHORS README NEWS ChangeLog
|
|
|
|
|
%{_bindir}/gpg-error
|
|
|
|
|
%{_libdir}/libgpg-error.so.0*
|
|
|
|
|
%{_datadir}/libgpg-error
|
|
|
|
|
|
|
|
|
|
%files devel
|
2020-01-10 17:53:03 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:56:22 -04:00
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/libgpg-error.so
|
2020-01-10 17:53:03 +08:00
|
|
|
%{_libdir}/pkgconfig/gpg-error.pc
|
2019-09-30 10:56:22 -04:00
|
|
|
%{_includedir}/gpg*.h
|
|
|
|
|
%{_datadir}/aclocal/gpg*.m4
|
|
|
|
|
%{_infodir}/gpgrt.info*
|
|
|
|
|
%exclude %{_infodir}/dir
|
|
|
|
|
%exclude %{_libdir}/*.la
|
2020-01-10 17:53:03 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/*
|
2019-09-30 10:56:22 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-01-10 17:53:03 +08:00
|
|
|
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.35-1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:updtae to 1.35
|
|
|
|
|
|
2019-12-26 12:07:22 +08:00
|
|
|
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.31-4
|
|
|
|
|
- add Requires
|
|
|
|
|
|
2019-09-30 10:56:22 -04:00
|
|
|
* Thu Sep 14 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.31-3
|
|
|
|
|
- Package init
|