# # spec file for package libisds # # Copyright (c) 2015 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/ # %define libname %{name}5 Name: libisds Version: 0.10 Release: 0 Summary: Library for accessing the Czech Data Boxes License: LGPL-3.0+ Group: System/Libraries Url: http://xpisar.wz.cz/libisds/ Source0: http://xpisar.wz.cz/%{name}/dist/%{name}-%{version}.tar.xz BuildRequires: gpg2 BuildRequires: libgcrypt-devel BuildRequires: pkg-config BuildRequires: pkgconfig(expat) >= 2.0.0 BuildRequires: pkgconfig(gnutls) >= 2.12.0 BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libcrypto) Requires: gpg2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a library for accessing ISDS (Informační systém datových schránek / Data Box Information System) SOAP services as defined in Czech ISDS Act (300/2008 Coll.) and implied documents. %package -n %{libname} Summary: Library for accessing the Czech Data Boxes Group: System/Libraries %description -n %{libname} This is a library for accessing ISDS (Informační systém datových schránek / Data Box Information System) SOAP services as defined in Czech ISDS Act (300/2008 Coll.) and implied documents. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{libname} = %{version} Requires: pkg-config %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure \ --disable-static \ --enable-test \ --with-libcurl \ --enable-openssl-backend make %{?_smp_mflags} %check make check %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f -name "*.la" -delete -print %find_lang %{name} mv doc specification rm -rf client/.deps %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} -f %{name}.lang %defattr(-,root,root) %doc README AUTHORS NEWS TODO COPYING %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/isds.h %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %doc client specification %changelog