Package init
This commit is contained in:
commit
25b7429344
23
libksba-1.3.0-multilib.patch
Normal file
23
libksba-1.3.0-multilib.patch
Normal file
@ -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
|
||||||
BIN
libksba-1.3.5.tar.bz2
Normal file
BIN
libksba-1.3.5.tar.bz2
Normal file
Binary file not shown.
BIN
libksba-1.3.5.tar.bz2.sig
Normal file
BIN
libksba-1.3.5.tar.bz2.sig
Normal file
Binary file not shown.
87
libksba.spec
Normal file
87
libksba.spec
Normal file
@ -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 <buildteam@openeuler.org> - 1.3.5-10
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: revise spec file with new rules
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.5-9
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user