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

102 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libisds
#
# Copyright (c) 2016 SUSE LINUX 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.3
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
Source1: http://xpisar.wz.cz/%{name}/dist/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: gpg2
BuildRequires: libgcrypt-devel
BuildRequires: libgpgme-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(expat) >= 2.0.0
BuildRequires: pkgconfig(gnutls) >= 2.12.0
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
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) SOAPservices 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) SOAPservices as defined in Czech ISDS Act
(300/2008 Coll.) and implied documents.
%package devel
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%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 %{?_smp_mflags} DESTDIR=%{buildroot} install
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