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