File compiz-emerald.spec of Package compiz-emerald
#
# spec file for package compiz-emerald
#
# 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/
#
%define _name emerald
Name: compiz-emerald
Version: 0.8.14
Release: 0
Summary: Themeable window decorator for Compiz
License: GPL-2.0+
Group: System/GUI/Other
Url: https://github.com/compiz-reloaded/emerald
Source: https://github.com/compiz-reloaded/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM emerald-0.8.14-fix-app-switchers.patch sor.alexei@meowr.ru -- Fix issues with application switchers (commit 27d4e0d).
Patch0: emerald-0.8.14-fix-app-switchers.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libdecoration) < 0.9
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(xrender) >= 0.8.4
Requires: compiz < 0.9
Recommends: %{name}-lang
Recommends: %{name}-theme-manager >= %{version}
Recommends: %{name}-themes
Provides: compiz-decorator = 0.8
%description
Emerald is a themeable window decorator for Compiz.
%lang_package
%package theme-manager
Summary: Graphical theme manager for Emerald
Group: System/GUI/Other
Requires: %{name} >= %{version}
%description theme-manager
Emerald is a themeable window decorator for Compiz.
This package contains a graphical theme manager.
%package devel
Summary: Development files for compiz-emerald
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
Requires: gcc-c++
Requires: pkgconfig(gtk+-3.0)
Requires: pkgconfig(libdecoration) < 0.9
Requires: pkgconfig(libwnck-3.0)
Requires: pkgconfig(pangocairo)
Requires: pkgconfig(xrender) >= 0.8.4
%description devel
Emerald is a themeable window decorator for Compiz.
This package holds the development files for compiz-emerald.
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--with-gtk=3.0 \
--disable-static \
--disable-mime-update
make %{?_smp_mflags} V=1
%install
%make_install
%suse_update_desktop_file %{_name}-theme-manager DesktopSettings
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_datadir}/
%find_lang %{_name}
%post
%mime_database_post
/sbin/ldconfig
%postun
%mime_database_postun
/sbin/ldconfig
%post theme-manager
%desktop_database_post
%icon_theme_cache_post
%postun theme-manager
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README.md
%{_bindir}/%{_name}
%{_libdir}/%{_name}/
%{_libdir}/libemeraldengine.so.*
%{_datadir}/%{_name}/
%{_datadir}/icons/hicolor/*/mimetypes/*%{_name}*
%{_datadir}/mime/packages/%{_name}.xml
%dir %{_datadir}/mime-info/
%{_datadir}/mime-info/%{_name}.mime
%{_mandir}/man1/%{_name}.1%{?ext_man}
%files lang -f %{_name}.lang
%defattr(-,root,root)
%files theme-manager
%defattr(-,root,root)
%{_bindir}/%{_name}-theme-manager
%{_datadir}/applications/*%{_name}*.desktop
%{_datadir}/icons/hicolor/*/apps/*%{_name}-theme-manager*
%{_mandir}/man1/%{_name}-theme-manager.1%{?ext_man}
%files devel
%defattr(-,root,root)
%{_includedir}/%{_name}/
%{_libdir}/libemeraldengine.so
%{_libdir}/pkgconfig/%{_name}*.pc
%changelog