]> git.pld-linux.org Git - packages/gtksourceview5.git/blame - gtksourceview4.spec
- updated to 4.2.0
[packages/gtksourceview5.git] / gtksourceview4.spec
CommitLineData
896eb13d
MB
1#
2# Conditional build:
44df7ec3 3%bcond_with glade # install glade catalog
f5853990 4%bcond_without vala # do not build Vala API
4564cf84 5
44df7ec3
AF
6Summary: Text widget that extends the standard GTK+ 3.x
7Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x
c91f81a0 8Name: gtksourceview4
4d80c2b9 9Version: 4.2.0
b2467359 10Release: 1
2a83e144 11License: LGPL v2+ (library), GPL v2+ (some language specs files)
44df7ec3 12Group: X11/Libraries
4d80c2b9
JB
13Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/4.2/gtksourceview-%{version}.tar.xz
14# Source0-md5: c9e6913c2fd30ca2fcdd71482faf8b99
71b49bd9 15URL: https://wiki.gnome.org/Projects/GtkSourceView
44df7ec3 16BuildRequires: autoconf >= 2.64
d5fd6af8 17BuildRequires: autoconf-archive >= 2015.09.25
1be8ea61 18BuildRequires: automake >= 1:1.13
44df7ec3 19BuildRequires: docbook-dtd412-xml
ede2878d 20BuildRequires: gettext-tools >= 0.19.4
0b911454 21BuildRequires: glib2-devel >= 1:2.48.0
ad61f4ae 22BuildRequires: gobject-introspection-devel >= 1.42.0
c91f81a0 23BuildRequires: gtk+3-devel >= 3.20
ede2878d 24BuildRequires: gtk-doc >= 1.25
0b911454 25BuildRequires: itstool
44df7ec3 26%if %{with glade}
a4f31e42 27BuildRequires: libgladeui-devel >= 3.9.0
44df7ec3 28%endif
896eb13d 29BuildRequires: libtool >= 2:2.2.6
44df7ec3
AF
30BuildRequires: libxml2-devel >= 1:2.6.31
31BuildRequires: pkgconfig
32BuildRequires: rpm-pythonprov
67ae3529 33BuildRequires: tar >= 1:1.22
f5853990 34BuildRequires: vala
67ae3529 35BuildRequires: xz
ede2878d 36Requires: glib2 >= 1:2.48.0
c91f81a0 37Requires: gtk+3 >= 3.20
6a1741b2 38Requires: libxml2 >= 1:2.6.31
44df7ec3
AF
39# sr@Latn vs. sr@latin
40Conflicts: glibc-misc < 6:2.7
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44GtkSourceView is a text widget that extends the standard GTK+ 3.x text
45widget GtkTextView. It improves GtkTextView by implementing syntax
46highlighting and other features typical of a source editor.
47
48%description -l pl.UTF-8
49GtkSourceView to widget tekstowy rozszerzający standardowy widget
50tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
51zaimplementowanie podświetlania składni i innych możliwości typowych
52dla edytora źródeł.
53
54%package apidocs
55Summary: GtkSourceView API documentation
56Summary(pl.UTF-8): Dokumentacja API GtkSourceView
57Group: Documentation
58Requires: gtk-doc-common
cfca0620
ER
59%if "%{_rpmversion}" >= "5"
60BuildArch: noarch
61%endif
44df7ec3
AF
62
63%description apidocs
64GtkSourceView API documentation.
65
66%description apidocs -l pl.UTF-8
67Dokumentacja API GtkSourceView.
68
69%package devel
70Summary: Header files for GtkSourceView
71Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
72Group: X11/Development/Libraries
73Requires: %{name} = %{version}-%{release}
ede2878d 74Requires: glib2-devel >= 1:2.48.0
c91f81a0 75Requires: gtk+3-devel >= 3.20
44df7ec3
AF
76Requires: libxml2-devel >= 1:2.6.31
77
78%description devel
79Header files for GtkSourceView.
80
81%description devel -l pl.UTF-8
82Pliki nagłówkowe dla GtkSourceView.
83
84%package static
85Summary: Static GtkSourceView library
86Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
87Group: X11/Development/Libraries
88Requires: %{name}-devel = %{version}-%{release}
89
90%description static
91Static GtkSourceView library.
92
93%description static -l pl.UTF-8
94Statyczna biblioteka GtkSourceView.
95
96%package -n glade3-gtksourceview
97Summary: Glade3 catalog entry for GtkSourceView library
2a83e144 98Summary(pl.UTF-8): Wpis katalogu Glade3 dla biblioteki GtkSourceView
44df7ec3
AF
99Group: X11/Development/Libraries
100Requires: %{name}-devel = %{version}-%{release}
2a83e144 101Requires: libgladeui >= 3.9.0
44df7ec3
AF
102
103%description -n glade3-gtksourceview
104Glade3 catalog entry for GtkSourceView library.
105
2a83e144
JB
106%description -n glade3-gtksourceview -l pl.UTF-8
107Wpis katalogu Glade3 dla biblioteki GtkSourceView.
108
c91f81a0 109%package -n vala-gtksourceview4
f5853990
MB
110Summary: GtkSourceView API for Vala language
111Summary(pl.UTF-8): API GtkSourceView dla języka Vala
112Group: Development/Libraries
113Requires: %{name}-devel = %{version}-%{release}
114Requires: vala
4564cf84
ER
115%if "%{_rpmversion}" >= "5"
116BuildArch: noarch
117%endif
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
d5fd6af8
JB
128# force new version from autoconf-archive (original one uses non-POSIX ${V:N} syntax)
129%{__rm} m4/ax_compiler_flags_cflags.m4
130
44df7ec3
AF
131%build
132%{__gtkdocize}
44df7ec3 133%{__libtoolize}
d5fd6af8 134%{__aclocal} -I m4
44df7ec3
AF
135%{__autoconf}
136%{__autoheader}
137%{__automake}
138%configure \
44df7ec3 139 %{__enable glade glade-catalog} \
2a83e144 140 --enable-gtk-doc \
2a83e144
JB
141 --disable-silent-rules \
142 --enable-static \
143 --with-html-dir=%{_gtkdocdir}
44df7ec3
AF
144%{__make}
145
146%install
147rm -rf $RPM_BUILD_ROOT
148
149%{__make} install \
150 DESTDIR=$RPM_BUILD_ROOT
151
e40ce944
AF
152%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
153
c91f81a0 154%find_lang gtksourceview-4
44df7ec3
AF
155
156%clean
157rm -rf $RPM_BUILD_ROOT
158
159%post -p /sbin/ldconfig
160%postun -p /sbin/ldconfig
161
c91f81a0 162%files -f gtksourceview-4.lang
44df7ec3 163%defattr(644,root,root,755)
c91f81a0
JB
164%attr(755,root,root) %{_libdir}/libgtksourceview-4.so.*.*.*
165%attr(755,root,root) %ghost %{_libdir}/libgtksourceview-4.so.0
166%{_datadir}/gtksourceview-4
167%{_libdir}/girepository-1.0/GtkSource-4.typelib
44df7ec3
AF
168
169%files apidocs
170%defattr(644,root,root,755)
c91f81a0 171%{_gtkdocdir}/gtksourceview-4.0
44df7ec3
AF
172
173%files devel
174%defattr(644,root,root,755)
c91f81a0
JB
175%attr(755,root,root) %{_libdir}/libgtksourceview-4.so
176%{_includedir}/gtksourceview-4
177%{_pkgconfigdir}/gtksourceview-4.pc
178%{_datadir}/gir-1.0/GtkSource-4.gir
44df7ec3
AF
179
180%files static
181%defattr(644,root,root,755)
c91f81a0 182%{_libdir}/libgtksourceview-4.a
44df7ec3
AF
183
184%if %{with glade}
185%files -n glade3-gtksourceview
186%defattr(644,root,root,755)
187%{_datadir}/glade3/catalogs/gtksourceview.xml
188%endif
f5853990
MB
189
190%if %{with vala}
c91f81a0 191%files -n vala-gtksourceview4
f5853990 192%defattr(644,root,root,755)
c91f81a0
JB
193%{_datadir}/vala/vapi/gtksourceview-4.deps
194%{_datadir}/vala/vapi/gtksourceview-4.vapi
f5853990 195%endif
This page took 0.050877 seconds and 4 git commands to generate.