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