]>
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 |
caa887cc | 5 | Release: 2 |
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 |
caa887cc | 46 | # sr@Latn vs. sr@latin |
47 | Conflicts: glibc-misc < 6:2.7 | |
35cda6d9 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ed9b49 | 49 | |
80ed9b49 | 50 | %description |
ae858907 | 51 | gedit is a small but powerful text editor for GTK+ and/or GNOME. It |
80ed9b49 | 52 | includes such features as split-screen mode, a plugin API, which |
ae858907 | 53 | allows gedit to be extended to support many features while remaining |
80ed9b49 AF |
54 | small at its core, multiple document editing and many more functions. |
55 | ||
834687a5 JR |
56 | %description -l pl.UTF-8 |
57 | gedit jest małym ale potężnym edytorem tekstu dla GTK+ i/lub GNOME. | |
80ed9b49 | 58 | Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek", |
834687a5 JR |
59 | który umożliwia rozszerzenie funkcji gedita o dodatkowe możliwości, |
60 | nie zwiększając rozmiarów samego programu, możliwość edycji wielu | |
61 | dokumentów naraz i wiele innych. | |
80ed9b49 | 62 | |
ec3c068c | 63 | %package devel |
ae858907 | 64 | Summary: gedit header files |
23e4f56b | 65 | Summary(pl.UTF-8): Pliki nagłówkowe gedit |
ec3c068c | 66 | Group: X11/Development/Libraries |
155dfaa5 | 67 | Requires: %{name} = %{version}-%{release} |
db246d31 | 68 | Requires: gtksourceview2-devel >= 2.0.0 |
cd992a89 | 69 | Requires: libglade2-devel >= 1:2.6.2 |
c61374ef | 70 | Requires: libgnomeprintui-devel >= 2.18.0 |
db246d31 | 71 | Requires: libgnomeui-devel >= 2.20.0 |
ec3c068c | 72 | |
73 | %description devel | |
ae858907 | 74 | gedit header files |
ec3c068c | 75 | |
834687a5 JR |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe gedit. | |
ec3c068c | 78 | |
80ed9b49 AF |
79 | %prep |
80 | %setup -q -n gedit-%{version} | |
4bfc49ad | 81 | sed -i 's/codegen.py/codegen.pyc/' configure.ac |
80ed9b49 AF |
82 | |
83 | %build | |
59299744 | 84 | %{__gnome_doc_common} |
155dfaa5 | 85 | %{__libtoolize} |
45db3807 | 86 | %{__intltoolize} |
4bfc49ad | 87 | %{__aclocal} -I m4 |
155dfaa5 | 88 | %{__autoconf} |
89 | %{__automake} | |
90 | %configure \ | |
4bfc49ad | 91 | --disable-schemas-install \ |
92 | --disable-scrollkeeper \ | |
93 | --enable-python \ | |
2d248ee3 | 94 | --enable-gtk-doc \ |
95 | --with-html-dir=%{_gtkdocdir} \ | |
4bfc49ad | 96 | --with-omf-dir=%{_omf_dest_dir}/%{name} |
80ed9b49 AF |
97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
cd992a89 | 102 | %{__make} -j1 install \ |
ec3c068c | 103 | DESTDIR=$RPM_BUILD_ROOT \ |
155dfaa5 | 104 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
80ed9b49 | 105 | |
ec3c068c | 106 | # Remove obsoleted *.la files |
107 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la | |
4bfc49ad | 108 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.py |
a1003240 | 109 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*/*.py |
a3dde385 | 110 | |
caa887cc | 111 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
112 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
34003c3e | 113 | %find_lang gedit --with-gnome |
80ed9b49 AF |
114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
b9712ae2 | 118 | %post |
b7567d7f | 119 | /sbin/ldconfig |
377427ef | 120 | %gconf_schema_install gedit-file-browser.schemas |
45db3807 | 121 | %gconf_schema_install gedit.schemas |
45db3807 | 122 | %scrollkeeper_update_post |
123 | %update_desktop_database_post | |
b2d6a8ec | 124 | |
125 | %preun | |
377427ef | 126 | %gconf_schema_uninstall gedit-file-browser.schemas |
45db3807 | 127 | %gconf_schema_uninstall gedit.schemas |
b9712ae2 | 128 | |
365c16a7 | 129 | %postun |
b7567d7f | 130 | /sbin/ldconfig |
45db3807 | 131 | %scrollkeeper_update_postun |
132 | %update_desktop_database_postun | |
365c16a7 | 133 | |
34003c3e | 134 | %files -f gedit.lang |
80ed9b49 | 135 | %defattr(644,root,root,755) |
23e4f56b | 136 | %doc README ChangeLog AUTHORS |
e7c4bf19 | 137 | %{_sysconfdir}/gconf/schemas/gedit.schemas |
377427ef | 138 | %{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas |
b9712ae2 AF |
139 | %attr(755,root,root) %{_bindir}/* |
140 | %dir %{_libdir}/gedit-2 | |
141 | %dir %{_libdir}/gedit-2/plugins | |
4bfc49ad | 142 | %dir %{_libdir}/gedit-2/plugins/externaltools |
a1003240 | 143 | %dir %{_libdir}/gedit-2/plugins/pythonconsole |
4bfc49ad | 144 | %dir %{_libdir}/gedit-2/plugins/snippets |
23e4f56b | 145 | %attr(755,root,root) %{_libdir}/gedit-2/gedit-bugreport.sh |
4bfc49ad | 146 | %attr(755,root,root) %{_libdir}/gedit-2/plugins/*.so |
147 | %{_libdir}/gedit-2/plugins/externaltools/*.glade | |
148 | %{_libdir}/gedit-2/plugins/externaltools/*.py[co] | |
59299744 | 149 | %{_libdir}/gedit-2/plugins/*.gedit-plugin |
a1003240 | 150 | %{_libdir}/gedit-2/plugins/pythonconsole/*.py[co] |
4bfc49ad | 151 | %{_libdir}/gedit-2/plugins/snippets/*.glade |
152 | %{_libdir}/gedit-2/plugins/snippets/*.py[co] | |
b9712ae2 | 153 | %{_datadir}/gedit-2 |
26c48c42 | 154 | %{_desktopdir}/*.desktop |
495241cd | 155 | %{_mandir}/man1/* |
59299744 | 156 | %{_omf_dest_dir}/%{name} |
4bfc49ad | 157 | %{_omf_dest_dir}/gedit |
ec3c068c | 158 | |
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
155dfaa5 | 161 | %{_includedir}/gedit-* |
162 | %{_pkgconfigdir}/gedit-*.pc | |
2d248ee3 | 163 | %{_gtkdocdir}/gedit |