# # spec file for package libksba # # 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/ # Name: libksba Version: 1.2.0 Release: 1 License: GPLv3+ Summary: A X.509 Library Url: http://www.gnupg.org/aegypten/ Group: Development/Libraries/C and C++ # change also name and nfb %define nld_build 0 Source: libksba-%{version}.tar.bz2 Patch1: nld-build.diff BuildRequires: libgpg-error-devel >= 1.8 PreReq: %install_info_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KSBA is a library to simplify the task of working with X.509 certificates, CMS data, and related data. %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 Requires: libgpg-error-devel Requires: libksba = %{version} Provides: libksba:/usr/include/ksba.h %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. %prep %setup -q -n libksba-%{version} %if %nld_build %patch1 %endif %build autoreconf -fi %configure --disable-static --with-pic make %{?_smp_mflags} %check make check %install %make_install 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) %{_bindir}/* %{_libdir}/libksba*.so %{_includedir}/* %doc %{_infodir}/ksba* %{_datadir}/aclocal/* %changelog