File libmygpo-qt5.spec of Package libmygpo-qt5

#
# spec file for package libmygpo-qt
#
# 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/
#


Name:           libmygpo-qt5
Version:        1.0.8
Release:        0
Summary:        Qt Library that wraps the gpodder.net Web API
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://wiki.gpodder.org/wiki/Libmygpo-qt
Source:         http://stefan.derkits.at/files/libmygpo-qt/libmygpo-qt.%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libmygpo-qt5 is a Qt Library that wraps the gpodder.net Web API (http://wiki.gpodder.org/wiki/Web_Services/API_2)

v1.0 wraps nearly every Request from the gpodder.net API except:
- Simple API Calls Downloading subscription Lists & Uploading subscription Lists
- Retrieving Subscription Changes (you should use "Retrieving Updates for a given Device" instead)

%package -n libmygpo-qt5-1
Summary:        Qt Library that wraps the gpodder.net Web API
Group:          Development/Libraries/C and C++
Url:            http://wiki.gpodder.org/wiki/Libmygpo-qt

%description -n libmygpo-qt5-1
libmygpo-qt5 is a Qt Library that wraps the gpodder.net Web API (http://wiki.gpodder.org/wiki/Web_Services/API_2)

v1.0 wraps nearly every Request from the gpodder.net API except:
- Simple API Calls Downloading subscription Lists & Uploading subscription Lists
- Retrieving Subscription Changes (you should use "Retrieving Updates for a given Device" instead)

%package devel
Summary:        Qt Library that wraps the gpodder.net Web API
Group:          Development/Libraries/C and C++
Url:            http://wiki.gpodder.org/wiki/Libmygpo-qt
Requires:       libmygpo-qt5-1 = %{version}
Conflicts:      libmygpo-qt-devel

%description devel
libmygpo-qt5 is a Qt Library that wraps the gpodder.net Web API (http://wiki.gpodder.org/wiki/Web_Services/API_2)

v1.0 wraps nearly every Request from the gpodder.net API except:
- Simple API Calls Downloading subscription Lists & Uploading subscription Lists
- Retrieving Subscription Changes (you should use "Retrieving Updates for a given Device" instead)

%prep
%setup -q -n libmygpo-qt.%{version}

%build
  %cmake -DMYGPO_BUILD_TESTS=OFF -DBUILD_WITH_QT4=OFF
  %make_jobs

%install
%cmake_install

%post -n libmygpo-qt5-1 -p /sbin/ldconfig

%postun -n libmygpo-qt5-1 -p /sbin/ldconfig

%files devel
%defattr(-,root,root)
%doc LICENSE
%{_includedir}/mygpo-qt/
%{_libdir}/cmake/mygpo-qt/
%{_libdir}/libmygpo-qt5.so
%{_libdir}/pkgconfig/libmygpo-qt5.pc

%files -n libmygpo-qt5-1
%defattr(-,root,root)
%doc LICENSE
%{_libdir}/libmygpo-qt5.so.*

%changelog
openSUSE Build Service is sponsored by