File nitroshare.spec of Package nitroshare
#
# spec file for package nitroshare
#
# 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: nitroshare
Version: 0.3.0
Release: 0
Summary: Network file transfer application
License: MIT
Group: Productivity/Networking/File-Sharing
Url: http://nitroshare.net/
Source: https://github.com/%{name}/%{name}-desktop/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkg-config
BuildRequires: pkgconfig(Qt5Network) >= 5.1
BuildRequires: pkgconfig(Qt5Svg) >= 5.1
BuildRequires: pkgconfig(Qt5Gui) >= 5.1
BuildRequires: pkgconfig(Qt5Widgets) >= 5.1
BuildRequires: pkgconfig(appindicator-0.1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: update-desktop-files
%description
A cross-platform network file transfer application designed to make
transferring any file to any device as painless as possible.
Features:
* Automatic discovery of devices on the local network.
* Simple and intuitive user interface.
* Transfer entire directories.
%prep
%setup -q -n %{name}-desktop-%{version}
%build
%qmake5 PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
%qmake5_install
install -Dm 0644 debian/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%suse_update_desktop_file -r %{name} Network FileTransfer
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc LICENSE.txt README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/gnome/
%dir %{_datadir}/icons/gnome/*/
%dir %{_datadir}/icons/gnome/*/apps/
%dir %{_datadir}/icons/ubuntu-mono-*/
%dir %{_datadir}/icons/ubuntu-mono-*/apps/
%dir %{_datadir}/icons/ubuntu-mono-*/apps/*/
%{_datadir}/icons/*/*/*/%{name}*
%{_mandir}/man?/%{name}.?%{?ext_man}
%changelog