]>
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.8.0 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: X11/Applications/Editors | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/3.8/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: dc8a377ef1f48e6303d87cfb7c246524 | |
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: enchant-devel >= 1.2.0 | |
15 | BuildRequires: gettext-devel | |
16 | BuildRequires: glib2-devel >= 1:2.35.4 | |
17 | BuildRequires: gnome-common >= 2.24.0 | |
18 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
19 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
20 | BuildRequires: gsettings-desktop-schemas-devel >= 3.2.0 | |
21 | BuildRequires: gtk+3-devel >= 3.7.10 | |
22 | BuildRequires: gtksourceview3-devel >= 3.2.0 | |
23 | BuildRequires: intltool >= 0.40.0 | |
24 | BuildRequires: iso-codes >= 0.35 | |
25 | BuildRequires: libpeas-devel >= 1.7.0 | |
26 | BuildRequires: libpeas-gtk-devel >= 1.7.0 | |
27 | BuildRequires: libsoup-devel | |
28 | BuildRequires: libtool >= 2:2.2.6 | |
29 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
30 | BuildRequires: libzeitgeist-devel >= 0.3.2 | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: python3-devel >= 3.2.3 | |
33 | BuildRequires: python3-pygobject3-devel >= 3.0.0 | |
34 | BuildRequires: rpm-pythonprov | |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
36 | BuildRequires: rpmbuild(macros) >= 1.601 | |
37 | BuildRequires: sed >= 4.0 | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
40 | BuildRequires: yelp-tools | |
41 | Requires(post,postun): desktop-file-utils | |
42 | Requires(post,postun): glib2 >= 1:2.35.4 | |
43 | Requires: gsettings-desktop-schemas >= 3.2.0 | |
44 | Requires: gtk+3 >= 3.7.10 | |
45 | Requires: iso-codes >= 0.35 | |
46 | Requires: libpeas-loader-python3 >= 1.7.0 | |
47 | Requires: python3-pycairo | |
48 | Requires: python3-pygobject3 >= 3.0.0 | |
49 | Obsoletes: gedit-plugins < 2.3.3-2 | |
50 | # sr@Latn vs. sr@latin | |
51 | Obsoletes: gedit2 | |
52 | Conflicts: glibc-misc < 6:2.7 | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %define skip_post_check_so libgedit-private.so.0.0.0 | |
56 | ||
57 | %description | |
58 | gedit is a small but powerful text editor for GTK+ and/or GNOME. It | |
59 | includes such features as split-screen mode, a plugin API, which | |
60 | allows gedit to be extended to support many features while remaining | |
61 | small at its core, multiple document editing and many more functions. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME. | |
65 | Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek", | |
66 | który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości, | |
67 | nie zwiększając rozmiarów samego programu, możliwość edycji wielu | |
68 | dokumentów naraz i wiele innych. | |
69 | ||
70 | %package devel | |
71 | Summary: gedit header files | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe gedit | |
73 | Group: X11/Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Requires: gtksourceview3-devel >= 3.2.0 | |
76 | Requires: libpeas-devel >= 1.7.0 | |
77 | Requires: libpeas-gtk-devel >= 1.7.0 | |
78 | Obsoletes: gedit2-devel | |
79 | ||
80 | %description devel | |
81 | gedit header files. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe gedit. | |
85 | ||
86 | %package apidocs | |
87 | Summary: gedit API documentation | |
88 | Summary(pl.UTF-8): Dokumentacja API gedit | |
89 | Group: Documentation | |
90 | Requires: gtk-doc-common | |
91 | Obsoletes: gedit2-apidocs | |
92 | ||
93 | %description apidocs | |
94 | gedit API documentation. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API gedit. | |
98 | ||
99 | %prep | |
100 | %setup -q | |
101 | ||
102 | %build | |
103 | %{__gtkdocize} | |
104 | %{__libtoolize} | |
105 | %{__intltoolize} | |
106 | %{__aclocal} -I m4 -I libgd | |
107 | %{__autoconf} | |
108 | %{__autoheader} | |
109 | %{__automake} | |
110 | %configure \ | |
111 | --disable-silent-rules \ | |
112 | --disable-updater \ | |
113 | --enable-gtk-doc \ | |
114 | --disable-static \ | |
115 | --with-html-dir=%{_gtkdocdir} | |
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.la \ | |
125 | $RPM_BUILD_ROOT%{_libdir}/gedit/*.la | |
126 | ||
127 | %py_postclean | |
128 | ||
129 | %find_lang gedit --with-gnome | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post | |
135 | %update_desktop_database_post | |
136 | %glib_compile_schemas | |
137 | ||
138 | %postun | |
139 | %update_desktop_database_postun | |
140 | %glib_compile_schemas | |
141 | ||
142 | %files -f gedit.lang | |
143 | %defattr(644,root,root,755) | |
144 | %doc README ChangeLog AUTHORS | |
145 | %attr(755,root,root) %{_bindir}/gedit | |
146 | %attr(755,root,root) %{_bindir}/gnome-text-editor | |
147 | %dir %{_libdir}/gedit | |
148 | %attr(755,root,root) %{_libdir}/gedit/libgedit-private.so | |
149 | %dir %{_libdir}/gedit/plugins | |
150 | %attr(755,root,root) %{_libdir}/gedit/gedit-bugreport.sh | |
151 | %attr(755,root,root) %{_libdir}/gedit/plugins/*.so | |
152 | %{_libdir}/gedit/plugins/*.plugin | |
153 | %{_libdir}/gedit/plugins/externaltools | |
154 | %{_libdir}/gedit/plugins/pythonconsole | |
155 | %{_libdir}/gedit/plugins/snippets | |
156 | %{_libdir}/gedit/plugins/quickopen | |
157 | %dir %{_libdir}/gedit/girepository-1.0 | |
158 | %{_libdir}/gedit/girepository-1.0/Gedit-3.0.typelib | |
159 | %{_datadir}/gedit | |
160 | %{_datadir}/GConf/gsettings/gedit.convert | |
161 | %{_datadir}/dbus-1/services/org.gnome.gedit.service | |
162 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.enums.xml | |
163 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.gschema.xml | |
164 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.externaltools.gschema.xml | |
165 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.enums.xml | |
166 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml | |
167 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.pythonconsole.gschema.xml | |
168 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.enums.xml | |
169 | %{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml | |
170 | %{_desktopdir}/gedit.desktop | |
171 | %{_mandir}/man1/gedit.1* | |
172 | %{py3_sitedir}/gi/overrides/*.py | |
173 | %{py3_sitedir}/gi/overrides/__pycache__/*.py[co] | |
174 | ||
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
177 | %{_includedir}/gedit-3.0 | |
178 | %{_pkgconfigdir}/gedit.pc | |
179 | ||
180 | %files apidocs | |
181 | %defattr(644,root,root,755) | |
182 | %{_gtkdocdir}/gedit |