]>
Commit | Line | Data |
---|---|---|
1 | Summary: gedit - small but powerful text editor for X Window | |
2 | Summary(pl.UTF-8): gedit - mały ale potężny edytor tekstu dla X Window | |
3 | Name: gedit | |
4 | Version: 3.22.1 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Editors | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/3.22/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: b3ee39faa2f905c83cb158a9b4d3fb44 | |
10 | URL: http://www.gnome.org/projects/gedit/ | |
11 | BuildRequires: autoconf >= 2.63.2 | |
12 | BuildRequires: automake >= 1:1.11 | |
13 | BuildRequires: docbook-dtd412-xml | |
14 | BuildRequires: gettext-tools >= 0.18 | |
15 | BuildRequires: glib2-devel >= 1:2.44.0 | |
16 | BuildRequires: gnome-common >= 2.24.0 | |
17 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
18 | BuildRequires: gspell-devel >= 0.2.5 | |
19 | BuildRequires: gsettings-desktop-schemas-devel >= 3.2.0 | |
20 | BuildRequires: gtk+3-devel >= 3.22.0 | |
21 | BuildRequires: gtk-doc >= 1.0 | |
22 | BuildRequires: gtksourceview3-devel >= 3.22 | |
23 | BuildRequires: intltool >= 0.50.1 | |
24 | BuildRequires: iso-codes >= 0.35 | |
25 | BuildRequires: libpeas-devel >= 1.14.1 | |
26 | BuildRequires: libpeas-gtk-devel >= 1.14.1 | |
27 | BuildRequires: libtool >= 2:2.2.6 | |
28 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: python3-devel >= 1:3.2.3 | |
31 | BuildRequires: python3-pygobject3-devel >= 3.0.0 | |
32 | BuildRequires: rpm-pythonprov | |
33 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
34 | BuildRequires: rpmbuild(macros) >= 1.601 | |
35 | BuildRequires: sed >= 4.0 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: vala >= 2:0.25.1 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xz | |
40 | BuildRequires: yelp-tools | |
41 | Requires(post,postun): desktop-file-utils | |
42 | Requires(post,postun): glib2 >= 1:2.44.0 | |
43 | Requires(post,postun): gtk-update-icon-cache | |
44 | Requires: glib2 >= 1:2.44.0 | |
45 | Requires: gspell >= 0.2.5 | |
46 | Requires: gsettings-desktop-schemas >= 3.2.0 | |
47 | Requires: gtk+3 >= 3.22.0 | |
48 | Requires: gtksourceview3 >= 3.22 | |
49 | Requires: hicolor-icon-theme | |
50 | Requires: iso-codes >= 0.35 | |
51 | Requires: libpeas-loader-python3 >= 1.14.1 | |
52 | Requires: libxml2 >= 1:2.6.31 | |
53 | Requires: python3-libs >= 1:3.2.3 | |
54 | Requires: python3-pycairo | |
55 | Requires: python3-pygobject3 >= 3.0.0 | |
56 | Obsoletes: gedit-plugins < 2.3.3-2 | |
57 | # sr@Latn vs. sr@latin | |
58 | Obsoletes: gedit2 | |
59 | Conflicts: glibc-misc < 6:2.7 | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %define skip_post_check_so libgedit-private.so.0.0.0 | |
63 | ||
64 | %description | |
65 | gedit is a small but powerful text editor for GTK+ and/or GNOME. It | |
66 | includes such features as split-screen mode, a plugin API, which | |
67 | allows gedit to be extended to support many features while remaining | |
68 | small at its core, multiple document editing and many more functions. | |
69 | ||
70 | %description -l pl.UTF-8 | |
71 | gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME. | |
72 | Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek", | |
73 | który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości, | |
74 | nie zwiększając rozmiarów samego programu, możliwość edycji wielu | |
75 | dokumentów naraz i wiele innych. | |
76 | ||
77 | %package devel | |
78 | Summary: gedit header files | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe gedit | |
80 | Group: X11/Development/Libraries | |
81 | # doesn't require base | |
82 | Requires: glib2-devel >= 1:2.44.0 | |
83 | Requires: gtk+3-devel >= 3.22.0 | |
84 | Requires: gtksourceview3-devel >= 3.22 | |
85 | Requires: libpeas-devel >= 1.14.1 | |
86 | Requires: libpeas-gtk-devel >= 1.14.1 | |
87 | Obsoletes: gedit2-devel | |
88 | ||
89 | %description devel | |
90 | gedit header files. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Pliki nagłówkowe gedit. | |
94 | ||
95 | %package apidocs | |
96 | Summary: gedit API documentation | |
97 | Summary(pl.UTF-8): Dokumentacja API gedit | |
98 | Group: Documentation | |
99 | Requires: gtk-doc-common | |
100 | Obsoletes: gedit2-apidocs | |
101 | %if "%{_rpmversion}" >= "5" | |
102 | BuildArch: noarch | |
103 | %endif | |
104 | ||
105 | %description apidocs | |
106 | gedit API documentation. | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API gedit. | |
110 | ||
111 | %package -n vala-gedit | |
112 | Summary: gedit API for Vala language | |
113 | Summary(pl.UTF-8): API gedit dla języka Vala | |
114 | Group: Development/Libraries | |
115 | Requires: %{name}-devel = %{version}-%{release} | |
116 | Requires: vala >= 2:0.25.1 | |
117 | %if "%{_rpmversion}" >= "5" | |
118 | BuildArch: noarch | |
119 | %endif | |
120 | ||
121 | %description -n vala-gedit | |
122 | gedit API for Vala language. | |
123 | ||
124 | %description -n vala-gedit -l pl.UTF-8 | |
125 | API gedit dla języka Vala. | |
126 | ||
127 | %prep | |
128 | %setup -q | |
129 | ||
130 | %build | |
131 | %{__gtkdocize} | |
132 | %{__libtoolize} | |
133 | %{__intltoolize} | |
134 | %{__aclocal} -I m4 -I libgd | |
135 | %{__autoconf} | |
136 | %{__autoheader} | |
137 | %{__automake} | |
138 | %configure \ | |
139 | --disable-silent-rules \ | |
140 | --disable-updater \ | |
141 | --enable-gtk-doc \ | |
142 | --with-html-dir=%{_gtkdocdir} | |
143 | %{__make} | |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.la \ | |
152 | $RPM_BUILD_ROOT%{_libdir}/gedit/*.la | |
153 | ||
154 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ln | |
155 | ||
156 | %find_lang gedit --with-gnome | |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %post | |
162 | %update_icon_cache hicolor | |
163 | %update_desktop_database_post | |
164 | %glib_compile_schemas | |
165 | ||
166 | %postun | |
167 | %update_icon_cache hicolor | |
168 | %update_desktop_database_postun | |
169 | %glib_compile_schemas | |
170 | ||
171 | %files -f gedit.lang | |
172 | %defattr(644,root,root,755) | |
173 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README | |
174 | %attr(755,root,root) %{_bindir}/gedit | |
175 | %attr(755,root,root) %{_bindir}/gnome-text-editor | |
176 | %dir %{_libdir}/gedit | |
177 | %attr(755,root,root) %{_libdir}/gedit/libgedit.so | |
178 | %dir %{_libdir}/gedit/plugins | |
179 | %attr(755,root,root) %{_libdir}/gedit/gedit-bugreport.sh | |
180 | %attr(755,root,root) %{_libdir}/gedit/plugins/*.so | |
181 | %{_libdir}/gedit/plugins/*.plugin | |
182 | %{_libdir}/gedit/plugins/externaltools | |
183 | %{_libdir}/gedit/plugins/pythonconsole | |
184 | %{_libdir}/gedit/plugins/snippets | |
185 | %{_libdir}/gedit/plugins/quickopen | |
186 | %dir %{_libdir}/gedit/girepository-1.0 | |
187 | %{_libdir}/gedit/girepository-1.0/Gedit-3.0.typelib | |
188 | %{_datadir}/appdata/org.gnome.gedit.appdata.xml | |
189 | %{_datadir}/gedit | |
190 | %{_datadir}/GConf/gsettings/gedit.convert | |
191 | %{_datadir}/dbus-1/services/org.gnome.gedit.service | |
192 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.enums.xml | |
193 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.gschema.xml | |
194 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.externaltools.gschema.xml | |
195 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.enums.xml | |
196 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml | |
197 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.pythonconsole.gschema.xml | |
198 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.enums.xml | |
199 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml | |
200 | %{_desktopdir}/org.gnome.gedit.desktop | |
201 | %{_iconsdir}/hicolor/*/apps/gedit.png | |
202 | %{_iconsdir}/hicolor/symbolic/apps/gedit-symbolic.svg | |
203 | %{_mandir}/man1/gedit.1* | |
204 | %{py3_sitedir}/gi/overrides/*.py | |
205 | %{py3_sitedir}/gi/overrides/__pycache__/*.py[co] | |
206 | ||
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
209 | %{_includedir}/gedit-3.14 | |
210 | %{_pkgconfigdir}/gedit.pc | |
211 | ||
212 | %files apidocs | |
213 | %defattr(644,root,root,755) | |
214 | %{_gtkdocdir}/gedit | |
215 | ||
216 | %files -n vala-gedit | |
217 | %defattr(644,root,root,755) | |
218 | %{_datadir}/vala/vapi/gedit.deps | |
219 | %{_datadir}/vala/vapi/gedit.vapi |