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