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