SHA256
1
0
forked from pool/cmis-client

Accepting request 455479 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/455479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmis-client?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2017-02-11 00:32:54 +00:00 committed by Git OBS Bridge
commit 643bf7ff54
2 changed files with 34 additions and 26 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 8 10:09:12 UTC 2017 - jengelh@inai.de
- Description updates
- Rename %soname to %sover to better reflect its use
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 1 10:30:26 UTC 2017 - adam.majer@suse.de Wed Feb 1 10:30:26 UTC 2017 - adam.majer@suse.de

View File

@ -16,7 +16,7 @@
# #
%define soname 0_5-5 %define sover 0_5-5
%define incname 0.5 %define incname 0.5
%define _name libcmis %define _name libcmis
Name: cmis-client Name: cmis-client
@ -44,46 +44,48 @@ BuildRequires: libxslt
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
Requires: %{_name}-%{soname} = %{version} Requires: %{_name}-%{sover} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Sample client to access CMIS-enabled repositories using libcmis. Sample client to access CMIS-enabled repositories using libcmis.
%package -n %{_name}-%{soname} %package -n %{_name}-%{sover}
Summary: Library for accessing CMIS-enabled servers Summary: Library for accessing CMIS-enabled servers
Group: System/Libraries Group: System/Libraries
%description -n %{_name}-%{soname} %description -n %{_name}-%{sover}
LibCMIS is a C++ client library for the CMIS (Content Management libcmis is a C++ client library for the CMIS (Content Management
Interoperability Services) interface. This allows C++ applications to Interoperability Services) interface. This library allows C++
connect to any CMIS-enabled repositories. applications to connect to any CMIS-enabled repositories.
%package -n %{_name}-devel %package -n %{_name}-devel
Summary: Libcmis development files Summary: Development files for libcmis
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{_name}-%{soname} = %{version} Requires: %{_name}-%{sover} = %{version}
%description -n %{_name}-devel %description -n %{_name}-devel
Development files for libcmis. LibCMIS is a C++ client library for the CMIS interface. Development files for libcmis. libcmis is a C++ client library for
This allows C++ applications to connect to any CMIS-enabled repositories. the CMIS interface.
%package -n %{_name}-c-%{soname} %package -n %{_name}-c-%{sover}
Summary: C Wrapper for libcmis, a library for accessing CMIS-enabled servers Summary: C wrapper for libcmis, a library for accessing CMIS-enabled servers
Group: System/Libraries Group: System/Libraries
%description -n %{_name}-c-%{soname} %description -n %{_name}-c-%{sover}
libcmis-c is a C client library for the CMIS interface. This allows C applications to connect to any CMIS-enabled repositories. libcmis-c is a C client library for the CMIS (Content Management
It is only a wrapper for its C++ sister libcmis. Interoperability Services) interface. This allows C applications to
connect to any CMIS-enabled repositories. It is only a wrapper for
its C++ sister library libcmis.
%package -n %{_name}-c-devel %package -n %{_name}-c-devel
Summary: Libcmis-c development files Summary: Development files for libcmis-c
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{_name}-c-%{soname} = %{version} Requires: %{_name}-c-%{sover} = %{version}
%description -n %{_name}-c-devel %description -n %{_name}-c-devel
Development files for libcmis-c. Libcmis-c is a C client library for the CMIS interface. Development files for libcmis-c. libcmis-c is a C client library for
This allows C applications to connect to any CMIS-enabled repositories. It is only a wrapper for its C++ sister libcmis. the CMIS interface.
%prep %prep
%setup -q -n %{_name}-%{version} %setup -q -n %{_name}-%{version}
@ -112,17 +114,17 @@ make -k check %{?_smp_mflags} || echo "ignore check error"
make check %{?_smp_mflags} make check %{?_smp_mflags}
%endif %endif
%post -n %{_name}-%{soname} -p /sbin/ldconfig %post -n %{_name}-%{sover} -p /sbin/ldconfig
%post -n %{_name}-c-%{soname} -p /sbin/ldconfig %post -n %{_name}-c-%{sover} -p /sbin/ldconfig
%postun -n %{_name}-%{soname} -p /sbin/ldconfig %postun -n %{_name}-%{sover} -p /sbin/ldconfig
%postun -n %{_name}-c-%{soname} -p /sbin/ldconfig %postun -n %{_name}-c-%{sover} -p /sbin/ldconfig
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%{_bindir}/cmis-client %{_bindir}/cmis-client
%{_mandir}/man1/cmis-client.1.* %{_mandir}/man1/cmis-client.1.*
%files -n %{_name}-%{soname} %files -n %{_name}-%{sover}
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS %doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS
%{_libdir}/%{_name}-%{incname}.so.* %{_libdir}/%{_name}-%{incname}.so.*
@ -133,7 +135,7 @@ make check %{?_smp_mflags}
%{_libdir}/pkgconfig/%{_name}-%{incname}.pc %{_libdir}/pkgconfig/%{_name}-%{incname}.pc
%{_libdir}/%{_name}-%{incname}.so %{_libdir}/%{_name}-%{incname}.so
%files -n %{_name}-c-%{soname} %files -n %{_name}-c-%{sover}
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS %doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS
%{_libdir}/%{_name}-c-%{incname}.so.* %{_libdir}/%{_name}-c-%{incname}.so.*