forked from pool/phonon-vlc
Accepting request 1152270 from home:Vogtinator:frameworks6
- Use the translations from the Qt 5 build for both flavors OBS-URL: https://build.opensuse.org/request/show/1152270 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/phonon-vlc?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 27 12:13:18 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Use the translations from the Qt 5 build for both flavors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 30 12:39:48 UTC 2023 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
|
@@ -56,8 +56,6 @@ BuildRequires: cmake(Qt5Widgets) >= %{qt5_version}
|
||||
Provides: phonon4qt5-backend = %{version}
|
||||
Provides: phonon4qt5-backend-vlc = %{version}
|
||||
Obsoletes: phonon4qt5-backend-vlc < %{version}
|
||||
# Translation package was renamed
|
||||
Obsoletes: phonon4qt5-backend-vlc-lang < %{version}
|
||||
%endif
|
||||
%if 0%{?qt6}
|
||||
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
||||
@@ -66,8 +64,8 @@ BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6LinguistTools) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
||||
Provides: phonon-qt6-backend = %{version}
|
||||
# Catalog name conflicts
|
||||
Conflicts: phonon-vlc-qt5-lang
|
||||
# AFAIK locale(pkg:xx) might not work with provides, do it explicitly
|
||||
Recommends: phonon-vlc-qt5-lang
|
||||
%endif
|
||||
# TODO? vlc-noX needs to be installed before the backend to run vlc-cache-gen
|
||||
# Requires(post): vlc-noX
|
||||
@@ -81,7 +79,18 @@ used.
|
||||
|
||||
This is the VLC backend for Phonon
|
||||
|
||||
%lang_package -n phonon-vlc%{?pkg_suffix}
|
||||
# It's phonon_vlc_qt.qm for both. To avoid conflicts, use the Qt 5 translations
|
||||
# for both.
|
||||
%package -n phonon-vlc-lang
|
||||
Summary: Translations for package %{name}
|
||||
Requires: (phonon-vlc-qt5 or phonon-vlc-qt6)
|
||||
Provides: phonon4qt5-backend-vlc-lang = %{version}
|
||||
Obsoletes: phonon4qt5-backend-vlc-lang < %{version}
|
||||
Provides: %{name}-lang-all = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description lang
|
||||
Provides translations for the "%{name}" packages.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{rname}-%{version}
|
||||
@@ -100,14 +109,14 @@ This is the VLC backend for Phonon
|
||||
%install
|
||||
%if 0%{?qt5}
|
||||
%kf5_makeinstall -C build
|
||||
%find_lang phonon_vlc %{name}.lang --with-qt
|
||||
%endif
|
||||
|
||||
%if 0%{?qt6}
|
||||
%kf6_install
|
||||
rm -r %{buildroot}/%{_datadir}/locale/*/*/phonon_vlc_qt.qm
|
||||
%endif
|
||||
|
||||
%find_lang phonon_vlc %{name}.lang --with-qt
|
||||
|
||||
%post
|
||||
%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins
|
||||
|
||||
@@ -123,6 +132,8 @@ This is the VLC backend for Phonon
|
||||
%{_kf6_plugindir}/phonon4qt6_backend/phonon_vlc_qt6.so
|
||||
%endif
|
||||
|
||||
%files -n phonon-vlc%{?pkg_suffix}-lang -f %{name}.lang
|
||||
%if 0%{?qt5}
|
||||
%files -n phonon-vlc-lang -f %{name}.lang
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user