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-2015 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.0
Release:        0
License:        GPL-3.0+
Summary:        Haguichi
Url:            https://www.haguichi.net/
Group:          Productivity/Networking/Other
Source:         %{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
BuildRequires:  adwaita-icon-theme
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%if 0%{?fedora_version}
BuildRequires:  desktop-file-utils
%endif


%description
Haguichi provides a graphical frontend for Hamachi on Linux.


%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
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/Adwaita


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


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


%changelog