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: LGPL v2+ (library), GPL v2+ (some language specs files)
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.12/gtksourceview-%{version}.tar.xz
13 # Source0-md5: 8850fc0aee4893668ede37a30ef05e85
14 URL: http://www.gnome.org/
15 BuildRequires: autoconf >= 2.64
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: docbook-dtd412-xml
18 BuildRequires: gettext-devel >= 0.17
19 BuildRequires: glib2-devel >= 1:2.38.0
20 BuildRequires: gnome-common >= 2.24.0
21 BuildRequires: gobject-introspection-devel >= 0.10.0
22 BuildRequires: gtk+3-devel >= 3.12.0
23 BuildRequires: gtk-doc >= 1.11
24 BuildRequires: intltool >= 0.40.0
26 BuildRequires: libgladeui-devel >= 3.9.0
28 BuildRequires: libtool >= 2:2.2.6
29 BuildRequires: libxml2-devel >= 1:2.6.31
30 BuildRequires: pkgconfig
31 BuildRequires: rpm-pythonprov
32 BuildRequires: tar >= 1:1.22
34 Requires: glib2 >= 1:2.38.0
35 Requires: gtk+3 >= 3.12.0
36 Requires: libxml2 >= 1:2.6.31
37 # sr@Latn vs. sr@latin
38 Conflicts: glibc-misc < 6:2.7
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 GtkSourceView is a text widget that extends the standard GTK+ 3.x text
43 widget GtkTextView. It improves GtkTextView by implementing syntax
44 highlighting and other features typical of a source editor.
46 %description -l pl.UTF-8
47 GtkSourceView to widget tekstowy rozszerzający standardowy widget
48 tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
49 zaimplementowanie podświetlania składni i innych możliwości typowych
53 Summary: GtkSourceView API documentation
54 Summary(pl.UTF-8): Dokumentacja API GtkSourceView
56 Requires: gtk-doc-common
59 GtkSourceView API documentation.
61 %description apidocs -l pl.UTF-8
62 Dokumentacja API GtkSourceView.
65 Summary: Header files for GtkSourceView
66 Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
67 Group: X11/Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: glib2-devel >= 1:2.38.0
70 Requires: gtk+3-devel >= 3.12.0
71 Requires: libxml2-devel >= 1:2.6.31
74 Header files for GtkSourceView.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe dla GtkSourceView.
80 Summary: Static GtkSourceView library
81 Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
82 Group: X11/Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
86 Static GtkSourceView library.
88 %description static -l pl.UTF-8
89 Statyczna biblioteka GtkSourceView.
91 %package -n glade3-gtksourceview
92 Summary: Glade3 catalog entry for GtkSourceView library
93 Summary(pl.UTF-8): Wpis katalogu Glade3 dla biblioteki GtkSourceView
94 Group: X11/Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
96 Requires: libgladeui >= 3.9.0
98 %description -n glade3-gtksourceview
99 Glade3 catalog entry for GtkSourceView library.
101 %description -n glade3-gtksourceview -l pl.UTF-8
102 Wpis katalogu Glade3 dla biblioteki GtkSourceView.
105 %setup -q -n gtksourceview-%{version}
116 %{__enable glade glade-catalog} \
119 --disable-silent-rules \
121 --with-html-dir=%{_gtkdocdir}
125 rm -rf $RPM_BUILD_ROOT
128 DESTDIR=$RPM_BUILD_ROOT
130 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
132 %find_lang gtksourceview-3.0
135 rm -rf $RPM_BUILD_ROOT
137 %post -p /sbin/ldconfig
138 %postun -p /sbin/ldconfig
140 %files -f gtksourceview-3.0.lang
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.*
143 %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.1
144 %{_datadir}/gtksourceview-3.0
145 %{_libdir}/girepository-1.0/GtkSource-3.0.typelib
148 %defattr(644,root,root,755)
149 %{_gtkdocdir}/gtksourceview-3.0
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so
154 %{_includedir}/gtksourceview-3.0
155 %{_pkgconfigdir}/gtksourceview-3.0.pc
156 %{_datadir}/gir-1.0/GtkSource-3.0.gir
159 %defattr(644,root,root,755)
160 %{_libdir}/libgtksourceview-3.0.a
163 %files -n glade3-gtksourceview
164 %defattr(644,root,root,755)
165 %{_datadir}/glade3/catalogs/gtksourceview.xml