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