gedit/gedit.spec

137 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gedit (Version 2.29.8)
#
# Copyright (c) 2010 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: GPLv2+
Group: Productivity/Text/Editors
Version: 2.29.8
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 = %{version}
Obsoletes: gedit2 < %{version}
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.
%package devel
License: GPLv2+
Summary: The Editor for the GNOME 2.x Desktop
Group: Productivity/Text/Editors
Provides: gedit2-devel = %{version}
Obsoletes: gedit2-devel < %{version}
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.
%package doc
License: GPLv2+
Summary: Additional documentation of the Editor for the GNOME 2.x Desktop
Group: Productivity/Text/Editors
Requires: gtk-doc
%description doc
This package contains additional documentation for Gedit (a small, fast,
and reliable editor for the GNOME 2.x Desktop).
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p0
%build
%configure \
--disable-scrollkeeper \
--enable-python
make %{?jobs:-j%jobs}
%install
%makeinstall
%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
%find_lang %{name}
%find_gconf_schemas
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}.schemas_list
%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
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gedit
%changelog