File styleproject.spec of Package styleproject
#
# spec file for package styleproject
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: styleproject
Version: @SERVICE@
Release: 0
Summary: A maclike style for qt5/kde5
License: GPL-2.0-or-later
Group: System/GUI/KDE
URL: https://styleproject.sourceforge.io
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: cmake(KDecoration2)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5GuiAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(dbusmenu-qt5)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: update-desktop-files
Provides: %{name}-qt5 = %{version}
%description
StyleProject is a style qt5 that requires kde for the window decoration. A
Mac-like style for Qt5 and Kwin with stunning looks. Also known as DSP.
%prep
%autosetup
%build
export CXXFLAGS="%{optflags} -fPIE"
export LDFLAGS="-pie"
#%%cmake
mkdir build
pushd build
# FIXME: you should use the %%cmake macros
cmake .. \
-DQT5BUILD=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIBDIR=%{_libdir}
%make_build
popd
%install
%cmake_install
mv %{buildroot}/org.kde.kdecoration2 %{buildroot}%{_libqt5_plugindir}/
rm -rf %{buildroot}%{_includedir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc TODO
%{_bindir}/%{name}_config_qt5
%dir %{_libqt5_plugindir}/org.kde.kdecoration2/
%{_libqt5_plugindir}/org.kde.kdecoration2/dspdecoration.so
%dir %{_libqt5_plugindir}/styles
%{_libqt5_plugindir}/styles/libstyleproject_qt5.so
%{_libdir}/libdsp*_qt5.so
#%%dir %%{_includedir}/dsp
#%%{_includedir}/dsp/settings.h
#%%license LICENSE
%changelog