3 %bcond_with glade # install glade catalog
5 Summary: Text widget that extends the standard GTK+ 3.x
6 Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x
10 License: GPL v2+ and LGPL v2+
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.0/gtksourceview-%{version}.tar.xz
13 # Source0-md5: cfdf2674cbde0a079ee0b264c27cb15e
14 URL: http://www.gnome.org/
15 BuildRequires: autoconf >= 2.64
16 BuildRequires: automake >= 1:1.10.3
17 BuildRequires: docbook-dtd412-xml
18 BuildRequires: gettext-devel >= 0.17
19 BuildRequires: gnome-common >= 2.24.0
20 BuildRequires: gobject-introspection-devel >= 0.10.0
21 BuildRequires: gtk+3-devel >= 3.0.0
22 BuildRequires: gtk-doc >= 1.11
23 BuildRequires: intltool >= 0.40.0
25 BuildRequires: libgladeui-devel >= 3.9.0
27 BuildRequires: libtool >= 2:2.2.6
28 BuildRequires: libxml2-devel >= 1:2.6.31
29 BuildRequires: pkgconfig
30 BuildRequires: rpm-pythonprov
31 BuildRequires: tar >= 1:1.22
33 Requires: glib2 >= 1:2.28.0
34 # sr@Latn vs. sr@latin
35 Conflicts: glibc-misc < 6:2.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 GtkSourceView is a text widget that extends the standard GTK+ 3.x text
40 widget GtkTextView. It improves GtkTextView by implementing syntax
41 highlighting and other features typical of a source editor.
43 %description -l pl.UTF-8
44 GtkSourceView to widget tekstowy rozszerzający standardowy widget
45 tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
46 zaimplementowanie podświetlania składni i innych możliwości typowych
50 Summary: GtkSourceView API documentation
51 Summary(pl.UTF-8): Dokumentacja API GtkSourceView
53 Requires: gtk-doc-common
56 GtkSourceView API documentation.
58 %description apidocs -l pl.UTF-8
59 Dokumentacja API GtkSourceView.
62 Summary: Header files for GtkSourceView
63 Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
64 Group: X11/Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: gtk+3-devel >= 3.0.0
67 Requires: libxml2-devel >= 1:2.6.31
70 Header files for GtkSourceView.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe dla GtkSourceView.
76 Summary: Static GtkSourceView library
77 Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
78 Group: X11/Development/Libraries
79 Requires: %{name}-devel = %{version}-%{release}
82 Static GtkSourceView library.
84 %description static -l pl.UTF-8
85 Statyczna biblioteka GtkSourceView.
87 %package -n glade3-gtksourceview
88 Summary: Glade3 catalog entry for GtkSourceView library
89 Group: X11/Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
92 %description -n glade3-gtksourceview
93 Glade3 catalog entry for GtkSourceView library.
96 %setup -q -n gtksourceview-%{version}
109 --with-html-dir=%{_gtkdocdir} \
110 %{__enable glade glade-catalog} \
112 --disable-silent-rules
116 rm -rf $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
123 %find_lang gtksourceview-3.0
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
131 %files -f gtksourceview-3.0.lang
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.0
135 %{_datadir}/gtksourceview-3.0
136 %{_libdir}/girepository-1.0/GtkSource-3.0.typelib
139 %defattr(644,root,root,755)
140 %{_gtkdocdir}/gtksourceview-3.0
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so
145 %{_includedir}/gtksourceview-3.0
146 %{_pkgconfigdir}/gtksourceview-3.0.pc
147 %{_datadir}/gir-1.0/GtkSource-3.0.gir
150 %defattr(644,root,root,755)
151 %{_libdir}/libgtksourceview-3.0.a
154 %files -n glade3-gtksourceview
155 %defattr(644,root,root,755)
156 %{_datadir}/glade3/catalogs/gtksourceview.xml