commit 25b7429344d3e8f4150824dcd5c03674545442bf Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:51 2019 -0400 Package init diff --git a/libksba-1.3.0-multilib.patch b/libksba-1.3.0-multilib.patch new file mode 100644 index 0000000..89f4096 --- /dev/null +++ b/libksba-1.3.0-multilib.patch @@ -0,0 +1,23 @@ +diff -up libksba-1.3.0/src/ksba-config.in.multilib libksba-1.3.0/src/ksba-config.in +--- libksba-1.3.0/src/ksba-config.in.multilib 2011-02-25 09:33:11.000000000 +0100 ++++ libksba-1.3.0/src/ksba-config.in 2012-12-03 16:17:52.050832689 +0100 +@@ -15,7 +15,7 @@ cflags="@KSBA_CONFIG_CFLAGS@ @GPG_ERROR_ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + api_version="@KSBA_CONFIG_API_VERSION@" +-my_host="@KSBA_CONFIG_HOST@" ++my_host="none" + + includes="" + libdirs="" +@@ -125,10 +125,6 @@ if test "$echo_cflags" = "yes"; then + fi + + if test "$echo_libs" = "yes"; then +- libdirs="" +- if test "@libdir@" != "/usr/lib" ; then +- libdirs="-L@libdir@" +- fi + tmp="" + for i in $libdirs $libs; do + if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then diff --git a/libksba-1.3.5.tar.bz2 b/libksba-1.3.5.tar.bz2 new file mode 100644 index 0000000..7cabcf0 Binary files /dev/null and b/libksba-1.3.5.tar.bz2 differ diff --git a/libksba-1.3.5.tar.bz2.sig b/libksba-1.3.5.tar.bz2.sig new file mode 100644 index 0000000..48c29d5 Binary files /dev/null and b/libksba-1.3.5.tar.bz2.sig differ diff --git a/libksba.spec b/libksba.spec new file mode 100644 index 0000000..62a6492 --- /dev/null +++ b/libksba.spec @@ -0,0 +1,87 @@ +Name: libksba +Version: 1.3.5 +Release: 10 +Summary: A library for X.509 and CMS +License: (LGPL-3.0+ or GPL-2.0+) and GPL-3.0+ and MIT +URL: https://www.gnupg.org/software/libksba/index.html +Source0: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2 +Source1: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2.sig + +Patch1: libksba-1.3.0-multilib.patch + +BuildRequires: gcc gawk libgpg-error-devel >= 1.8 libgcrypt-devel >= 1.2.0 + +%description +Libksba is a library to make the tasks of working with X.509 certificates, +CMS data and related objects more easy. It provides a highlevel interface to +the implemented protocols and presents the data in a consistent way. + +%package devel +Summary: Development headers and libraries for %{name} +Requires:%{name} = %{version}-%{release} +Requires(post): info +Requires(preun):info + +%description devel +Development headers and libraries for %{name} + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --disable-dependency-tracking +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +%make_install +%delete_la + +%check +make check + +%pre + +%preun + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%license COPYING* +%doc AUTHORS ChangeLog README NEWS THANKS +%{_libdir}/libksba.so.* +%exclude %{_infodir}/dir + +%post devel +install-info %{_infodir}/ksba.info %{_infodir}/dir ||: + +%preun devel +if [ $1 -eq 0 ]; then + install-info --delete %{_infodir}/ksba.info %{_infodir}/dir ||: +fi + +%files devel +%defattr(-,root,root) +%{_bindir}/* +%{_includedir}/*.h +%{_libdir}/*.so +%{_datadir}/aclocal/ksba.m4 + +%files help +%doc TODO +%{_datadir}/info/ksba.info.gz + +%changelog +* Fri Sep 27 2019 openEuler Buildteam - 1.3.5-10 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: revise spec file with new rules + +* Mon Aug 19 2019 openEuler Buildteam - 1.3.5-9 +- Package init