File snorenotify-qt5.spec of Package snorenotify-qt5

#
# spec file for package snorenotify
#
# 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:           snorenotify-qt5
%define rname  Snorenotify
Version:        0.5.2
Release:        0
Summary:        Snorenotify is a multi platform Qt based notification framework
License:        LGPL-3.0
Group:          System/Libraries
Url:            https://github.com/Snorenotify/Snorenotify
Source:         %{rname}-%{version}.tar.gz
#PATCH-FIX-OPENSUSE fix_lib_suffix.patch
Patch1:         fix_lib_suffix.patch
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Declarative)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  extra-cmake-modules
BuildRequires:  kf5-filesystem
BuildRequires:  doxygen
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Snorenotify is a multi platform Qt based notification framework. Using a plugin system it is possible to create notifications with many different notification systems on Windows, Unix and Mac.

%package devel
Summary:        Snorenotify is a multi platform Qt based notification framework
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
Snorenotify is a multi platform Qt based notification framework. Using a plugin system it is possible to create notifications with many different notification systems on Windows, Unix and Mac.

%prep
%setup -q -n %{rname}-%{version}
%patch1 -p1

%build
%cmake_kf5 -d build -- -DWITH_QT4=OFF -DWITH_FREEDESKTOP_FRONTEND=ON
%make_jobs

%install
%kf5_makeinstall -C build

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc Changelog.md README.md COPYING*
%_libdir/libsnore-qt5.so.*
%_libdir/libsnore-qt5/

%files devel
%defattr(-,root,root)
%_libdir/libsnore-qt5.so
%_includedir/snore/
%_libdir/cmake/libsnoreQt5/
openSUSE Build Service is sponsored by