Use rich-dependencies instead of virtual provides

Get major so-ver from macro
This commit is contained in:
Björn Esser 2017-04-10 22:20:04 +02:00
parent 5616bca635
commit d8d4c6915c
1 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,6 @@
%global libsuffix yui
%global libname lib%{libsuffix}
%global devel_min_ver 3.0.4
%global major_so_ver 7
# Setup _pkgdocdir if not defined already.
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
@ -13,7 +12,7 @@
Name: %{libname}-gtk
Version: 2.44.8
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Gtk3 User Interface for %{libname}
License: LGPLv2 or LGPLv3
@ -25,7 +24,7 @@ BuildRequires: cmake >= 2.8
BuildRequires: gtk3-devel
BuildRequires: %{libname}-devel >= %{devel_min_ver}
Provides: %{libsuffix}-ui%{?_isa} == %{major_so_ver}
Supplements: (libyui%{?_isa} and gtk3%{?_isa} and cairo%{?_isa})
%description
This package contains the Gtk3 user interface component
@ -111,7 +110,7 @@ popd
%files
%doc %dir %{?_pkgdocdir}
%license COPYING*
%{_libdir}/%{libsuffix}/%{name}.so.%{major_so_ver}*
%{_libdir}/%{libsuffix}/%{name}.so.%{_libyui_major_so_ver}*
%files devel
%doc %{?_pkgdocdir}/%{name}.changes
@ -128,6 +127,10 @@ popd
%changelog
* Mon Apr 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.44.8-2
- Use rich-dependencies instead of virtual provides
- Get major so-ver from macro
* Mon Apr 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.44.8-1
- New upstream release fixing GTK-warnings