2007-01-10 18:03:46 +00:00
|
|
|
#
|
2010-09-28 19:26:00 +00:00
|
|
|
# spec file for package gedit (Version 2.30.4)
|
2007-01-10 18:03:46 +00:00
|
|
|
#
|
2010-01-18 14:31:23 +00:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-06 00:01:59 +00:00
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
Name: gedit
|
2010-09-28 19:26:00 +00:00
|
|
|
Version: 2.30.4
|
2010-08-06 11:35:14 +00:00
|
|
|
Release: 1
|
2010-03-19 08:12:12 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Summary: The Editor for the GNOME 2.x Desktop
|
|
|
|
Url: http://www.gnome.org
|
|
|
|
Group: Productivity/Text/Editors
|
|
|
|
Source: ftp://ftp.gnome.org/pub/gnome/sources/gedit/2.25/%{name}-%{version}.tar.bz2
|
|
|
|
# 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:11 +00:00
|
|
|
BuildRequires: gconf2-devel
|
2010-03-19 08:12:12 +00:00
|
|
|
BuildRequires: gettext
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: gtksourceview-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: iso-codes-devel
|
2008-11-03 17:09:42 +00:00
|
|
|
BuildRequires: python
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-gobject2-devel
|
|
|
|
BuildRequires: python-gtk-devel
|
|
|
|
BuildRequires: python-gtksourceview-devel
|
2009-03-26 23:13:14 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-08-29 22:04:41 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2010-03-19 08:12:12 +00:00
|
|
|
Requires: %{name}-lang = %{version}
|
|
|
|
Requires: python-gnome
|
|
|
|
Requires: python-gobject2
|
|
|
|
Requires: python-gtk
|
|
|
|
Requires: python-gtksourceview
|
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
|
2007-01-10 18:03:46 +00:00
|
|
|
%gconf_schemas_prereq
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gedit is a small, fast, and reliable editor for the GNOME 2.x Desktop.
|
|
|
|
|
|
|
|
%package devel
|
2010-03-19 08:12:11 +00:00
|
|
|
License: GPLv2+
|
2007-01-10 18:03:46 +00:00
|
|
|
Summary: The Editor for the GNOME 2.x Desktop
|
2010-03-05 08:50:54 +00:00
|
|
|
Group: Productivity/Text/Editors
|
2010-03-19 08:12:12 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: gtksourceview-devel
|
2010-03-05 08:50:54 +00:00
|
|
|
Provides: gedit2-devel = %{version}
|
|
|
|
Obsoletes: gedit2-devel < %{version}
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Gedit is a small, fast, and reliable editor for the GNOME 2.x Desktop.
|
|
|
|
|
|
|
|
%package doc
|
2010-03-19 08:12:11 +00:00
|
|
|
License: GPLv2+
|
2007-04-03 19:24:18 +00:00
|
|
|
Summary: Additional documentation of the Editor for the GNOME 2.x Desktop
|
2010-03-05 08:50:54 +00:00
|
|
|
Group: Productivity/Text/Editors
|
2008-08-15 21:19:54 +00:00
|
|
|
Requires: gtk-doc
|
2007-01-10 18:03:46 +00:00
|
|
|
|
|
|
|
%description doc
|
2010-01-15 01:31:13 +00:00
|
|
|
This package contains additional documentation for Gedit (a small, fast,
|
2007-04-03 19:24:18 +00:00
|
|
|
and reliable editor for the GNOME 2.x Desktop).
|
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 \
|
|
|
|
--disable-scrollkeeper \
|
|
|
|
--enable-python
|
2007-01-10 18:03:46 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2007-04-27 14:44:31 +00:00
|
|
|
%makeinstall
|
2010-01-15 01:31:13 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/la/LC_MESSAGES/*
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1120
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
|
|
%endif
|
|
|
|
%suse_update_desktop_file -N gedit -G "Text Editor" gedit TextEditor
|
2007-01-10 18:03:46 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
%find_gconf_schemas
|
2010-03-19 08:12:12 +00:00
|
|
|
rm %{buildroot}%{_libdir}/*/*/*.*a
|
|
|
|
%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
|
|
|
|
|
|
|
%pre -f %{name}.schemas_pre
|
2009-07-31 17:20:00 +00:00
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
|
2010-01-15 01:31:13 +00:00
|
|
|
%files -f %{name}.schemas_list
|
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
|
2007-01-10 18:03:46 +00:00
|
|
|
%{_bindir}/gedit
|
|
|
|
%{_bindir}/gnome-text-editor
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/gedit-2
|
|
|
|
%{_libdir}/gedit-2
|
2009-07-31 17:20:00 +00:00
|
|
|
%{_libexecdir}/gedit-2
|
2007-01-10 18:03:46 +00:00
|
|
|
%doc %{_mandir}/man1/gedit*
|
|
|
|
|
2007-08-09 17:00:27 +00:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-01-10 18:03:46 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_datadir}/gtk-doc/html/gedit
|
2008-02-01 20:30:49 +00:00
|
|
|
|
2007-03-12 23:44:54 +00:00
|
|
|
%changelog
|