Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Frameworks5
kscd5
_service:set_version:kscd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:kscd.spec of Package kscd5
# # spec file for package kscd # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define kf5_version 5.26.0 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) %{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} Name: kscd5 Version: 18.11.80git.20180321T140956~af73a1c Release: 0 Summary: CD Player License: GPL-2.0+ Group: Productivity/Multimedia/Sound/Players Url: http://www.kde.org Source0: kscd-%{version}.tar.xz BuildRequires: extra-cmake-modules BuildRequires: kconfig-devel BuildRequires: kconfigwidgets-devel BuildRequires: kcoreaddons-devel BuildRequires: kdbusaddons-devel BuildRequires: kf5-filesystem BuildRequires: kglobalaccel-devel BuildRequires: ki18n-devel BuildRequires: kiconthemes-devel BuildRequires: kwidgetsaddons-devel BuildRequires: kxmlgui-devel BuildRequires: libdiscid-devel BuildRequires: libmusicbrainz5-devel BuildRequires: phonon4qt5-devel BuildRequires: solid-devel BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KDE's CD Player %prep %setup -q -n kscd-%{version} # fix build with Qt 5.14 sed -i '/#include <QList>/a #include <QObject>' mbmanager.h sed -i '/#include <QDesktopServices>/a #include <QUrl>/' mbmanager.cpp sed -i 's/QString url = QString::fromUtf8(discid_get_submission_url(m_discid));/QUrl url(QString::fromUtf8(discid_get_submission_url(m_discid)));/' mbmanager.cpp # hardcode to /opt/kf5/share/ for now, the dir lookup code is basically broken as QStandardPaths::DataLocation).last() can be any dir and is likely not the one we installed to in the first place... (also there's a '/' missing) sed -i 's!QStandardPaths::standardLocations(QStandardPaths::DataLocation).last() + QLatin1String( "/kscd/skin/" )!QLatin1String( "/opt/kf5/share/kscd/skin/" )!' kscd.cpp sed -i 's!QStandardPaths::standardLocations(QStandardPaths::DataLocation).last() + QLatin1String( "kscd/skin/" )!QLatin1String( "/opt/kf5/share/kscd/skin/" )!' kscd.cpp sed -i 's!QStandardPaths::standardLocations(QStandardPaths::DataLocation).last() + "kscd/skin/"!QLatin1String( "/opt/kf5/share/kscd/skin/" )!' kscd.cpp sed -i 's!QStandardPaths::standardLocations(QStandardPaths::DataLocation).last() + QLatin1String("kscd/skin/default.svg")!QLatin1String("/opt/kf5/share/kscd/skin/default.svg")!' kscd.kcfg %build %cmake_kf5 -d build %make_jobs %install cd build %kf5_makeinstall %suse_update_desktop_file org.kde.kscd AudioVideo Player CD %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING README TODO #{_kf5_iconsdir}/oxygen/*/actions/kscd-dock.* %dir %{_kf5_configkcfgdir} %dir %{_kf5_iconsdir}/hicolor/*/apps %{_kf5_applicationsdir}/org.kde.kscd.desktop %{_kf5_sharedir}/solid/ %{_kf5_bindir}/kscd %{_kf5_configkcfgdir}/kscd.kcfg %{_kf5_dbusinterfacesdir}/org.kde.kscd.* %{_kf5_iconsdir}/hicolor/*/apps/kscd.* %{_kf5_sharedir}/kscd/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor