Split out libvala subpackage with the shared library

- Rename vala-devel to libvala-devel to match with the libvala package

https://bugzilla.redhat.com/show_bug.cgi?id=1499590
This commit is contained in:
Kalev Lember 2018-11-12 09:25:05 +01:00
parent 36aee0466e
commit d1bd59dca7

View File

@ -3,7 +3,7 @@
Name: vala Name: vala
Version: 0.42.3 Version: 0.42.3
Release: 1%{?dist} Release: 2%{?dist}
Summary: A modern programming language for GNOME Summary: A modern programming language for GNOME
# Most files are LGPLv2.1+, curses.vapi is 2-clause BSD # Most files are LGPLv2.1+, curses.vapi is 2-clause BSD
@ -29,6 +29,8 @@ BuildRequires: dbus-x11
Requires(posttrans): %{_sbindir}/alternatives Requires(posttrans): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives
Requires: libvala%{?_isa} = %{version}-%{release}
# For GLib-2.0 and GObject-2.0 .gir files # For GLib-2.0 and GObject-2.0 .gir files
Requires: gobject-introspection-devel Requires: gobject-introspection-devel
@ -55,17 +57,33 @@ The syntax of Vala is similar to C#, modified to better fit the GObject
type system. type system.
%package devel %package -n libvala
Summary: Development files for %{name} Summary: Vala compiler library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description -n libvala
Vala is a new programming language that aims to bring modern programming Vala is a new programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to runtime requirements and without using a different ABI compared to
applications and libraries written in C. applications and libraries written in C.
This package contains development files for %{name}. This is not This package contains the shared libvala library.
%package -n libvala-devel
Summary: Development files for libvala
Requires: libvala%{?_isa} = %{version}-%{release}
# Renamed in F30
Provides: vala-devel = %{version}-%{release}
Provides: vala-devel%{?_isa} = %{version}-%{release}
Obsoletes: vala-devel < 0.42.3-2
%description -n libvala-devel
Vala is a new programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to
applications and libraries written in C.
This package contains development files for libvala. This is not
necessary for using the %{name} compiler. necessary for using the %{name} compiler.
@ -177,7 +195,6 @@ done
%{_bindir}/vapigen-%{api_ver} %{_bindir}/vapigen-%{api_ver}
%{_libdir}/pkgconfig/vapigen*.pc %{_libdir}/pkgconfig/vapigen*.pc
%{_libdir}/vala-%{api_ver}/ %{_libdir}/vala-%{api_ver}/
%{_libdir}/libvala-%{api_ver}.so.*
%{_datadir}/aclocal/vala.m4 %{_datadir}/aclocal/vala.m4
%{_datadir}/aclocal/vapigen.m4 %{_datadir}/aclocal/vapigen.m4
%{_datadir}/vala/ %{_datadir}/vala/
@ -189,7 +206,11 @@ done
%{_mandir}/man1/vala-gen-introspect-%{api_ver}.1.gz %{_mandir}/man1/vala-gen-introspect-%{api_ver}.1.gz
%{_mandir}/man1/vapigen-%{api_ver}.1.gz %{_mandir}/man1/vapigen-%{api_ver}.1.gz
%files devel %files -n libvala
%license COPYING
%{_libdir}/libvala-%{api_ver}.so.*
%files -n libvala-devel
%{_includedir}/vala-%{api_ver} %{_includedir}/vala-%{api_ver}
%{_libdir}/libvala-%{api_ver}.so %{_libdir}/libvala-%{api_ver}.so
%{_libdir}/pkgconfig/libvala-%{api_ver}.pc %{_libdir}/pkgconfig/libvala-%{api_ver}.pc
@ -213,6 +234,10 @@ done
%changelog %changelog
* Mon Nov 12 2018 Kalev Lember <klember@redhat.com> - 0.42.3-2
- Split out libvala subpackage with the shared library (#1499590)
- Rename vala-devel to libvala-devel to match with the libvala package
* Wed Nov 07 2018 Kalev Lember <klember@redhat.com> - 0.42.3-1 * Wed Nov 07 2018 Kalev Lember <klember@redhat.com> - 0.42.3-1
- Update to 0.42.3 - Update to 0.42.3