File gedit-cossa.spec of Package gedit-cossa
#
# spec file for package gedit-cossa
#
# Copyright (c) 2011 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: gedit-cossa
Version: 3.2.0
Release: 1
License: GPL-2.0+
Summary: CSS previewer for GTK+ themes integrated with gedit
Url: http://ftp.acc.umu.se/pub/gnome/sources/gedit-cossa/
Group: Productivity/Text/Editors
Source: http://download.gnome.org/sources/gedit-cossa/3.2/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gedit-cossa-include-cairo-dep.patch bgo#668244 badshah400@gmail.com -- Make dependence on cairo explicit to prevent ld errors
Patch0: gedit-cossa-include-cairo-dep.patch
# PATCH-FIX-UPSTREAM gedit-cossa-plugins-are-not-libs.patch bgo#668216 dimstar@opensuse.org -- Plugins are not shared libs, change buildsystem accordingly.
Patch1: gedit-cossa-plugins-are-not-libs.patch
# Needed by patch0 and patch1
BuildRequires: gnome-common
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gedit) >= 3.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gedit-cossa is a CSS previewer for GTK+ themes, integrating with
gedit so the edited CSS is promptly visible in the various samples.
It may be easily extended with more samples and allows zooming these
to help get the tiny details right.
%package -n gedit-plugin-cossa
Summary: CSS previewer for GTK+ themes integrated with gedit
Group: Productivity/Text/Editors
Requires: gedit
Recommends: %{name}-lang
Provides: %{name} = %{version}
%description -n gedit-plugin-cossa
gedit-cossa is a CSS previewer for GTK+ themes, integrating with
gedit so the edited CSS is promptly visible in the various samples.
It may be easily extended with more samples and allows zooming these
to help get the tiny details right.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
# Needed by patch0 and patch1
autoreconf -i
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}/%{_libdir}/gedit/plugins -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%files -n gedit-plugin-cossa
%defattr(-,root,root)
%doc COPYING NEWS README
%{_bindir}/cossa-standalone-previewer
%{_libdir}/gedit/plugins/cossa.plugin
%{_libdir}/gedit/plugins/libcossa.so
%{_datadir}/gedit/plugins/cossa/
%files lang -f %{name}.lang
%changelog