SHA256
1
0
forked from pool/cmis-client
cmis-client/cmis-client.spec

96 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package radicale
#
# Copyright (c) 2011 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 soname 0_2-0
%define _name libcmis
Name: cmis-client
Version: 0.1.0
Release: 0
License: LGPLv2+,MPLv1.1,GPLv2+
Summary: Sample CMIS client
Url: http://people.freedesktop.org/~cbosdo/libcmis/libcmis-%{version}.tar.gz
Group: Development/Libraries/C and C++
Source0: libcmis-%{version}.tar.bz2
BuildRequires: intltool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libcurl)
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{_name}-%{soname} = %{version}
%description
Sample client to access CMIS-enabled repositories using libcmis.
%package -n %{_name}-%{soname}
License: LGPLv2+
Summary: Library for accessing CMIS-enabled servers
Group: Development/Libraries/C and C++
%description -n %{_name}-%{soname}
LibCMIS is a C++ client library for the CMIS interface. This allows C++ applications to connect to any CMIS-enabled repositories.
%package -n %{_name}-devel
License: LGPLv2+
Summary: Libcmis development files
Group: Development/Libraries/C and C++
Requires: %{_name}-%{soname} = %{version}
%description -n %{_name}-devel
Development files for libcmis. LibCMIS is a C++ client library for the CMIS interface.
This allows C++ applications to connect to any CMIS-enabled repositories.
%prep
%setup -q -n %{_name}-%{version}
%build
%configure \
--disable-tests \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%check
make check
%post -n %{_name}-%{soname} -p /sbin/ldconfig
%postun -n %{_name}-%{soname} -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/cmis-client
%files -n %{_name}-%{soname}
%defattr(-, root, root)
%doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS README
%{_libdir}/*.so.*
%files -n %{_name}-devel
%defattr(-,root,root)
%{_includedir}/%{_name}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%changelog