3 %bcond_with glade # install glade catalog
4 %bcond_without vala # do not build Vala API
6 Summary: Text widget that extends the standard GTK+ 3.x
7 Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x
11 License: LGPL v2+ (library), GPL v2+ (some language specs files)
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.18/gtksourceview-%{version}.tar.xz
14 # Source0-md5: 8e99579d6a8b2fdae45b557f40df0176
15 URL: http://www.gnome.org/
16 BuildRequires: autoconf >= 2.64
17 BuildRequires: autoconf-archive >= 2015.09.25
18 BuildRequires: automake >= 1:1.13
19 BuildRequires: docbook-dtd412-xml
20 BuildRequires: gettext-tools >= 0.17
21 BuildRequires: glib2-devel >= 1:2.44.0
22 BuildRequires: gnome-common >= 2.24.0
23 BuildRequires: gobject-introspection-devel >= 1.42.0
24 BuildRequires: gtk+3-devel >= 3.16.0
25 BuildRequires: gtk-doc >= 1.24
26 BuildRequires: intltool >= 0.40.0
28 BuildRequires: libgladeui-devel >= 3.9.0
30 BuildRequires: libtool >= 2:2.2.6
31 BuildRequires: libxml2-devel >= 1:2.6.31
32 BuildRequires: pkgconfig
33 BuildRequires: rpm-pythonprov
34 BuildRequires: tar >= 1:1.22
37 Requires: glib2 >= 1:2.44.0
38 Requires: gtk+3 >= 3.16.0
39 Requires: libxml2 >= 1:2.6.31
40 # sr@Latn vs. sr@latin
41 Conflicts: glibc-misc < 6:2.7
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 GtkSourceView is a text widget that extends the standard GTK+ 3.x text
46 widget GtkTextView. It improves GtkTextView by implementing syntax
47 highlighting and other features typical of a source editor.
49 %description -l pl.UTF-8
50 GtkSourceView to widget tekstowy rozszerzający standardowy widget
51 tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
52 zaimplementowanie podświetlania składni i innych możliwości typowych
56 Summary: GtkSourceView API documentation
57 Summary(pl.UTF-8): Dokumentacja API GtkSourceView
59 Requires: gtk-doc-common
62 GtkSourceView API documentation.
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API GtkSourceView.
68 Summary: Header files for GtkSourceView
69 Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
70 Group: X11/Development/Libraries
71 Requires: %{name} = %{version}-%{release}
72 Requires: glib2-devel >= 1:2.44.0
73 Requires: gtk+3-devel >= 3.16.0
74 Requires: libxml2-devel >= 1:2.6.31
77 Header files for GtkSourceView.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe dla GtkSourceView.
83 Summary: Static GtkSourceView library
84 Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
85 Group: X11/Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
89 Static GtkSourceView library.
91 %description static -l pl.UTF-8
92 Statyczna biblioteka GtkSourceView.
94 %package -n glade3-gtksourceview
95 Summary: Glade3 catalog entry for GtkSourceView library
96 Summary(pl.UTF-8): Wpis katalogu Glade3 dla biblioteki GtkSourceView
97 Group: X11/Development/Libraries
98 Requires: %{name}-devel = %{version}-%{release}
99 Requires: libgladeui >= 3.9.0
101 %description -n glade3-gtksourceview
102 Glade3 catalog entry for GtkSourceView library.
104 %description -n glade3-gtksourceview -l pl.UTF-8
105 Wpis katalogu Glade3 dla biblioteki GtkSourceView.
107 %package -n vala-gtksourceview
108 Summary: GtkSourceView API for Vala language
109 Summary(pl.UTF-8): API GtkSourceView dla języka Vala
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{version}-%{release}
114 %description -n vala-gtksourceview
115 GtkSourceView API for Vala language.
117 %description -n vala-gtksourceview -l pl.UTF-8
118 API GtkSourceView dla języka Vala.
121 %setup -q -n gtksourceview-%{version}
123 # force new version from autoconf-archive (original one uses non-POSIX ${V:N} syntax)
124 %{__rm} m4/ax_compiler_flags_cflags.m4
135 %{__enable glade glade-catalog} \
138 --disable-silent-rules \
140 --with-html-dir=%{_gtkdocdir}
144 rm -rf $RPM_BUILD_ROOT
147 DESTDIR=$RPM_BUILD_ROOT
149 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
151 %find_lang gtksourceview-3.0
154 rm -rf $RPM_BUILD_ROOT
156 %post -p /sbin/ldconfig
157 %postun -p /sbin/ldconfig
159 %files -f gtksourceview-3.0.lang
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.*
162 %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.1
163 %{_datadir}/gtksourceview-3.0
164 %{_libdir}/girepository-1.0/GtkSource-3.0.typelib
167 %defattr(644,root,root,755)
168 %{_gtkdocdir}/gtksourceview-3.0
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so
173 %{_includedir}/gtksourceview-3.0
174 %{_pkgconfigdir}/gtksourceview-3.0.pc
175 %{_datadir}/gir-1.0/GtkSource-3.0.gir
178 %defattr(644,root,root,755)
179 %{_libdir}/libgtksourceview-3.0.a
182 %files -n glade3-gtksourceview
183 %defattr(644,root,root,755)
184 %{_datadir}/glade3/catalogs/gtksourceview.xml
188 %files -n vala-gtksourceview
189 %defattr(644,root,root,755)
190 %{_datadir}/vala/vapi/gtksourceview-3.0.deps
191 %{_datadir}/vala/vapi/gtksourceview-3.0.vapi