LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File haguichi.spec of Package haguichi (Project home:ztefn)

#
# spec file for package haguichi
#
# Copyright (c) 2013-2016 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.5
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:  cmake >= 2.6
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%if 0%{?fedora_version}
# Depend on LSB ourselves to fix missing dependency of Hamachi RPM files
Requires:       redhat-lsb-core
BuildRequires:  desktop-file-utils
%endif


%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
mkdir build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DGSETTINGS_COMPILE=OFF \
      -DICON_UPDATE=OFF \
      ../
make %{?_smp_mflags}
popd


%install
pushd build
%make_install
rm -r %{buildroot}%{_datadir}/icons/{ubuntu-mono-dark,ubuntu-mono-light}
popd

%find_lang %{name}

%if 0%{?suse_version}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%endif

%if 0%{?fedora_version}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%endif


%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 COPYING
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%if 0%{?suse_version} == 1320
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/512x512/apps
%endif
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop


%changelog