gedit/gedit.spec

158 lines
4.2 KiB
RPMSpec

#
# spec file for package gedit (Version 2.27.5)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gedit
BuildRequires: enchant-devel
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: gconf2-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk-doc
BuildRequires: gtksourceview-devel
BuildRequires: intltool
BuildRequires: iso-codes-devel
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-gobject2-devel
BuildRequires: python-gtk-devel
BuildRequires: python-gtksourceview-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
License: GPL v2 or later
Group: Productivity/Editors/Other
Version: 2.27.5
Release: 1
Summary: The Editor for the GNOME 2.x Desktop
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
Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: gedit2
Obsoletes: gedit2
Requires: python-gnome python-gobject2 python-gtk python-gtksourceview
Requires: %{name}-lang = %{version}
%gconf_schemas_prereq
%description
Gedit is a small, fast, and reliable editor for the GNOME 2.x Desktop.
Authors:
--------
Chema Celorio <chema@ximian.com>
Paolo Maggi <maggi@athena.polito.it>
%package devel
License: GPL v2 or later
Summary: The Editor for the GNOME 2.x Desktop
Group: Productivity/Editors/Other
Provides: gedit2-devel
Obsoletes: gedit2-devel
Requires: %{name} = %{version}
Requires: libgnomeui-devel libglade2-devel libgnomeprintui-devel gtksourceview-devel
%description devel
Gedit is a small, fast, and reliable editor for the GNOME 2.x Desktop.
Authors:
--------
Chema Celorio <chema@ximian.com>
Paolo Maggi <maggi@athena.polito.it>
%package doc
License: GPL v2 or later
Summary: Additional documentation of the Editor for the GNOME 2.x Desktop
Group: Productivity/Editors/Other
Requires: gtk-doc
%description doc
This package contains additional documenation for Gedit (a small, fast,
and reliable editor for the GNOME 2.x Desktop).
Authors:
--------
Chema Celorio <chema@ximian.com>
Paolo Maggi <maggi@athena.polito.it>
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p0
%build
%configure \
--disable-scrollkeeper \
--enable-python
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -N gedit -G "Text Editor" gedit TextEditor
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS BUGS ChangeLog COPYING MAINTAINERS NEWS README
%{_bindir}/gedit
%{_bindir}/gnome-text-editor
%{_datadir}/applications/*.desktop
%{_datadir}/gedit-2
%{_libdir}/gedit-2
%{_libexecdir}/gedit-2
%doc %{_mandir}/man1/gedit*
%files lang -f %{name}.lang
%defattr(-, root, root)
%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/la/LC_MESSAGES/*
%endif
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gedit
%changelog