2007-01-10 18:03:46 +00:00
|
|
|
#
|
2011-02-21 23:32:03 +00:00
|
|
|
# spec file for package gedit
|
2007-01-10 18:03:46 +00:00
|
|
|
#
|
2013-03-13 22:42:24 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-10 18:03:46 +00:00
|
|
|
#
|
2008-08-15 21:19:54 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-08 10:58:32 +00:00
|
|
|
|
2013-07-04 17:58:13 +00:00
|
|
|
%define _with_gi_python 0
|
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
Name: gedit
|
2013-07-04 17:58:13 +00:00
|
|
|
Version: 3.9.3
|
2011-12-21 09:17:19 +00:00
|
|
|
Release: 0
|
2011-02-13 21:06:18 +00:00
|
|
|
Summary: Small and lightweight UTF-8 text editor
|
2011-12-21 09:17:19 +00:00
|
|
|
License: GPL-2.0+
|
2010-03-19 08:12:12 +00:00
|
|
|
Group: Productivity/Text/Editors
|
2011-12-21 09:17:19 +00:00
|
|
|
Url: http://www.gnome.org
|
2013-06-23 14:14:44 +00:00
|
|
|
Source: http://download.gnome.org/sources/gedit/3.9/%{name}-%{version}.tar.xz
|
2010-03-19 08:12:12 +00:00
|
|
|
# PATCH-FIX-OPENSUSE gedit-desktop.patch -- adds more MIME types and change icon
|
|
|
|
Patch0: gedit-desktop.patch
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: enchant-devel
|
|
|
|
BuildRequires: fdupes
|
2010-03-19 08:12:12 +00:00
|
|
|
BuildRequires: gettext
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: iso-codes-devel
|
2013-03-13 22:42:24 +00:00
|
|
|
BuildRequires: python >= 3.2.3
|
2009-03-26 23:13:14 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2012-02-25 14:39:14 +00:00
|
|
|
BuildRequires: yelp-tools
|
2013-06-23 14:14:44 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.37.0
|
2011-04-25 09:32:43 +00:00
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
2013-06-23 14:14:44 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.9.0
|
2013-03-13 22:42:24 +00:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.2.0
|
2012-02-20 09:24:42 +00:00
|
|
|
BuildRequires: pkgconfig(ice)
|
2013-03-13 22:42:24 +00:00
|
|
|
BuildRequires: pkgconfig(libpeas-1.0) >= 1.7.0
|
|
|
|
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.7.0
|
2011-04-25 09:32:43 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
2012-03-11 17:33:57 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0
|
2011-10-17 06:27:22 +00:00
|
|
|
BuildRequires: pkgconfig(pygobject-3.0) >= 3.0.0
|
2012-02-20 09:24:42 +00:00
|
|
|
BuildRequires: pkgconfig(sm) >= 1.0.0
|
2012-02-20 09:25:25 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2013-04-19 09:27:03 +00:00
|
|
|
BuildRequires: pkgconfig(zeitgeist-2.0) >= 0.9.12
|
2013-03-13 22:42:24 +00:00
|
|
|
Requires: python3-cairo
|
|
|
|
Requires: python3-gobject
|
2011-02-13 21:06:18 +00:00
|
|
|
Recommends: %{name}-lang
|
2011-10-06 21:27:49 +00:00
|
|
|
Recommends: iso-codes
|
2010-03-05 08:50:54 +00:00
|
|
|
Provides: gedit2 = %{version}
|
|
|
|
Obsoletes: gedit2 < %{version}
|
2010-03-19 08:12:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-25 09:24:37 +00:00
|
|
|
%glib2_gsettings_schema_requires
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%description
|
2011-02-13 21:06:18 +00:00
|
|
|
Gedit is a small and lightweight UTF-8 text editor for the GNOME
|
|
|
|
environment.
|
2007-01-10 18:03:46 +00:00
|
|
|
|
2012-02-08 10:58:32 +00:00
|
|
|
%package plugin-zeitgeist
|
|
|
|
Summary: Zeitgeist dataprovider for gedit
|
|
|
|
Group: Productivity/Text/Editors
|
|
|
|
Requires: %{name}
|
|
|
|
Supplements: packageand(%{name}:zeitgeist)
|
|
|
|
|
|
|
|
%description plugin-zeitgeist
|
|
|
|
The zeitgeist plugin for gedit provides a zeitgeist dataprovider that
|
|
|
|
logs access and leave event for documents used with gedit.
|
|
|
|
|
2013-07-04 17:58:13 +00:00
|
|
|
%if %{_with_gi_python}
|
2013-03-13 22:42:24 +00:00
|
|
|
%package -n python3-gedit
|
|
|
|
Summary: Python bindings for gedit
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
|
|
|
%description -n python3-gedit
|
|
|
|
Gedit is a small and lightweight UTF-8 text editor for the GNOME
|
|
|
|
environment.
|
|
|
|
|
|
|
|
This package provides the python bindings, based on gobject-introspection.
|
2013-07-04 17:58:13 +00:00
|
|
|
%endif
|
2013-03-13 22:42:24 +00:00
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
%package devel
|
2011-02-13 21:06:18 +00:00
|
|
|
Summary: Small and lightweight UTF-8 text editor
|
2012-01-09 10:08:16 +00:00
|
|
|
Group: Productivity/Text/Editors
|
2010-03-19 08:12:12 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: gtksourceview-devel
|
2013-07-04 17:58:13 +00:00
|
|
|
%if %{_with_gi_python}
|
2013-03-13 22:42:24 +00:00
|
|
|
Requires: python3-gedit
|
2013-07-04 17:58:13 +00:00
|
|
|
%endif
|
2010-03-05 08:50:54 +00:00
|
|
|
Provides: gedit2-devel = %{version}
|
|
|
|
Obsoletes: gedit2-devel < %{version}
|
2011-02-13 21:06:18 +00:00
|
|
|
Provides: %{name}-doc = %{version}
|
2011-04-25 09:24:37 +00:00
|
|
|
Obsoletes: %{name}-doc < %{version}
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%description devel
|
2011-02-13 21:06:18 +00:00
|
|
|
Gedit is a small and lightweight UTF-8 text editor for the GNOME
|
|
|
|
environment.
|
2007-01-10 18:03:46 +00:00
|
|
|
|
2007-08-09 17:00:27 +00:00
|
|
|
%lang_package
|
2007-01-10 18:03:46 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-03-26 23:13:14 +00:00
|
|
|
translation-update-upstream
|
2009-02-06 22:37:25 +00:00
|
|
|
%patch0 -p0
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%build
|
2008-11-03 17:09:42 +00:00
|
|
|
%configure \
|
|
|
|
--enable-python
|
2012-09-07 15:38:13 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%install
|
2012-09-07 15:38:13 +00:00
|
|
|
%make_install
|
2012-06-04 18:45:34 +00:00
|
|
|
find %{buildroot} -type f -name '*.la' -delete -print
|
2012-10-17 20:21:27 +00:00
|
|
|
%suse_update_desktop_file gedit
|
2012-02-25 14:39:14 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-03-19 08:12:12 +00:00
|
|
|
%fdupes %{buildroot}
|
2007-08-02 21:28:54 +00:00
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
%clean
|
2010-03-19 08:12:12 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-01-10 18:03:46 +00:00
|
|
|
|
2011-02-13 21:06:18 +00:00
|
|
|
%post
|
2011-04-25 09:24:37 +00:00
|
|
|
/sbin/ldconfig
|
2011-02-13 21:06:18 +00:00
|
|
|
%desktop_database_post
|
2011-04-25 09:24:37 +00:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 21:06:18 +00:00
|
|
|
|
|
|
|
%postun
|
2011-04-25 09:24:37 +00:00
|
|
|
/sbin/ldconfig
|
2011-02-13 21:06:18 +00:00
|
|
|
%desktop_database_postun
|
2011-04-25 09:24:37 +00:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 21:06:18 +00:00
|
|
|
|
2011-04-25 09:24:37 +00:00
|
|
|
%files
|
2007-01-10 18:03:46 +00:00
|
|
|
%defattr(-, root, root)
|
2007-04-03 19:24:18 +00:00
|
|
|
%doc AUTHORS BUGS ChangeLog COPYING MAINTAINERS NEWS README
|
2012-02-25 14:39:14 +00:00
|
|
|
%doc %{_datadir}/help/C/%{name}/
|
2007-01-10 18:03:46 +00:00
|
|
|
%{_bindir}/gedit
|
|
|
|
%{_bindir}/gnome-text-editor
|
|
|
|
%{_datadir}/applications/*.desktop
|
2011-04-25 09:24:37 +00:00
|
|
|
%{_datadir}/dbus-1/services/org.gnome.gedit.service
|
|
|
|
%{_datadir}/GConf/gsettings/gedit.convert
|
2012-10-17 20:21:27 +00:00
|
|
|
# %{_datadir}/gedit/gir-1.0/ lives in -devel
|
|
|
|
%exclude %{_datadir}/gedit/gir-1.0/
|
2011-04-25 09:32:43 +00:00
|
|
|
%{_datadir}/gedit/
|
2011-04-25 09:24:37 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.enums.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.externaltools.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.enums.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.pythonconsole.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.enums.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml
|
2012-02-08 10:58:32 +00:00
|
|
|
%dir %{_libdir}/gedit/
|
2012-06-04 18:45:34 +00:00
|
|
|
%{_libdir}/gedit/libgedit-private.so
|
2012-02-08 10:58:32 +00:00
|
|
|
%{_libdir}/gedit/girepository-1.0/
|
|
|
|
%dir %{_libdir}/gedit/plugins/
|
|
|
|
# Explicitly list plugins so we know when we miss one
|
|
|
|
%{_libdir}/gedit/plugins/changecase.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libchangecase.so
|
|
|
|
%{_libdir}/gedit/plugins/docinfo.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libdocinfo.so
|
|
|
|
%{_libdir}/gedit/plugins/externaltools/
|
|
|
|
%{_libdir}/gedit/plugins/externaltools.plugin
|
|
|
|
%{_libdir}/gedit/plugins/filebrowser.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libfilebrowser.so
|
|
|
|
%{_libdir}/gedit/plugins/modelines.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libmodelines.so
|
|
|
|
%{_libdir}/gedit/plugins/pythonconsole/
|
|
|
|
%{_libdir}/gedit/plugins/pythonconsole.plugin
|
|
|
|
%{_libdir}/gedit/plugins/quickopen/
|
|
|
|
%{_libdir}/gedit/plugins/quickopen.plugin
|
|
|
|
%{_libdir}/gedit/plugins/snippets/
|
|
|
|
%{_libdir}/gedit/plugins/snippets.plugin
|
|
|
|
%{_libdir}/gedit/plugins/sort.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libsort.so
|
|
|
|
%{_libdir}/gedit/plugins/spell.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libspell.so
|
|
|
|
%{_libdir}/gedit/plugins/time.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libtime.so
|
2011-04-25 09:32:43 +00:00
|
|
|
%if "%{_libdir}" != "%{_libexecdir}"
|
2012-02-08 10:58:32 +00:00
|
|
|
%dir %{_libexecdir}/gedit
|
2011-04-25 09:32:43 +00:00
|
|
|
%endif
|
2012-02-08 10:58:32 +00:00
|
|
|
%{_libexecdir}/gedit/gedit-bugreport.sh
|
2007-01-10 18:03:46 +00:00
|
|
|
%doc %{_mandir}/man1/gedit*
|
|
|
|
|
2012-03-26 08:05:08 +00:00
|
|
|
%files lang -f %{name}.lang
|
2007-08-09 17:00:27 +00:00
|
|
|
|
2012-02-08 10:58:32 +00:00
|
|
|
%files plugin-zeitgeist
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/gedit/plugins/zeitgeist.plugin
|
|
|
|
%{_libdir}/gedit/plugins/libzeitgeistplugin.so
|
|
|
|
|
2013-07-04 17:58:13 +00:00
|
|
|
%if %{_with_gi_python}
|
2013-03-13 22:42:24 +00:00
|
|
|
%files -n python3-gedit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python3_sitearch}/gi/overrides/Gedit*
|
2013-05-14 18:05:47 +00:00
|
|
|
%{python3_sitearch}/gi/overrides/__pycache__/
|
2013-07-04 17:58:13 +00:00
|
|
|
%endif
|
2013-03-13 22:42:24 +00:00
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2011-02-13 21:06:18 +00:00
|
|
|
%doc %{_datadir}/gtk-doc/html/gedit/
|
2012-10-17 20:21:27 +00:00
|
|
|
%{_datadir}/gedit/gir-1.0/
|
2007-01-10 18:03:46 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2007-03-12 23:44:54 +00:00
|
|
|
%changelog
|