1 |
%define build_with_python 1 |
2 |
|
3 |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
4 |
|
5 |
Summary: Small but powerful text editor for GNOME |
6 |
Name: gedit |
7 |
Version: 3.9.4 |
8 |
Release: %mkrel 1 |
9 |
License: GPLv2+ |
10 |
Group: Editors |
11 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
12 |
URL: http://www.gnome.org/projects/gedit/ |
13 |
BuildRequires: pkgconfig(enchant) >= 1.2.0 |
14 |
BuildRequires: pkgconfig(gio-2.0) >= 2.26.0 |
15 |
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.25.5 |
16 |
BuildRequires: pkgconfig(glib-2.0) >= 2.37.5 |
17 |
BuildRequires: pkgconfig(gnome-doc-utils) >= 0.9.0 |
18 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.3 |
19 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
20 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.9.9 |
21 |
BuildRequires: pkgconfig(gtk-doc) >= 1.0 |
22 |
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.9.4 |
23 |
BuildRequires: pkgconfig(ice) |
24 |
BuildRequires: pkgconfig(iso-codes) >= 0.35 |
25 |
BuildRequires: pkgconfig(libpeas-1.0) >= 1.7.0 |
26 |
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.7.0 |
27 |
BuildRequires: pkgconfig(libsoup-2.4) |
28 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
29 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
30 |
BuildRequires: pkgconfig(x11) |
31 |
BuildRequires: dbus-glib-devel |
32 |
BuildRequires: libattr-devel |
33 |
BuildRequires: scrollkeeper |
34 |
BuildRequires: intltool |
35 |
BuildRequires: itstool |
36 |
BuildRequires: pkgconfig(zeitgeist-2.0) >= 0.9.1 |
37 |
%if %{build_with_python} |
38 |
BuildRequires: pkgconfig(pygobject-3.0) >= 2.90.2 |
39 |
%endif |
40 |
|
41 |
BuildRequires: desktop-file-utils |
42 |
Obsoletes: %{_lib}gedit0 < 3.4.2 |
43 |
|
44 |
# for autoreconf: |
45 |
BuildRequires: intltool |
46 |
BuildRequires: gtk-doc |
47 |
BuildRequires: gettext-devel |
48 |
BuildRequires: gnome-common |
49 |
BuildRequires: yelp-tools |
50 |
|
51 |
%description |
52 |
gEdit is a small but powerful text editor designed expressly |
53 |
for GNOME. |
54 |
|
55 |
It includes such features as split-screen mode, a plugin |
56 |
API, which allows gEdit to be extended to support many |
57 |
features while remaining small at its core, multiple |
58 |
document editing through the use of a 'tabbed' notebook and |
59 |
many more functions. |
60 |
|
61 |
%package zeitgeist |
62 |
Summary: Zeitgeist plugin for gedit |
63 |
Group: Editors |
64 |
Requires: %{name} = %{version}-%{release} |
65 |
|
66 |
%description zeitgeist |
67 |
This packages brings the Zeitgeist dataprovider - a plugin that logs |
68 |
access and leave event for documents used with gedit. |
69 |
|
70 |
%package devel |
71 |
Group: Development/C |
72 |
Summary: Headers for writing gEdit plugins |
73 |
|
74 |
%description devel |
75 |
gEdit is a small but powerful text editor designed expressly |
76 |
for GNOME. |
77 |
|
78 |
It includes such features as split-screen mode, a plugin |
79 |
API, which allows gEdit to be extended to support many |
80 |
features while remaining small at its core, multiple |
81 |
document editing through the use of a 'tabbed' notebook and |
82 |
many more functions. |
83 |
|
84 |
Install this if you want to build plugins that use gEdit's API. |
85 |
|
86 |
%prep |
87 |
%setup -q |
88 |
|
89 |
%build |
90 |
%configure2_5x \ |
91 |
--enable-gtk-doc \ |
92 |
--enable-introspection=yes \ |
93 |
--disable-updater \ |
94 |
--enable-gvfs-metadata \ |
95 |
--enable-zeitgeist \ |
96 |
%if %{build_with_python} |
97 |
--enable-python |
98 |
%else |
99 |
--disable-python |
100 |
%endif |
101 |
|
102 |
%make |
103 |
|
104 |
%install |
105 |
%makeinstall_std |
106 |
|
107 |
#cleanup |
108 |
rm -rf %buildroot/var |
109 |
|
110 |
%find_lang %{name} --with-gnome --with-help |
111 |
|
112 |
desktop-file-install --dir %{buildroot}%{_datadir}/applications \ |
113 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
114 |
|
115 |
# remove .la files |
116 |
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
117 |
|
118 |
%files -f %{name}.lang |
119 |
%doc README AUTHORS NEWS MAINTAINERS |
120 |
%{_datadir}/gedit |
121 |
%{_datadir}/applications/gedit.desktop |
122 |
%{_libdir}/gedit |
123 |
%exclude %{_libdir}/gedit/plugins/zeitgeist.plugin |
124 |
%exclude %{_libdir}/gedit/plugins/libzeitgeistplugin.so |
125 |
%{_libexecdir}/gedit |
126 |
%{_bindir}/* |
127 |
%{_datadir}/GConf/gsettings/gedit.* |
128 |
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.* |
129 |
%{_datadir}/dbus-1/services/org.gnome.gedit.service |
130 |
%{_mandir}/man1/gedit.1* |
131 |
|
132 |
%files zeitgeist |
133 |
%{_libdir}/gedit/plugins/zeitgeist.plugin |
134 |
%{_libdir}/gedit/plugins/libzeitgeistplugin.so |
135 |
|
136 |
%files devel |
137 |
%doc %{_datadir}/gtk-doc/html/* |
138 |
%{_includedir}/* |
139 |
%{_libdir}/pkgconfig/* |