File qedit.spec of Package qedit

#
# spec file for package qedit
#
# Copyright (c) 2015 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:           qedit
Version:        2.8.2
Release:        0
License:        GPL-2.0
Summary:        Qt based advanced text editor
Url:            http://hugo.pereira.free.fr/software/index.php?page=software&full=1
Group:          Productivity/Text/Editors
Source:         %{name}-%{version}.tar.gz
BuildRequires:  aspell-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
QEdit is a modern, standalone and multi-purpose text editor.

%prep
%setup -q

%build
%cmake \
        -DUSE_QT5=ON \
        -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
%cmake_install
install -dm 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications
install -Dm 0644 %{name}.png %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file -r %{name} Qt Utility TextEditor

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
openSUSE Build Service is sponsored by