File pantheon-terminal.spec of Package pantheon-terminal
#
# spec file for package pantheon-terminal
#
# 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: pantheon-terminal
Version: 0.4.3
Release: 0
Summary: Lightweight and modern Terminal for Elementary OS
License: LGPL-3.0+
Group: System/X11/Terminals
Url: https://launchpad.net/pantheon-terminal
Source: https://launchpad.net/pantheon-terminal/0.4.x/%{version}/+download/%{name}-%{version}.tar.xz
BuildRequires: cmake >= 2.6
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.28.0
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(granite) >= 0.3.0
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.9.10
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(vte-2.91)
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
%description
A super lightweight, beautiful, and simple terminal. It is designed to be
setup with sane defaults and little to no configuration. It is just a
terminal, nothing more, nothing less.
Designed for Elementary OS.
%lang_package
%prep
%setup -q
sed -e '/CMAKE_C_FLAGS/s/\"\(.*\)\"/\"\$\{CMAKE_C_FLAGS\}\ \1\"/' \
-i CMakeLists.txt
%build
%cmake
make %{?_smp_mflags} V=1
%install
%cmake_install
%suse_update_desktop_file org.pantheon.terminal
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}/locale/
%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/appdata/pantheon-terminal.appdata.xml
%{_datadir}/applications/open-pantheon-terminal-here.desktop
%{_datadir}/applications/org.pantheon.terminal.desktop
%{_datadir}/glib-2.0/schemas/org.pantheon.terminal.gschema.xml
%dir %{_datadir}/appdata
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog