]> git.pld-linux.org Git - packages/gtksourceview3.git/blobdiff - gtksourceview3.spec
noarch vala subpackage
[packages/gtksourceview3.git] / gtksourceview3.spec
index 2f97258f20410cac23a1f6bcc6eef19e5411e74c..30f03dbfaeff7ad0bc1bf2988cc950c649b2437b 100644 (file)
@@ -1,27 +1,28 @@
 #
 # Conditional build:
 %bcond_with    glade   # install glade catalog
-#
+%bcond_without vala    # do not build Vala API
+
 Summary:       Text widget that extends the standard GTK+ 3.x
 Summary(pl.UTF-8):     Widget tekstowy rozszerzający standardowy z GTK+ 3.x
 Name:          gtksourceview3
-Version:       3.4.0
-Release:       1
-License:       GPL v2+ and LGPL v2+
+Version:       3.20.0
+Release:       2
+License:       LGPL v2+ (library), GPL v2+ (some language specs files)
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.4/gtksourceview-%{version}.tar.xz
-# Source0-md5: 1d204a88a1527a43a4b384b3082dd091
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.20/gtksourceview-%{version}.tar.xz
+# Source0-md5: 2d8b8f89d18c0dcc080c384e3c17e72d
 URL:           http://www.gnome.org/
 BuildRequires: autoconf >= 2.64
-BuildRequires: automake >= 1:1.11
+BuildRequires: autoconf-archive >= 2015.09.25
+BuildRequires: automake >= 1:1.13
 BuildRequires: docbook-dtd412-xml
-BuildRequires: gettext-devel >= 0.17
-BuildRequires: glib2-devel >= 1:2.28.0
+BuildRequires: gettext-tools >= 0.19.4
+BuildRequires: glib2-devel >= 1:2.47.0
 BuildRequires: gnome-common >= 2.24.0
-BuildRequires: gobject-introspection-devel >= 0.10.0
-BuildRequires: gtk+3-devel >= 3.0.0
-BuildRequires: gtk-doc >= 1.11
-BuildRequires: intltool >= 0.40.0
+BuildRequires: gobject-introspection-devel >= 1.42.0
+BuildRequires: gtk+3-devel >= 3.16.0
+BuildRequires: gtk-doc >= 1.25
 %if %{with glade}
 BuildRequires: libgladeui-devel >= 3.9.0
 %endif
@@ -30,8 +31,10 @@ BuildRequires:       libxml2-devel >= 1:2.6.31
 BuildRequires: pkgconfig
 BuildRequires: rpm-pythonprov
 BuildRequires: tar >= 1:1.22
+BuildRequires: vala
 BuildRequires: xz
-Requires:      glib2 >= 1:2.28.0
+Requires:      glib2 >= 1:2.48.0
+Requires:      gtk+3 >= 3.20.0
 Requires:      libxml2 >= 1:2.6.31
 # sr@Latn vs. sr@latin
 Conflicts:     glibc-misc < 6:2.7
@@ -65,8 +68,8 @@ Summary:      Header files for GtkSourceView
 Summary(pl.UTF-8):     Pliki nagłówkowe dla GtkSourceView
 Group:         X11/Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      glib2-devel >= 1:2.28.0
-Requires:      gtk+3-devel >= 3.0.0
+Requires:      glib2-devel >= 1:2.48.0
+Requires:      gtk+3-devel >= 3.20.0
 Requires:      libxml2-devel >= 1:2.6.31
 
 %description devel
@@ -89,30 +92,53 @@ Statyczna biblioteka GtkSourceView.
 
 %package -n glade3-gtksourceview
 Summary:       Glade3 catalog entry for GtkSourceView library
+Summary(pl.UTF-8):     Wpis katalogu Glade3 dla biblioteki GtkSourceView
 Group:         X11/Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
+Requires:      libgladeui >= 3.9.0
 
 %description -n glade3-gtksourceview
 Glade3 catalog entry for GtkSourceView library.
 
+%description -n glade3-gtksourceview -l pl.UTF-8
+Wpis katalogu Glade3 dla biblioteki GtkSourceView.
+
+%package -n vala-gtksourceview
+Summary:       GtkSourceView API for Vala language
+Summary(pl.UTF-8):     API GtkSourceView dla języka Vala
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      vala
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description -n vala-gtksourceview
+GtkSourceView API for Vala language.
+
+%description -n vala-gtksourceview -l pl.UTF-8
+API GtkSourceView dla języka Vala.
+
 %prep
 %setup -q -n gtksourceview-%{version}
 
+# force new version from autoconf-archive (original one uses non-POSIX ${V:N} syntax)
+%{__rm} m4/ax_compiler_flags_cflags.m4
+
 %build
 %{__gtkdocize}
-%{__intltoolize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
-       --enable-gtk-doc \
-       --enable-static \
-       --with-html-dir=%{_gtkdocdir} \
        %{__enable glade glade-catalog} \
+       --enable-gtk-doc \
        --enable-providers \
-       --disable-silent-rules
+       --disable-silent-rules \
+       --enable-static \
+       --with-html-dir=%{_gtkdocdir}
 %{__make}
 
 %install
@@ -134,7 +160,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -f gtksourceview-3.0.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.0
+%attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.1
 %{_datadir}/gtksourceview-3.0
 %{_libdir}/girepository-1.0/GtkSource-3.0.typelib
 
@@ -158,3 +184,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_datadir}/glade3/catalogs/gtksourceview.xml
 %endif
+
+%if %{with vala}
+%files -n vala-gtksourceview
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/gtksourceview-3.0.deps
+%{_datadir}/vala/vapi/gtksourceview-3.0.vapi
+%endif
This page took 0.126082 seconds and 4 git commands to generate.