LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File haguichi.spec of Package haguichi (Project network)

#
# spec file for package haguichi
#
# Copyright (c) 2013-2017 Stephen Brandt
# Copyright (c) 2010-2012 Adam Mizerski
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           haguichi
Version:        1.3.8
Release:        0
License:        GPL-3.0+
Summary:        Haguichi
Url:            https://www.haguichi.net/
Group:          Productivity/Networking/Other
Source0:        https://launchpad.net/%{name}/1.3/%{version}/+download/%{name}-%{version}.tar.xz
BuildRequires:  meson >= 0.40
BuildRequires:  gettext
BuildRequires:  gcc-c++
BuildRequires:  vala >= 0.26
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.14
BuildRequires:  pkgconfig(libnotify) >= 0.7.6
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
Haguichi provides a graphical frontend for Hamachi on Linux.
It features fully customizable commands, notification bubbles, rich tooltips,
along with a searchable, sortable and collapsible network list. Also, it lets
you easily backup and restore your Hamachi configuration folder.


%prep
%setup -q


%build
%meson
%meson_build


%install
%meson_install
rm -r %{buildroot}%{_datadir}/icons/{ubuntu-mono-dark,ubuntu-mono-light}

%find_lang %{name}

%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop


%post
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor


%postun
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor


%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS LICENSE
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop


%changelog