SHA256
1
0
forked from pool/libksba
libksba/libksba.spec

116 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libksba (Version 1.0.8)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libksba
BuildRequires: libgpg-error-devel >= 1.8
Url: http://www.gnupg.org/aegypten/
License: GPLv3+
Group: Development/Libraries/C and C++
AutoReqProv: on
Summary: A X.509 Library
Version: 1.0.8
Release: 1
# change also name and nfb
%define nld_build 0
Source: libksba-%{version}.tar.bz2
Patch1: nld-build.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
Authors:
--------
Werner Koch <wk@gnupg.org>
%package devel
License: GPLv2+ ; MIT License (or similar)
Summary: A X.509 Library
Group: Development/Libraries/C and C++
%if %nld_build
Conflicts: libksba-devel
%else
Provides: libksba:/usr/include/ksba.h
Requires: libksba = %{version} libgpg-error-devel
%endif
%description devel
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
This package contains the needed files to compile and link against the
libksba.
Authors:
--------
Werner Koch <wk@gnupg.org>
%prep
%setup -q -n libksba-%{version}
%if %nld_build
%patch1
%endif
%build
autoreconf -fi
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%check
make check
%install
%makeinstall
%{__rm} -fv %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog NEWS THANKS TODO
%_libdir/libksba*.so.*
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
%files devel
%defattr(-,root,root)
/usr/bin/*
%_libdir/libksba*.so
/usr/include/*
%doc %_infodir/ksba*
/usr/share/aclocal/*
%changelog