phonon/phonon.spec

103 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-12-03 10:24:06 +08:00
Name: phonon
Version: 4.12.0
2022-11-21 13:22:17 +08:00
Release: 1
2019-12-03 10:24:06 +08:00
License: LGPLv2+
2022-11-21 13:22:17 +08:00
Summary: Multimedia framework api
URL: https://community.kde.org/Phonon
Source0: http://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
2019-12-03 10:24:06 +08:00
2022-11-21 13:22:17 +08:00
# filter plugins
%global __provides_exclude_from ^(^%{_qt5_plugindir}/.*\\.so)$
2019-12-03 10:24:06 +08:00
2022-11-21 13:22:17 +08:00
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pulseaudio-libs-devel
BuildRequires: pkgconfig(libxml-2.0)
# Qt5
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Designer)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(xcb)
%description
%{summary}.
2019-12-03 10:24:06 +08:00
%package qt5
2022-11-21 13:22:17 +08:00
Summary: Multimedia framework api for Qt5
2019-12-03 10:24:06 +08:00
%{?_qt5:Requires: %{_qt5} >= %{_qt5_version}}
2022-11-21 13:22:17 +08:00
Recommends: phonon-qt5-backend-gstreamer%{?_isa}
2019-12-03 10:24:06 +08:00
%description qt5
2022-11-21 13:22:17 +08:00
%{summary}.
2019-12-03 10:24:06 +08:00
%package qt5-devel
2022-11-21 13:22:17 +08:00
Summary: Developer files for %{name}-qt5
Requires: %{name}-qt5 = %{version}-%{release}
2019-12-03 10:24:06 +08:00
%description qt5-devel
2022-11-21 13:22:17 +08:00
%{summary}.
2019-12-03 10:24:06 +08:00
%prep
2022-11-21 13:22:17 +08:00
%autosetup -n %{name}-%{version} -p1
2019-12-03 10:24:06 +08:00
%build
2022-11-21 13:22:17 +08:00
%{cmake_kf5} \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DPHONON_BUILD_DECLARATIVE_PLUGIN:BOOL=%{?declarative:ON}%{!?declarative:OFF} \
-DPHONON_BUILD_PHONON4QT5:BOOL=ON \
-DPHONON_BUILD_QT6:BOOL=OFF \
2022-11-21 13:22:17 +08:00
-DPHONON_QT_IMPORTS_INSTALL_DIR=%{_qt5_importdir} \
-DPHONON_QT_MKSPECS_INSTALL_DIR=%{_qt5_archdatadir}/mkspecs/modules \
-DPHONON_QT_PLUGIN_INSTALL_DIR=%{_qt5_plugindir}/designer
mkdir build && cd build
%cmake ../
2019-12-03 10:24:06 +08:00
%install
2022-11-21 13:22:17 +08:00
%make_install
%find_lang %{name} --with-qt --all-name
# own these dirs
mkdir -p %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend
2019-12-03 10:24:06 +08:00
%check
2022-11-21 13:22:17 +08:00
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}
2019-12-03 10:24:06 +08:00
test "$(pkg-config --modversion phonon4qt5)" = "%{version}"
2022-11-21 13:22:17 +08:00
%files qt5 -f %{name}.lang
%license COPYING.LIB
%{_bindir}/phononsettings
%{_libdir}/libphonon4qt5.so.4*
%{_libdir}/libphonon4qt5experimental.so.4*
# own backends dir
2019-12-03 10:24:06 +08:00
%dir %{_qt5_plugindir}/phonon4qt5_backend/
2022-11-21 13:22:17 +08:00
# designer plugin
%{_qt5_plugindir}/designer/phonon4qt5widgets.so
2019-12-03 10:24:06 +08:00
%files qt5-devel
%{_libdir}/cmake/phonon4qt5/
%{_includedir}/phonon4qt5/
2022-11-21 13:22:17 +08:00
%{_libdir}/libphonon4qt5.so
%{_libdir}/libphonon4qt5experimental.so
2019-12-03 10:24:06 +08:00
%{_libdir}/pkgconfig/phonon4qt5.pc
%{_qt5_archdatadir}/mkspecs/modules/qt_phonon4qt5.pri
%changelog
* Thu Feb 29 2024 xu_ping <707078654@qq.com> - 4.12.0-1
- update to 4.12.0
2022-11-21 13:22:17 +08:00
* Mon Nov 21 2022 liweiganga <liweiganga@uniontech.com> - 4.11.1-1
- update to 4.11.1
2022-01-23 08:07:46 +08:00
* Tue Jan 25 2022 pei-jiankang<peijiankang@kylinos.com> - 4.10.1-5
- modify kf5-knotifyconfig compile error
2019-12-03 10:24:06 +08:00
* Mon Dec 2 2019 Ling Yang <lingyang2@huawei.com> - 4.10.1-4
- Package init