3 %bcond_without gnome # disable gnomeprint support, don't build tests
5 Summary: Text widget that extends the standard GTK+ 2.x
6 Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 2.x
12 Source0: http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.8/%{name}-%{version}.tar.bz2
13 # Source0-md5: de67df2944c1cccbc2d0b4a738e11050
14 Patch0: %{name}-nognome.patch
15 URL: http://www.gnome.org/
16 BuildRequires: autoconf >= 2.53
17 BuildRequires: automake
18 BuildRequires: gnome-common >= 2.12.0
19 %{?with_gnome:BuildRequires: gnome-vfs2-devel >= 2.17.91}
20 BuildRequires: gtk+2-devel >= 2:2.10.9
21 BuildRequires: gtk-doc >= 1.8
22 BuildRequires: intltool >= 0.35.5
23 %{?with_gnome:BuildRequires: libgnomeprintui-devel >= 2.17.92}
24 BuildRequires: libtool
25 BuildRequires: libxml2-devel >= 1:2.6.27
26 # sr@Latn vs. sr@latin
27 Conflicts: glibc-misc < 6:2.7
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 GtkSourceView is a text widget that extends the standard GTK+ 2.x text
32 widget GtkTextView. It improves GtkTextView by implementing syntax
33 highlighting and other features typical of a source editor.
35 %description -l pl.UTF-8
36 GtkSourceView to widget tekstowy rozszerzający standardowy widget
37 tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez
38 zaimplementowanie podświetlania składni i innych możliwości typowych
42 Summary: GtkSourceView API documentation
43 Summary(pl.UTF-8): Dokumentacja API GtkSourceView
45 Requires: gtk-doc-common
48 GtkSourceView API documentation.
50 %description apidocs -l pl.UTF-8
51 Dokumentacja API GtkSourceView.
54 Summary: Header files for gtktextview
55 Summary(pl.UTF-8): Pliki nagłówkowe dla gtktextview
56 Group: X11/Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: gtk+2-devel >= 2:2.10.9
59 %{?with_gnome:Requires: libgnomeprint-devel >= 2.17.92}
60 Requires: libxml2-devel >= 1:2.6.27
63 Header files for gtktextview.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe dla gtktextview.
69 Summary: Static gtksourceview library
70 Summary(pl.UTF-8): Statyczna biblioteka gtksourceview
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static gtksourceview library.
77 %description static -l pl.UTF-8
78 Statyczna biblioteka gtksourceview.
82 %{!?with_gnome:%patch0 -p1}
92 %{!?with_gnome:--disable-gnomeprint} \
95 --with-html-dir=%{_gtkdocdir}
99 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
104 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
105 %find_lang %{name}-1.0
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
113 %files -f %{name}-1.0.lang
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so.*.*.*
116 %{_datadir}/%{name}-1.0
119 %defattr(644,root,root,755)
120 %{_gtkdocdir}/%{name}
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so
125 %{_libdir}/libgtksourceview-1.0.la
126 %{_includedir}/%{name}-1.0
127 %{_pkgconfigdir}/gtksourceview-1.0.pc
130 %defattr(644,root,root,755)
131 %{_libdir}/libgtksourceview-1.0.a