File notepadqq.spec of Package notepadqq

#
# spec file for package notepadqq
#
# Copyright (c) 2015 SUSE LINUX 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:           notepadqq
Version:        0.50.4
Release:        0
Summary:        Notepad++-like editor
License:        GPL-3.0+
Group:          Productivity/Editors/Other
Url:            http://notepadqq.altervista.org/
Source:         http://ppa.launchpad.net/%{name}-team/%{name}/ubuntu/pool/main/n/%{name}/%{name}_%{version}.orig.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core) >= 5.3
BuildRequires:  pkgconfig(Qt5Gui) >= 5.3
BuildRequires:  pkgconfig(Qt5Network) >= 5.3
BuildRequires:  pkgconfig(Qt5PrintSupport) >= 5.3
BuildRequires:  pkgconfig(Qt5Svg) >= 5.3
BuildRequires:  pkgconfig(Qt5WebKit) >= 5.3
BuildRequires:  pkgconfig(Qt5WebKitWidgets) >= 5.3
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.3

%description
Text editor with support for multiple programming languages,
multiple encodings, and plugins.

%prep
%setup -q -c

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./configure \
  --qmake=%{_libqt5_qmake} \
  --prefix=%{_prefix}
make %{?_smp_mflags}

%install
%qmake5_install
%suse_update_desktop_file -r %{name} Utility TextEditor
%fdupes %{buildroot}%{_datadir}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc CONTRIBUTORS.md COPYING README.md
%{_bindir}/%{name}
%{_libexecdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/*/
%dir %{_datadir}/icons/hicolor/*/apps/
%{_datadir}/icons/hicolor/*/apps/%{name}.*

%changelog
openSUSE Build Service is sponsored by