From ee765bc2106b01c92de74c10774f3d67e78ba213 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 17 Dec 2020 22:25:15 +0100 Subject: [PATCH] Update strawberry.spec --- dist/unix/strawberry.spec.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/unix/strawberry.spec.in b/dist/unix/strawberry.spec.in index 60858d0be..6f21c1f0b 100644 --- a/dist/unix/strawberry.spec.in +++ b/dist/unix/strawberry.spec.in @@ -1,12 +1,15 @@ Name: strawberry Version: @STRAWBERRY_VERSION_RPM_V@ +%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos} +Release: @STRAWBERRY_VERSION_RPM_R@%{?dist} +%else Release: @STRAWBERRY_VERSION_RPM_R@.@RPM_DISTRO@ +%endif Summary: A music player and music collection organizer -Group: Applications/Multimedia +Group: Productivity/Multimedia/Sound/Players License: GPL-3.0+ URL: https://www.strawberrymusicplayer.org/ Source0: %{name}-@STRAWBERRY_VERSION_PACKAGE@.tar.xz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?suse_version} && 0%{?suse_version} > 1325 BuildRequires: libboost_headers-devel @@ -125,7 +128,7 @@ Features: export CXXFLAGS="-fPIC $RPM_OPT_FLAGS" %endif %{cmake} -DCMAKE_BUILD_TYPE:STRING=Release -DQT_MAJOR_VERSION=@QT_MAJOR_VERSION@ -%if 0%{?centos} || 0%{?mageia} +%if 0%{?centos} || (0%{?mageia} && 0%{?mageia} <= 7) %make_build %else %cmake_build