%global framework libkcompactdisc Name: kf5-%{framework} Version: 16.12.2 Release: 1%{?dist} Summary: A KDE compact disc library # source code contains bundled workman library but we consider it as a part of the # code as there's no standalone workman lib, it's not used by any other project and # maintainer develops it in kde git in sync with libkcompactdisc # wmlib is LGPLv2+, rest is LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+ URL: https://www.kde.org/applications/multimedia/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{framework}-%{version}.tar.xz ## upstreamable patches BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5KDELibs4Support) BuildRequires: cmake(KF5Solid) BuildRequires: cmake(KF5I18n) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(phonon4qt5) %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -n %{framework}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING COPYING.LIB %{_kf5_libdir}/libKF5CompactDisc.so.5* %files devel %{_kf5_includedir}/KCompactDisc/ %{_kf5_includedir}/kcompactdisc_version.h %{_kf5_libdir}/libKF5CompactDisc.so %{_kf5_libdir}/cmake/KF5CompactDisc/ %{_qt5_archdatadir}/mkspecs/modules/qt_KCompactDisc.pri %changelog * Sun Feb 12 2017 Rex Dieter - 16.12.2-1 - 16.12.2 * Fri Feb 10 2017 Fedora Release Engineering - 16.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Rex Dieter - 16.12.1-1 - 16.12.1