]>
Commit | Line | Data |
---|---|---|
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 |
7 | Summary: Text widget that extends the standard GTK+ 3.x |
8 | Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x | |
fa1469d8 | 9 | Name: gtksourceview5 |
c701c478 | 10 | Version: 5.0.0 |
b2467359 | 11 | Release: 1 |
2a83e144 | 12 | License: LGPL v2+ (library), GPL v2+ (some language specs files) |
44df7ec3 | 13 | Group: X11/Libraries |
c701c478 JB |
14 | Source0: https://download.gnome.org/sources/gtksourceview/5.0/gtksourceview-%{version}.tar.xz |
15 | # Source0-md5: 5e2241325697706341b5f6e6edba617e | |
71b49bd9 | 16 | URL: https://wiki.gnome.org/Projects/GtkSourceView |
44df7ec3 | 17 | BuildRequires: docbook-dtd412-xml |
349c23b4 | 18 | BuildRequires: fribidi-devel >= 0.19.7 |
ede2878d | 19 | BuildRequires: gettext-tools >= 0.19.4 |
c701c478 | 20 | BuildRequires: glib2-devel >= 1:2.66 |
ad61f4ae | 21 | BuildRequires: gobject-introspection-devel >= 1.42.0 |
c701c478 | 22 | BuildRequires: gtk4-devel >= 4.1 |
349c23b4 | 23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
0b911454 | 24 | BuildRequires: itstool |
44df7ec3 | 25 | BuildRequires: libxml2-devel >= 1:2.6.31 |
c701c478 | 26 | BuildRequires: meson >= 0.53.0 |
349c23b4 | 27 | BuildRequires: ninja >= 1.5 |
fa1469d8 | 28 | BuildRequires: pcre2-8-devel >= 10.21 |
44df7ec3 | 29 | BuildRequires: pkgconfig |
d1fa7142 | 30 | BuildRequires: rpm-build >= 4.6 |
44df7ec3 | 31 | BuildRequires: rpm-pythonprov |
79ee4bba | 32 | BuildRequires: rpmbuild(macros) >= 1.736 |
349c23b4 | 33 | BuildRequires: sed >= 4.0 |
67ae3529 | 34 | BuildRequires: tar >= 1:1.22 |
f5853990 | 35 | BuildRequires: vala |
67ae3529 | 36 | BuildRequires: xz |
349c23b4 | 37 | Requires: fribidi >= 0.19.7 |
c701c478 JB |
38 | Requires: glib2 >= 1:2.66 |
39 | Requires: gtk4 >= 4.1 | |
6a1741b2 | 40 | Requires: libxml2 >= 1:2.6.31 |
fa1469d8 | 41 | Requires: pcre2-8 >= 10.21 |
44df7ec3 AF |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
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. | |
48 | ||
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 | |
53 | dla edytora źródeł. | |
54 | ||
44df7ec3 AF |
55 | %package devel |
56 | Summary: Header files for GtkSourceView | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView | |
58 | Group: X11/Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
349c23b4 | 60 | Requires: fribidi-devel >= 0.19.7 |
c701c478 JB |
61 | Requires: glib2-devel >= 1:2.66 |
62 | Requires: gtk4-devel >= 4.1 | |
44df7ec3 | 63 | Requires: libxml2-devel >= 1:2.6.31 |
fa1469d8 | 64 | Requires: pcre2-8-devel >= 10.21 |
44df7ec3 AF |
65 | |
66 | %description devel | |
67 | Header files for GtkSourceView. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe dla GtkSourceView. | |
71 | ||
72 | %package static | |
73 | Summary: Static GtkSourceView library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView | |
75 | Group: X11/Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static GtkSourceView library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka GtkSourceView. | |
83 | ||
349c23b4 JB |
84 | %package apidocs |
85 | Summary: GtkSourceView API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API GtkSourceView | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
349c23b4 | 89 | BuildArch: noarch |
349c23b4 JB |
90 | |
91 | %description apidocs | |
92 | GtkSourceView API documentation. | |
93 | ||
94 | %description apidocs -l pl.UTF-8 | |
95 | Dokumentacja API GtkSourceView. | |
96 | ||
fa1469d8 | 97 | %package -n vala-gtksourceview5 |
f5853990 MB |
98 | Summary: GtkSourceView API for Vala language |
99 | Summary(pl.UTF-8): API GtkSourceView dla języka Vala | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | Requires: vala | |
4564cf84 | 103 | BuildArch: noarch |
f5853990 | 104 | |
fa1469d8 | 105 | %description -n vala-gtksourceview5 |
f5853990 MB |
106 | GtkSourceView API for Vala language. |
107 | ||
fa1469d8 | 108 | %description -n vala-gtksourceview5 -l pl.UTF-8 |
f5853990 MB |
109 | API 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 | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
349c23b4 | 127 | %ninja_install -C build |
e40ce944 | 128 | |
fa1469d8 | 129 | %find_lang gtksourceview-5 |
44df7ec3 AF |
130 | |
131 | %clean | |
132 | rm -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 |