libgpg-error/libgpg-error.spec

129 lines
3.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:56:22 -04:00
Name: libgpg-error
2022-03-21 14:28:47 +08:00
Version: 1.43
Release: 1
2019-09-30 10:56:22 -04:00
Summary: Library for common error values and messages in GnuPG components.
License: LGPLv2+
2020-01-10 18:43:33 +08:00
URL: https://www.gnupg.org/ftp/gcrypt/libgpg-error
Source0: https://www.gnupg.org/ftp/gcrypt/libgpg-error/%{name}-%{version}.tar.gz
2020-05-12 11:35:36 +08:00
Source1: https://www.gnupg.org/ftp/gcrypt/libgpg-error/%{name}-%{version}.tar.gz.sig
2021-01-30 10:38:52 +08:00
Patch0: libgpg-error-1.29-multilib.patch
2019-09-30 10:56:22 -04:00
2022-03-21 14:28:47 +08:00
BuildRequires: gcc gawk, gettext, autoconf, automake, gettext-devel, libtool, texinfo, gettext-autopoint
2019-09-30 10:56:22 -04:00
%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
2020-05-12 11:35:36 +08:00
Summary: Development files for libgpg-error
Requires: %{name} = %{version}-%{release} pkgconfig
2019-09-30 10:56:22 -04:00
%description devel
Contains header files and development libraries for libgpg-error.
%package_help
2019-09-30 10:56:22 -04:00
%prep
%autosetup -n %{name}-%{version} -p1
2020-05-12 11:35:36 +08:00
autoreconf -f
2019-09-30 10:56:22 -04:00
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g;s|@GPG_ERROR_CONFIG_HOST@|none|g' src/gpg-error-config.in
2020-05-12 11:35:36 +08:00
sed -i -e '/--variable=host/d' src/gpg-error-config-test.sh.in
2019-09-30 10:56:22 -04:00
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
2020-05-12 11:35:36 +08:00
%delete_la
2019-09-30 10:56:22 -04:00
%find_lang %{name}
%check
make check
2020-05-12 11:35:36 +08:00
%ldconfig_scriptlets
2019-09-30 10:56:22 -04:00
%files -f %{name}.lang
%defattr(-,root,root)
2019-09-30 10:56:22 -04:00
%license COPYING COPYING.LIB
%doc AUTHORS README NEWS ChangeLog
%{_bindir}/gpg-error
%{_libdir}/libgpg-error.so.0*
%{_datadir}/libgpg-error
%files devel
%defattr(-,root,root)
2019-09-30 10:56:22 -04:00
%{_bindir}/*
%{_libdir}/libgpg-error.so
%{_libdir}/pkgconfig/gpg-error.pc
2019-09-30 10:56:22 -04:00
%{_includedir}/gpg*.h
%{_datadir}/aclocal/gpg*.m4
%{_infodir}/gpgrt.info*
%exclude %{_bindir}/gpg-error
2019-09-30 10:56:22 -04:00
%exclude %{_infodir}/dir
%files help
%defattr(-,root,root)
%{_mandir}/*
2019-09-30 10:56:22 -04:00
%changelog
2022-03-21 14:28:47 +08:00
* Mon Mar 21 2022 yanglu <yanglu72@h-partners.com> - 1.43-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update libgpg-error to 1.43
* Thu Sep 30 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.41-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix libgpg-error-devel install-info warning
2021-01-30 10:38:52 +08:00
* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 1.41-1
- Type:requirements
2021-01-30 10:38:52 +08:00
- Id:NA
- SUG:NA
- DESC:update libgpg-error to 1.41
2020-07-27 11:58:39 +08:00
* Mon Jul 27 2020 yuboyun <yuboyun@huawei.com> - 1.38-1
- Type:bugfix
- Id:NA
- SUG:NA
- update to 1.38
2020-05-12 11:35:36 +08:00
* Wed Apr 15 2020 songnannan <songnannan2@huawei.com> - 1.37-1
- Type:bugfix
- Id:NA
- SUG:NA
- update to 1.37
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.35-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix gawk error
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.35-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:remove the gpg-error from devel package
* 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
2022-06-14 09:23:35 +00:00
* Mon Sep 30 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.31-3
2019-09-30 10:56:22 -04:00
- Package init