shift-shell/packaging/plasma-phone-components.spec

152 lines
3.7 KiB
RPMSpec
Raw Normal View History

2014-10-23 19:15:02 +00:00
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#
Name: plasma-phone-components
# >> macros
# << macros
Summary: Plasma Phone Components
2014-12-02 19:09:33 +00:00
Version: 0.2.2
2014-10-23 19:15:02 +00:00
Release: 1
Group: System/GUI/Other
License: GPLv2+
URL: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
Source100: plasma-phone-components.yaml
Requires: greenisland
Requires: plasma-workspace
2014-10-26 21:06:42 +00:00
Requires: plasma-workspace-wallpaper-image
Requires: plasma-desktop
2014-10-23 19:15:02 +00:00
Requires: breeze-icon-theme
2014-10-23 19:20:48 +00:00
Requires: oxygen-fonts
2014-10-26 20:14:54 +00:00
Requires: frameworkintegration
2014-10-30 19:48:13 +00:00
Requires: libqofono-qt5
Requires: libqofono-qt5-declarative
2014-10-30 19:48:13 +00:00
Requires: voicecall-qt5
Requires: voicecall-qt5-plugin-ofono
2014-11-09 15:10:19 +00:00
Requires: nemo-qml-plugin-contextkit-qt5
2014-11-12 17:42:55 +00:00
Requires: tone-generator
2014-10-23 19:15:02 +00:00
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
2014-11-02 20:54:05 +00:00
BuildRequires: pkgconfig(systemd)
2014-10-23 19:15:02 +00:00
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-tools
BuildRequires: plasma-devel
%description
Plasma Phone Components.
%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup
%build
# >> build pre
%kf5_make
# << build pre
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
%kf5_make_install
# << install pre
# >> install post
2014-10-26 20:14:54 +00:00
# Script that runs the UI
# File with environment variables, used by compositor systemd unit
mkdir -p %{buildroot}%{_sharedstatedir}/environment/greenisland
cat > %{buildroot}%{_sharedstatedir}/environment/greenisland/greenisland.conf <<EOF
# Use QScreen backend
KSCREEN_BACKEND=QScreen
# This one is often set to 1 but, at least for hammerhead, we need it set to 0
# TODO: Check whether this is always the case when we'll support more devices
QT_COMPOSITOR_NEGATE_INVERTED_Y=0
EOF
# File with environment variables, used by shell systemd unit
2014-10-26 20:30:42 +00:00
mkdir -p %{buildroot}%{_sharedstatedir}/environment/plasma-phone
cat > %{buildroot}%{_sharedstatedir}/environment/plasma-phone/plasma-phone.conf <<EOF
2014-10-26 20:14:54 +00:00
QT_QPA_PLATFORM=wayland
QT_QPA_PLATFORMTHEME=KDE
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
XDG_CURRENT_DESKTOP=KDE
KSCREEN_BACKEND=QScreen
2014-11-01 20:10:58 +00:00
2014-11-02 18:14:03 +00:00
KDE_FULL_SESSION=1
KDE_SESSION_VERSION=5
2014-10-26 20:14:54 +00:00
EOF
2014-11-01 20:09:40 +00:00
# Default configuration for the UI
2014-10-27 22:33:59 +00:00
mkdir -p %{buildroot}%{_kf5_configdir}
2014-11-01 20:09:40 +00:00
cat > %{buildroot}%{_kf5_configdir}/kded5rc << EOF
[General]
CheckSycoca=false
EOF
2014-10-27 22:33:59 +00:00
cat > %{buildroot}%{_kf5_configdir}/kdeglobals <<EOF
[KDE]
LookAndFeelPackage=org.kde.plasma.phone
2014-10-27 22:33:59 +00:00
[General]
desktopFont=Oxygen Sans,9,-1,5,50,0,0,0,0,0
fixed=Oxygen Mono,8,-1,5,50,0,0,0,0,0
font=Oxygen Sans,9,-1,5,50,0,0,0,0,0
menuFont=Oxygen Sans,9,-1,5,50,0,0,0,0,0
smallestReadableFont=Oxygen Sans,7,-1,5,50,0,0,0,0,0
taskbarFont=Oxygen Sans,9,-1,5,50,0,0,0,0,0
toolBarFont=Oxygen Sans,8,-1,5,50,0,0,0,0,0
[Icons]
Theme=breeze
[Theme]
name=default
EOF
2014-11-02 20:54:05 +00:00
# Install services links
mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants
#UNITS="plasma-phone-compositor plasma-phone-ui"
UNITS="plasma-phone"
for service in $UNITS; do
2014-11-02 20:54:05 +00:00
ln -sf ../${service}.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/${service}.service
2014-10-28 23:48:54 +00:00
done
2014-10-23 19:15:02 +00:00
# << install post
%files
%defattr(-,root,root,-)
2014-10-27 22:33:59 +00:00
%config %{_kf5_configdir}/kdeglobals
2014-11-01 20:09:40 +00:00
%config %{_kf5_configdir}/kded5rc
%{_bindir}/plasma-phone
2014-10-23 19:15:02 +00:00
%{_kf5_sharedir}/plasma/*
%{_kf5_sharedir}/wallpapers/*
2014-12-02 19:18:34 +00:00
%{_kf5_sharedir}/settingsmodules/*
2014-10-23 19:15:02 +00:00
%{_kf5_servicesdir}/*.desktop
%{_sharedstatedir}/environment/greenisland/*
2014-10-26 20:14:54 +00:00
%{_sharedstatedir}/environment/plasma-phone/*
%{_libdir}/systemd/user/*
%{_libdir}/systemd/user/user-session.target.wants/*
2014-10-28 23:49:42 +00:00
%{_libdir}/qt5/qml/*
2014-10-23 19:15:02 +00:00
# >> files
# << files