File metronome.spec of Package metronome
#
# spec file for package metronome
#
# Copyright (c) 2016 SUSE LINUX Products 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: metronome
Version: 0.1
Release: 0
License: GPL-3.0
Summary: Metronome
Url: https://launchpad.net/metronome
Group: Productivity/Multimedia/Other
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: vala >= 0.21.2
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: update-desktop-files
BuildRequires: fdupes
%glib2_gsettings_schema_requires
#ecommends: #{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A very light and neat click app for elementary OS.
#lang_package
%prep
%setup -q
sed -i '/^add_subdirectory (po)$/s/^/#/' CMakeLists.txt
sed -i '/Version/s/0\.0\.1/1\.0/' data/%{name}.desktop
sed -i '/bout/d' data/%{name}.desktop
%build
%cmake \
-DGSETTINGS_COMPILE=OFF
make %{?_smp_mflags}
%install
%cmake_install %{?_smp_mflags}
rm -f %{buildroot}%{_datadir}/icons/hicolor/%{name}.??g
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file -r %{name} AudioVideo Sequencer
#find_lang #{name}
%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.pantheon.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/%{name}
#files lang -f #{name}.lang