commit 2ad0668bc7c13d126f5d5294be1cbf24c4d5891b Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:54:52 2019 -0400 Package init diff --git a/libassuan-2.1.0-multilib.patch b/libassuan-2.1.0-multilib.patch new file mode 100644 index 0000000..f6ec6aa --- /dev/null +++ b/libassuan-2.1.0-multilib.patch @@ -0,0 +1,28 @@ +diff -up libassuan-2.1.0/src/libassuan-config.in.multilib libassuan-2.1.0/src/libassuan-config.in +--- libassuan-2.1.0/src/libassuan-config.in.multilib 2013-05-15 12:41:33.376279564 +0200 ++++ libassuan-2.1.0/src/libassuan-config.in 2013-05-15 12:40:11.565515616 +0200 +@@ -18,7 +18,7 @@ lib="@LIBASSUAN_CONFIG_LIB@" + extralibs="@LIBASSUAN_CONFIG_EXTRA_LIBS@ $gpg_error_libs" + cflags="@LIBASSUAN_CONFIG_CFLAGS@ $gpg_error_cflags" + api_version="@LIBASSUAN_CONFIG_API_VERSION@" +-my_host="@LIBASSUAN_CONFIG_HOST@" ++my_host="none" + prefix=@prefix@ + exec_prefix=@exec_prefix@ + includes="" +@@ -121,13 +121,7 @@ if test "$echo_cflags" = "yes"; then + fi + + if test "$echo_libs" = "yes"; then +- if test "@libdir@" != "/usr/lib" ; then +- libdirs="-L@libdir@" +- for i in $lib $extralibs ; do +- if test "$i" = "-L@libdir@" ; then +- libdirs="" +- fi +- done +- fi ++ # libdir is always standard and implicitly searched ++ libdirs="" + echo $libdirs $lib $extralibs + fi diff --git a/libassuan-2.5.1.tar.bz2 b/libassuan-2.5.1.tar.bz2 new file mode 100644 index 0000000..98c51df Binary files /dev/null and b/libassuan-2.5.1.tar.bz2 differ diff --git a/libassuan-2.5.1.tar.bz2.sig b/libassuan-2.5.1.tar.bz2.sig new file mode 100644 index 0000000..a18714f Binary files /dev/null and b/libassuan-2.5.1.tar.bz2.sig differ diff --git a/libassuan.spec b/libassuan.spec new file mode 100644 index 0000000..9a899b0 --- /dev/null +++ b/libassuan.spec @@ -0,0 +1,79 @@ +Name: libassuan +Version: 2.5.1 +Release: 5 +Summary: A small library implementing the so-called Assuan protocal +License: LGPLv2+ and GPLv3+ +URL: https://ww.gnupg.org/ +Source0: https://gnupg.org/ftp/gcrypt/libassuan/libassuan-%{version}.tar.bz2 +Source1: https://gnupg.org/ftp/gcrypt/libassuan/libassuan-%{version}.tar.bz2.sig + +Patch0: libassuan-2.1.0-multilib.patch + +BuildRequires: gcc gawk libgpg-error-devel >= 1.8 + +%description +%{summary},which is used for IPC between most newer GnuPG cmponents,and provides\ +\ both server and client sides functions.\ + +%package devel +Summary: GnuPG IPC library +Provides: libassuan2-devel = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +%description devel +Provide files which are needed to develop applications using %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --includedir=%{_includedir}/libassuan2 + +%make_build + +%install +%make_install + +rm -fv %{buildroot}%{_infodir}/dir +%delete_la + +%check +make check + +%ldconfig_scriptlets + +%post devel +/sbin/install-info %{_infodir}/assuan.info %{_infodir}/dir &>/dev/null || : + +%preun devel +if [ $1 -eq 0 ]; then + /sbin/install-info --delete %{_infodir}/assuan.info %{_infodir}/dir &>/dev/null || : +fi + +%files +%defattr(-,root,root) +%doc AUTHORS +%license COPYING COPYING.LIB +%{_libdir}/libassuan.so.0* + + +%files devel +%defattr(-,root,root) +%{_bindir}/libassuan-config +%{_includedir}/libassuan2/assuan.* +%{_libdir}/lib*.so +%{_datadir}/aclocal/lib*.m4 +%{_infodir}/assuan.info* + +%files help +%defattr(-,root,root) +%doc ChangeLog NEWS README THANKS TODO + +%changelog +* Fri Sep 6 2019 openEuler Buildteam - 2.5.1-5 +- Package init +