]>
Commit | Line | Data |
---|---|---|
ae858907 | 1 | Summary: gedit - small but powerful text editor for X Window |
df86aace | 2 | Summary(pl.UTF-8): gedit - mały ale potężny edytor tekstu dla X Window |
80ed9b49 | 3 | Name: gedit2 |
1c52490e | 4 | Version: 2.22.0 |
fbd38f20 | 5 | Release: 2 |
bb0838aa | 6 | License: GPL v2 |
80ed9b49 | 7 | Group: X11/Applications/Editors |
1c52490e PZ |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/2.22/gedit-%{version}.tar.bz2 |
9 | # Source0-md5: ce2e485d7639ed09a3e3b5a791df805a | |
80ed9b49 | 10 | URL: http://gedit.sourceforge.net/ |
1c52490e | 11 | BuildRequires: GConf2-devel >= 2.22.0 |
cd992a89 | 12 | BuildRequires: ORBit2-devel >= 1:2.14.8 |
23e4f56b | 13 | BuildRequires: autoconf >= 2.59 |
80ed9b49 | 14 | BuildRequires: automake |
23e4f56b | 15 | BuildRequires: enchant-devel >= 1.2.0 |
36c65577 | 16 | BuildRequires: gettext-devel |
1c52490e | 17 | BuildRequires: glib2-devel >= 1:2.14.0 |
db246d31 MB |
18 | BuildRequires: gnome-common >= 2.20.0 |
19 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
1c52490e PZ |
20 | BuildRequires: gnome-menus-devel >= 2.22.0 |
21 | BuildRequires: gnome-vfs2-devel >= 2.22.0 | |
23e4f56b | 22 | BuildRequires: gtk-doc >= 1.8 |
db246d31 | 23 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
fbd38f20 | 24 | BuildRequires: gtksourceview2-devel >= 2.2.0 |
db246d31 | 25 | BuildRequires: intltool >= 0.36.2 |
23e4f56b | 26 | BuildRequires: iso-codes |
cd992a89 | 27 | BuildRequires: libglade2-devel >= 1:2.6.2 |
1c52490e | 28 | BuildRequires: libgnomeui-devel >= 2.22.0 |
495241cd | 29 | BuildRequires: libtool |
e0458357 | 30 | BuildRequires: pkgconfig |
23e4f56b | 31 | BuildRequires: python-devel >= 2.3 |
fbd38f20 | 32 | BuildRequires: python-gtksourceview2-devel >= 2.2.0 |
7891376f | 33 | BuildRequires: rpm-build >= 4.1-10 |
dcb9f503 | 34 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
45db3807 | 35 | BuildRequires: rpmbuild(macros) >= 1.197 |
ca5c6566 | 36 | BuildRequires: scrollkeeper >= 0.3.12 |
dcb9f503 | 37 | BuildRequires: sed >= 4.0 |
23e4f56b | 38 | Requires(post,preun): GConf2 |
b2d6a8ec | 39 | Requires(post,postun): desktop-file-utils |
365c16a7 | 40 | Requires(post,postun): scrollkeeper |
1c52490e PZ |
41 | Requires: libgnomeui >= 2.22.0 |
42 | Requires: gnome-vfs2 >= 2.22.0 | |
fbd38f20 | 43 | Requires: python-gtksourceview2 >= 2.2.0 |
cd992a89 | 44 | Suggests: python-vte |
80ed9b49 | 45 | Obsoletes: gedit-devel |
ad6af051 | 46 | Obsoletes: gedit-plugins < 2.3.3-2 |
caa887cc | 47 | # sr@Latn vs. sr@latin |
48 | Conflicts: glibc-misc < 6:2.7 | |
35cda6d9 | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ed9b49 | 50 | |
80ed9b49 | 51 | %description |
ae858907 | 52 | gedit is a small but powerful text editor for GTK+ and/or GNOME. It |
80ed9b49 | 53 | includes such features as split-screen mode, a plugin API, which |
ae858907 | 54 | allows gedit to be extended to support many features while remaining |
80ed9b49 AF |
55 | small at its core, multiple document editing and many more functions. |
56 | ||
834687a5 JR |
57 | %description -l pl.UTF-8 |
58 | gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME. | |
80ed9b49 | 59 | Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek", |
834687a5 JR |
60 | który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości, |
61 | nie zwiększając rozmiarów samego programu, możliwość edycji wielu | |
62 | dokumentów naraz i wiele innych. | |
80ed9b49 | 63 | |
ec3c068c | 64 | %package devel |
ae858907 | 65 | Summary: gedit header files |
23e4f56b | 66 | Summary(pl.UTF-8): Pliki nagłówkowe gedit |
ec3c068c | 67 | Group: X11/Development/Libraries |
155dfaa5 | 68 | Requires: %{name} = %{version}-%{release} |
fbd38f20 | 69 | Requires: gtksourceview2-devel >= 2.2.0 |
cd992a89 | 70 | Requires: libglade2-devel >= 1:2.6.2 |
1c52490e | 71 | Requires: libgnomeui-devel >= 2.22.0 |
ec3c068c | 72 | |
73 | %description devel | |
dcb9f503 | 74 | gedit header files. |
ec3c068c | 75 | |
834687a5 JR |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe gedit. | |
ec3c068c | 78 | |
dcb9f503 MB |
79 | %package apidocs |
80 | Summary: gedit API documentation | |
81 | Summary(pl.UTF-8): Dokumentacja API gedit | |
82 | Group: Documentation | |
83 | Requires: gtk-doc-common | |
84 | ||
85 | %description apidocs | |
86 | gedit API documentation. | |
87 | ||
88 | %description apidocs -l pl.UTF-8 | |
89 | Dokumentacja API gedit. | |
90 | ||
80ed9b49 AF |
91 | %prep |
92 | %setup -q -n gedit-%{version} | |
4bfc49ad | 93 | sed -i 's/codegen.py/codegen.pyc/' configure.ac |
80ed9b49 | 94 | |
dcb9f503 MB |
95 | sed -i -e 's#sr\@Latn#sr\@latin#' po/LINGUAS |
96 | mv po/sr\@{Latn,latin}.po | |
97 | ||
80ed9b49 | 98 | %build |
59299744 | 99 | %{__gnome_doc_common} |
155dfaa5 | 100 | %{__libtoolize} |
45db3807 | 101 | %{__intltoolize} |
4bfc49ad | 102 | %{__aclocal} -I m4 |
155dfaa5 | 103 | %{__autoconf} |
104 | %{__automake} | |
105 | %configure \ | |
4bfc49ad | 106 | --disable-schemas-install \ |
107 | --disable-scrollkeeper \ | |
108 | --enable-python \ | |
2d248ee3 | 109 | --enable-gtk-doc \ |
dcb9f503 | 110 | --with-html-dir=%{_gtkdocdir} |
80ed9b49 AF |
111 | %{__make} |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
cd992a89 | 116 | %{__make} -j1 install \ |
ec3c068c | 117 | DESTDIR=$RPM_BUILD_ROOT \ |
155dfaa5 | 118 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
80ed9b49 | 119 | |
ec3c068c | 120 | # Remove obsoleted *.la files |
121 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la | |
4bfc49ad | 122 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.py |
a1003240 | 123 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.py |
a3dde385 | 124 | |
dcb9f503 | 125 | %find_lang gedit --with-gnome --with-omf |
80ed9b49 AF |
126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
b9712ae2 | 130 | %post |
b7567d7f | 131 | /sbin/ldconfig |
377427ef | 132 | %gconf_schema_install gedit-file-browser.schemas |
45db3807 | 133 | %gconf_schema_install gedit.schemas |
45db3807 | 134 | %scrollkeeper_update_post |
135 | %update_desktop_database_post | |
b2d6a8ec | 136 | |
137 | %preun | |
377427ef | 138 | %gconf_schema_uninstall gedit-file-browser.schemas |
45db3807 | 139 | %gconf_schema_uninstall gedit.schemas |
b9712ae2 | 140 | |
365c16a7 | 141 | %postun |
b7567d7f | 142 | /sbin/ldconfig |
45db3807 | 143 | %scrollkeeper_update_postun |
144 | %update_desktop_database_postun | |
365c16a7 | 145 | |
34003c3e | 146 | %files -f gedit.lang |
80ed9b49 | 147 | %defattr(644,root,root,755) |
23e4f56b | 148 | %doc README ChangeLog AUTHORS |
e7c4bf19 | 149 | %{_sysconfdir}/gconf/schemas/gedit.schemas |
377427ef | 150 | %{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas |
b9712ae2 AF |
151 | %attr(755,root,root) %{_bindir}/* |
152 | %dir %{_libdir}/gedit-2 | |
153 | %dir %{_libdir}/gedit-2/plugins | |
4bfc49ad | 154 | %dir %{_libdir}/gedit-2/plugins/externaltools |
a1003240 | 155 | %dir %{_libdir}/gedit-2/plugins/pythonconsole |
4bfc49ad | 156 | %dir %{_libdir}/gedit-2/plugins/snippets |
23e4f56b | 157 | %attr(755,root,root) %{_libdir}/gedit-2/gedit-bugreport.sh |
4bfc49ad | 158 | %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so |
159 | %{_libdir}/gedit-2/plugins/externaltools/*.glade | |
160 | %{_libdir}/gedit-2/plugins/externaltools/*.py[co] | |
59299744 | 161 | %{_libdir}/gedit-2/plugins/*.gedit-plugin |
a1003240 | 162 | %{_libdir}/gedit-2/plugins/pythonconsole/*.py[co] |
4bfc49ad | 163 | %{_libdir}/gedit-2/plugins/snippets/*.glade |
164 | %{_libdir}/gedit-2/plugins/snippets/*.py[co] | |
b9712ae2 | 165 | %{_datadir}/gedit-2 |
26c48c42 | 166 | %{_desktopdir}/*.desktop |
495241cd | 167 | %{_mandir}/man1/* |
ec3c068c | 168 | |
169 | %files devel | |
170 | %defattr(644,root,root,755) | |
155dfaa5 | 171 | %{_includedir}/gedit-* |
172 | %{_pkgconfigdir}/gedit-*.pc | |
dcb9f503 MB |
173 | |
174 | %files apidocs | |
175 | %defattr(644,root,root,755) | |
2d248ee3 | 176 | %{_gtkdocdir}/gedit |