File libtmdbqt.spec of Package libtmdbqt

#
# spec file for package libtmdbqt
#
# Copyright (c) 2014 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 sonum   1_0
%define _libname TmdbQt5

Name:           libtmdbqt
Version:        1.0.0
Release:        0
Summary:        Open Collaboration Service client library
License:        LGPL-2.1+
Group:          System/GUI/KDE
Url:            https://projects.kde.org/attica
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 2.8.12
BuildRequires:  fdupes
BuildRequires:  kf5-filesystem
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Network) >= 5.2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Attica is a library to access Open Collaboration Service servers.

%package -n lib%{_libname}-%{sonum}
Summary:        Open Collaboration Service client library - development files
Group:          System/GUI/KDE

%description -n lib%{_libname}-%{sonum}
Attica is a library to access Open Collaboration Service servers.

%package devel
Summary:        Open Collaboration Service client library - development files
Group:          Development/Libraries/C and C++
Requires:       lib%{_libname}-%{sonum} = %{version}
Requires:       pkgconfig(Qt5Core) >= 5.2.0

%description devel
Development files for attica, Attica a library to access Open Collaboration Service servers.

%prep
%setup -q -n %{name}-%{version}

%build
  %cmake_kf5 -d build -- -DTMDBQT_ENABLE_TESTS=OFF
  %make_jobs

%install
  %kf5_makeinstall -C build
  %fdupes -s %{buildroot}

%post -n lib%{_libname}-%{sonum} -p /sbin/ldconfig

%postun -n lib%{_libname}-%{sonum} -p /sbin/ldconfig

%files -n lib%{_libname}-%{sonum}
%defattr(-,root,root)
%doc COPYING* README*
%{_libdir}/libTmdbQt5.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/cmake/TmdbQt5/
%{_libdir}/libTmdbQt5.so
%{_includedir}/TmdbQt5/

%changelog