File spice-up.spec of Package spice-up
#
# spec file for package spice-up
#
# Copyright (c) 2017 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: spice-up
Version: 1.3.2
Release: 0
Summary: Desktop presentation application
License: GPL-3.0
Group: Productivity/Multimedia/Video/Players
Url: https://launchpad.net/spice-up
Source: https://github.com/Philip-Scott/Spice-up/archive/%{version}.tar.gz#/Spice-up-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: shared-mime-info
BuildRequires: vala
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(granite) >= 0.3
BuildRequires: pkgconfig(gtk+-3.0) >= 3.18.0
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libevdev)
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Spice-up is a desktop presentation application
based upon SpiceOfDesign's presentation concept.
%lang_package
%prep
%setup -q -n Spice-up-%{version}
%build
%cmake \
-DGSETTINGS_COMPILE=OFF
# remove smp_mflags to avoid compilation errors
make -j1 V=1
%install
%cmake_install
mkdir -p %{buildroot}%{_datadir}/appdata
mv %{buildroot}%{_datadir}/{metainfo,appdata}/com.github.philip-scott.%{name}.appdata.xml
%find_lang com.github.philip-scott.spice-up %{name}.lang
%fdupes %{buildroot}%{_datadir}
%post
%mime_database_post
%icon_theme_cache_post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%mime_database_postun
%icon_theme_cache_postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc COPYING README.md
%{_bindir}/com.github.philip-scott.spice-up
%{_datadir}/com.github.philip-scott.spice-up/
%{_datadir}/applications/*.%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/*%{name}.??g
%{_datadir}/icons/hicolor/*/mimetypes/*spiceup.??g
%{_datadir}/glib-2.0/schemas/*.%{name}.gschema.xml
%{_datadir}/appdata/*.%{name}.appdata.xml
%{_datadir}/mime/packages/*%{name}.mime.xml
%dir %{_datadir}/appdata
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog