]>
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: gedit2 | |
4 | Version: 2.30.4 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: X11/Applications/Editors | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/2.30/gedit-%{version}.tar.bz2 | |
9 | # Source0-md5: e1eecb0a92a1a363b3d375ec5ac0fb3b | |
10 | URL: http://www.gnome.org/projects/gedit/ | |
11 | BuildRequires: GConf2-devel >= 2.24.0 | |
12 | BuildRequires: attr-devel | |
13 | BuildRequires: autoconf >= 2.64 | |
14 | BuildRequires: automake >= 1:1.10 | |
15 | BuildRequires: docbook-dtd412-xml | |
16 | BuildRequires: enchant-devel >= 1.2.0 | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: glib2-devel >= 1:2.24.0 | |
19 | BuildRequires: gnome-common >= 2.24.0 | |
20 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
21 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
22 | BuildRequires: gtk-doc >= 1.8 | |
23 | BuildRequires: gtksourceview2-devel >= 2.10.0 | |
24 | BuildRequires: intltool >= 0.40.0 | |
25 | BuildRequires: iso-codes >= 0.35 | |
26 | BuildRequires: libsoup-devel | |
27 | BuildRequires: libtool | |
28 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: python-devel >= 2.3 | |
31 | BuildRequires: python-gtksourceview2-devel >= 2.10.0 | |
32 | BuildRequires: python-pygobject-devel >= 2.16.0 | |
33 | BuildRequires: python-pygtk-devel >= 2:2.12.0 | |
34 | BuildRequires: rpm-pythonprov | |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
36 | BuildRequires: rpmbuild(macros) >= 1.197 | |
37 | BuildRequires: scrollkeeper >= 0.3.12 | |
38 | BuildRequires: sed >= 4.0 | |
39 | BuildRequires: xorg-lib-libSM-devel | |
40 | Requires(post,postun): desktop-file-utils | |
41 | Requires(post,postun): scrollkeeper | |
42 | Requires(post,preun): GConf2 | |
43 | Requires: python-gtksourceview2 >= 2.10.0 | |
44 | Requires: python-pygobject >= 2.16.0 | |
45 | Suggests: python-vte | |
46 | Obsoletes: gedit-devel | |
47 | Obsoletes: gedit-plugins < 2.3.3-2 | |
48 | # sr@Latn vs. sr@latin | |
49 | Conflicts: glibc-misc < 6:2.7 | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | gedit is a small but powerful text editor for GTK+ and/or GNOME. It | |
54 | includes such features as split-screen mode, a plugin API, which | |
55 | allows gedit to be extended to support many features while remaining | |
56 | small at its core, multiple document editing and many more functions. | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME. | |
60 | Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek", | |
61 | który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości, | |
62 | nie zwiększając rozmiarów samego programu, możliwość edycji wielu | |
63 | dokumentów naraz i wiele innych. | |
64 | ||
65 | %package devel | |
66 | Summary: gedit header files | |
67 | Summary(pl.UTF-8): Pliki nagłówkowe gedit | |
68 | Group: X11/Development/Libraries | |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: gtksourceview2-devel >= 2.9.7 | |
71 | ||
72 | %description devel | |
73 | gedit header files. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe gedit. | |
77 | ||
78 | %package apidocs | |
79 | Summary: gedit API documentation | |
80 | Summary(pl.UTF-8): Dokumentacja API gedit | |
81 | Group: Documentation | |
82 | Requires: gtk-doc-common | |
83 | ||
84 | %description apidocs | |
85 | gedit API documentation. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API gedit. | |
89 | ||
90 | %prep | |
91 | %setup -q -n gedit-%{version} | |
92 | sed -i 's/^en@shaw//' po/LINGUAS | |
93 | rm po/en@shaw.po | |
94 | ||
95 | sed -i 's/codegen.py/codegen.pyc/' configure.ac | |
96 | sed -i 's/h2def.py/h2def.pyc/' configure.ac | |
97 | ||
98 | %build | |
99 | %{__gtkdocize} | |
100 | %{__libtoolize} | |
101 | %{__intltoolize} | |
102 | %{__aclocal} -I m4 | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | %configure \ | |
107 | --disable-schemas-install \ | |
108 | --disable-scrollkeeper \ | |
109 | --disable-silent-rules \ | |
110 | --enable-python \ | |
111 | --enable-gtk-doc \ | |
112 | --with-html-dir=%{_gtkdocdir} | |
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %{__make} install \ | |
119 | DESTDIR=$RPM_BUILD_ROOT \ | |
120 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
121 | ||
122 | # Remove obsoleted *.la files | |
123 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/{plugins,plugin-loaders}/*.la | |
124 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.py | |
125 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.py | |
126 | ||
127 | %find_lang gedit --with-gnome --with-omf | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post | |
133 | /sbin/ldconfig | |
134 | %gconf_schema_install gedit-file-browser.schemas | |
135 | %gconf_schema_install gedit.schemas | |
136 | %scrollkeeper_update_post | |
137 | %update_desktop_database_post | |
138 | ||
139 | %preun | |
140 | %gconf_schema_uninstall gedit-file-browser.schemas | |
141 | %gconf_schema_uninstall gedit.schemas | |
142 | ||
143 | %postun | |
144 | /sbin/ldconfig | |
145 | %scrollkeeper_update_postun | |
146 | %update_desktop_database_postun | |
147 | ||
148 | %files -f gedit.lang | |
149 | %defattr(644,root,root,755) | |
150 | %doc README ChangeLog AUTHORS | |
151 | %{_sysconfdir}/gconf/schemas/gedit.schemas | |
152 | %{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas | |
153 | %attr(755,root,root) %{_bindir}/gedit | |
154 | %attr(755,root,root) %{_bindir}/gnome-text-editor | |
155 | %dir %{_libdir}/gedit-2 | |
156 | %dir %{_libdir}/gedit-2/plugin-loaders | |
157 | %attr(755,root,root) %{_libdir}/gedit-2/plugin-loaders/*.so | |
158 | %dir %{_libdir}/gedit-2/plugins | |
159 | %dir %{_libdir}/gedit-2/plugins/externaltools | |
160 | %dir %{_libdir}/gedit-2/plugins/pythonconsole | |
161 | %dir %{_libdir}/gedit-2/plugins/quickopen | |
162 | %dir %{_libdir}/gedit-2/plugins/snippets | |
163 | %attr(755,root,root) %{_libdir}/gedit-2/gedit-bugreport.sh | |
164 | %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so | |
165 | %{_libdir}/gedit-2/plugins/externaltools/*.py[co] | |
166 | %{_libdir}/gedit-2/plugins/*.gedit-plugin | |
167 | %{_libdir}/gedit-2/plugins/pythonconsole/*.py[co] | |
168 | %{_libdir}/gedit-2/plugins/quickopen/*.py[co] | |
169 | %{_libdir}/gedit-2/plugins/snippets/*.py[co] | |
170 | %{_datadir}/gedit-2 | |
171 | %{_desktopdir}/gedit.desktop | |
172 | %{_mandir}/man1/gedit.1* | |
173 | ||
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
176 | %{_includedir}/gedit-2.20 | |
177 | %{_pkgconfigdir}/gedit-2.20.pc | |
178 | ||
179 | %files apidocs | |
180 | %defattr(644,root,root,755) | |
181 | %{_gtkdocdir}/gedit |