Package init
This commit is contained in:
commit
2ad0668bc7
28
libassuan-2.1.0-multilib.patch
Normal file
28
libassuan-2.1.0-multilib.patch
Normal file
@ -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
|
||||||
BIN
libassuan-2.5.1.tar.bz2
Normal file
BIN
libassuan-2.5.1.tar.bz2
Normal file
Binary file not shown.
BIN
libassuan-2.5.1.tar.bz2.sig
Normal file
BIN
libassuan-2.5.1.tar.bz2.sig
Normal file
Binary file not shown.
79
libassuan.spec
Normal file
79
libassuan.spec
Normal file
@ -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 <buildteam@openeuler.org> - 2.5.1-5
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user