File terminology.spec of Package terminology
#
# spec file for package terminology
#
# Copyright (c) 2015 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: terminology
Version: 0.9.1
Release: 0
Summary: EFL based terminal emulator
License: BSD-2-Clause and OFL-1.1
Group: System/X11/Terminals
Url: http://enlightenment.org
Source: %{name}-%{version}.tar.xz
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ecore-evas)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(ecore-imf)
BuildRequires: pkgconfig(ecore-imf-evas)
BuildRequires: pkgconfig(ecore-input)
BuildRequires: pkgconfig(ecore-ipc)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(eet)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(elementary) >= 1.8.0
BuildRequires: pkgconfig(emotion)
BuildRequires: pkgconfig(ethumb_client)
BuildRequires: pkgconfig(evas)
Requires: efl
Requires: elementary >= 1.8.0
# provides default.edj
Requires: terminology-theme-dft
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
Recommends: terminology-theme-dark
Recommends: terminology-theme-misc
Recommends: terminology-theme-openSUSE
Recommends: terminology-theme-openSUSE-oliveleaf
Recommends: evas-generic-loaders >= 1.8.0
%endif
Conflicts: evas-generic-loaders < 1.8.0
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
%description
Fast and lightweight terminal emulator using EFL libraries.
%package -n terminology-theme-upstream
Summary: Default Enlightenment theme
Group: System/X11/Terminals
Provides: terminology-theme = 0.1
Provides: terminology-theme-dft
Conflicts: otherproviders(terminology-theme-dft)
%description -n terminology-theme-upstream
For use with upstream branding, when using openSUSE themes, when using openSUSE themes Use the Dark theme instead
%package -n terminology-theme-dark
Summary: Default terminology theme(Dark)
Group: System/X11/Terminals
Provides: terminology-theme
%description -n terminology-theme-dark
The default theme for terminology install when using openSUSE branding
%package -n terminology-theme-misc
Summary: Miscellaneous terminology themes
Group: System/X11/Terminals
Provides: terminology-theme
%description -n terminology-theme-misc
Miscellaneous themes provided by the terminology devs, includes Solarized, Mild and Black themes.
%prep
%setup -q
%build
%configure --disable-silent-rules --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang %{name}
sed -i 's/.png[[:blank:]]*$//' %{buildroot}%{_datadir}/applications/terminology.desktop
%if 0%{?suse_version}
%suse_update_desktop_file terminology TerminalEmulator
%fdupes %{buildroot}/%{_datadir}
%endif
mv %{buildroot}%{_datadir}/icons %{buildroot}%{_datadir}/pixmaps
# make 2 copys of default for branding
cp %{buildroot}%{_datadir}/terminology/themes/default.edj %{buildroot}%{_datadir}/terminology/themes/dark.edj
%files -f %{name}.lang
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/terminology
%{_bindir}/ty*
%{_datadir}/applications/terminology.desktop
%{_datadir}/pixmaps/terminology.png
%{_datadir}/terminology
%exclude %{_datadir}/terminology/themes/*
%{_mandir}/*/*
%files -n terminology-theme-upstream
%defattr(-, root, root)
%{_datadir}/terminology/themes/default.edj
%files -n terminology-theme-dark
%defattr(-, root, root)
%{_datadir}/terminology/themes/dark.edj
%files -n terminology-theme-misc
%defattr(-, root, root)
%{_datadir}/terminology/themes/*
%exclude %{_datadir}/terminology/themes/dark.edj
%exclude %{_datadir}/terminology/themes/default.edj
%changelog