]> git.pld-linux.org Git - packages/gtksourceview5.git/blame - gtksourceview5.spec
- updated to 5.4.0
[packages/gtksourceview5.git] / gtksourceview5.spec
CommitLineData
896eb13d
MB
1#
2# Conditional build:
b02f970b 3%bcond_without apidocs # API documentation
349c23b4 4%bcond_without static_libs # static library
b02f970b 5%bcond_with sysprof # sysprof profiler support
349c23b4 6%bcond_without vala # do not build Vala API
4564cf84 7
44df7ec3
AF
8Summary: Text widget that extends the standard GTK+ 3.x
9Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x
fa1469d8 10Name: gtksourceview5
9cbed56f 11Version: 5.4.0
b2467359 12Release: 1
2a83e144 13License: LGPL v2+ (library), GPL v2+ (some language specs files)
44df7ec3 14Group: X11/Libraries
9cbed56f
JB
15Source0: https://download.gnome.org/sources/gtksourceview/5.4/gtksourceview-%{version}.tar.xz
16# Source0-md5: ab90544ba01611b1bbe914798ea73e67
71b49bd9 17URL: https://wiki.gnome.org/Projects/GtkSourceView
44df7ec3 18BuildRequires: docbook-dtd412-xml
9cbed56f 19BuildRequires: fontconfig-devel
349c23b4 20BuildRequires: fribidi-devel >= 0.19.7
ede2878d 21BuildRequires: gettext-tools >= 0.19.4
9cbed56f
JB
22%{?with_apidocs:BuildRequires: gi-docgen}
23BuildRequires: glib2-devel >= 1:2.70
24BuildRequires: gobject-introspection-devel >= 1.70.0
25BuildRequires: gtk4-devel >= 4.5
0b911454 26BuildRequires: itstool
44df7ec3 27BuildRequires: libxml2-devel >= 1:2.6.31
9cbed56f 28BuildRequires: meson >= 0.59.0
349c23b4 29BuildRequires: ninja >= 1.5
9cbed56f 30BuildRequires: pango-devel
fa1469d8 31BuildRequires: pcre2-8-devel >= 10.21
44df7ec3 32BuildRequires: pkgconfig
d1fa7142 33BuildRequires: rpm-build >= 4.6
44df7ec3 34BuildRequires: rpm-pythonprov
79ee4bba 35BuildRequires: rpmbuild(macros) >= 1.736
349c23b4 36BuildRequires: sed >= 4.0
b02f970b 37%{?with_sysprof:BuildRequires: sysprof-devel >= 3.38}
67ae3529 38BuildRequires: tar >= 1:1.22
f5853990 39BuildRequires: vala
67ae3529 40BuildRequires: xz
349c23b4 41Requires: fribidi >= 0.19.7
9cbed56f
JB
42Requires: glib2 >= 1:2.70
43Requires: gtk4 >= 4.5
6a1741b2 44Requires: libxml2 >= 1:2.6.31
fa1469d8 45Requires: pcre2-8 >= 10.21
44df7ec3
AF
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49GtkSourceView is a text widget that extends the standard GTK+ 3.x text
50widget GtkTextView. It improves GtkTextView by implementing syntax
51highlighting and other features typical of a source editor.
52
53%description -l pl.UTF-8
54GtkSourceView to widget tekstowy rozszerzający standardowy widget
55tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
56zaimplementowanie podświetlania składni i innych możliwości typowych
57dla edytora źródeł.
58
44df7ec3
AF
59%package devel
60Summary: Header files for GtkSourceView
61Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
62Group: X11/Development/Libraries
63Requires: %{name} = %{version}-%{release}
349c23b4 64Requires: fribidi-devel >= 0.19.7
9cbed56f
JB
65Requires: glib2-devel >= 1:2.70
66Requires: gtk4-devel >= 4.5
44df7ec3 67Requires: libxml2-devel >= 1:2.6.31
fa1469d8 68Requires: pcre2-8-devel >= 10.21
44df7ec3
AF
69
70%description devel
71Header files for GtkSourceView.
72
73%description devel -l pl.UTF-8
74Pliki nagłówkowe dla GtkSourceView.
75
76%package static
77Summary: Static GtkSourceView library
78Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
79Group: X11/Development/Libraries
80Requires: %{name}-devel = %{version}-%{release}
81
82%description static
83Static GtkSourceView library.
84
85%description static -l pl.UTF-8
86Statyczna biblioteka GtkSourceView.
87
349c23b4
JB
88%package apidocs
89Summary: GtkSourceView API documentation
90Summary(pl.UTF-8): Dokumentacja API GtkSourceView
91Group: Documentation
92Requires: gtk-doc-common
349c23b4 93BuildArch: noarch
349c23b4
JB
94
95%description apidocs
96GtkSourceView API documentation.
97
98%description apidocs -l pl.UTF-8
99Dokumentacja API GtkSourceView.
100
fa1469d8 101%package -n vala-gtksourceview5
f5853990
MB
102Summary: GtkSourceView API for Vala language
103Summary(pl.UTF-8): API GtkSourceView dla języka Vala
104Group: Development/Libraries
105Requires: %{name}-devel = %{version}-%{release}
106Requires: vala
4564cf84 107BuildArch: noarch
f5853990 108
fa1469d8 109%description -n vala-gtksourceview5
f5853990
MB
110GtkSourceView API for Vala language.
111
fa1469d8 112%description -n vala-gtksourceview5 -l pl.UTF-8
f5853990
MB
113API GtkSourceView dla języka Vala.
114
44df7ec3
AF
115%prep
116%setup -q -n gtksourceview-%{version}
44df7ec3 117
349c23b4
JB
118%if %{with static_libs}
119%{__sed} -i -e 's/gtksource_lib = shared_library/gtksource_lib = library/' gtksourceview/meson.build
120%endif
d5fd6af8 121
44df7ec3 122%build
349c23b4 123%meson build \
b02f970b
JB
124 %{?with_apidocs:-Dgtk_doc=true} \
125 %{?with_sysprof:-Dsysprof=true}
349c23b4
JB
126
127%ninja_build -C build
44df7ec3
AF
128
129%install
130rm -rf $RPM_BUILD_ROOT
131
349c23b4 132%ninja_install -C build
e40ce944 133
9cbed56f
JB
134%if %{with apidocs}
135# FIXME: where to package gi-docgen generated docs?
136install -d $RPM_BUILD_ROOT%{_gtkdocdir}
137%{__mv} $RPM_BUILD_ROOT%{_docdir}/gtksourceview5 $RPM_BUILD_ROOT%{_gtkdocdir}
138%endif
139
fa1469d8 140%find_lang gtksourceview-5
44df7ec3
AF
141
142%clean
143rm -rf $RPM_BUILD_ROOT
144
145%post -p /sbin/ldconfig
146%postun -p /sbin/ldconfig
147
fa1469d8 148%files -f gtksourceview-5.lang
44df7ec3 149%defattr(644,root,root,755)
fa1469d8
JB
150%attr(755,root,root) %{_libdir}/libgtksourceview-5.so.*.*.*
151%attr(755,root,root) %ghost %{_libdir}/libgtksourceview-5.so.0
152%{_datadir}/gtksourceview-5
153%{_libdir}/girepository-1.0/GtkSource-5.typelib
154%{_iconsdir}/hicolor/scalable/actions/completion-*-symbolic.svg
155%{_iconsdir}/hicolor/scalable/actions/lang-*-symbolic.svg
44df7ec3 156
44df7ec3
AF
157%files devel
158%defattr(644,root,root,755)
fa1469d8
JB
159%attr(755,root,root) %{_libdir}/libgtksourceview-5.so
160%{_includedir}/gtksourceview-5
161%{_pkgconfigdir}/gtksourceview-5.pc
162%{_datadir}/gir-1.0/GtkSource-5.gir
44df7ec3 163
f03d635d 164%if %{with static_libs}
44df7ec3
AF
165%files static
166%defattr(644,root,root,755)
fa1469d8 167%{_libdir}/libgtksourceview-5.a
f03d635d 168%endif
44df7ec3 169
349c23b4
JB
170%if %{with apidocs}
171%files apidocs
172%defattr(644,root,root,755)
9cbed56f 173%{_gtkdocdir}/gtksourceview5
44df7ec3 174%endif
f5853990
MB
175
176%if %{with vala}
fa1469d8 177%files -n vala-gtksourceview5
f5853990 178%defattr(644,root,root,755)
fa1469d8
JB
179%{_datadir}/vala/vapi/gtksourceview-5.deps
180%{_datadir}/vala/vapi/gtksourceview-5.vapi
f5853990 181%endif
This page took 0.144026 seconds and 4 git commands to generate.