kf5-filesystem/kf5-filesystem.spec

140 lines
4.9 KiB
RPMSpec

#
# spec file for package kf5-filesystem
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: kf5-filesystem
Url: http://www.kde.org
Version: 4.95.0~git
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: KF5 Directory Layout
License: LGPL-2.1+
Group: System/Fhs
Obsoletes: kf5
Obsoletes: kf5-devel
Source0: macros.kf5
Source1: COPYING
BuildRequires: libqt5-qtbase-common-devel
Requires: libqt5-qtbase-common-devel
%description
This package installs the KF5 directory structure.
%prep
%build
%install
install -D -m644 %{SOURCE0} %{buildroot}%{_sysconfdir}/rpm/macros.kf5
install -D -m644 %{SOURCE1} %{buildroot}%{_docdir}/kf5-filesystem/COPYING
%define _kf5_prefix %{_prefix}
%define _kf5_bindir %{_kf5_prefix}/bin
%define _kf5_sharedir %{_datadir}
%define _kf5_datadir %{_datadir}
%define _kf5_includedir %{_includedir}/KF5
%define _kf5_libdir %{_kf5_prefix}/%{_lib}
%define _kf5_libexecdir %{_kf5_libdir}/kde5/libexec
%define _kf5_mandir %{_mandir}
%define _kf5_sbindir %{_sbindir}
%define _kf5_sysconfdir %{_sysconfdir}
%define _qt5_plugindir %{_libqt5_plugindir}
%define _kf5_plugindir %{_qt5_plugindir}/kf5
%define _kf5_importdir %{_libqt5_importdir}
%define _kf5_qmldir %{_libqt5_archdatadir}/qml
%define _kf5_cmakedir %{_kf5_libdir}/cmake
%define _kf5_mkspecsdir %{_libqt5_archdatadir}/mkspecs/modules
# Until all interfaces are renamed
%define _kf5_dbusinterfacesdir %{_kf5_datadir}/dbus-1/interfaces/kf5
%define _kf5_configdir %{_kf5_sysconfdir}/xdg
%define _kf5_applicationsdir %{_kf5_sharedir}/applications/kde5
%define _kf5_iconsdir %{_kf5_sharedir}/icons
%define _kf5_wallpapersdir %{_kf5_sharedir}/wallpapers
%define _kf5_appsdir %{_kf5_datadir}
%define _kf5_configkcfgdir %{_kf5_sharedir}/config.kcfg
%define _kf5_servicesdir %{_kf5_sharedir}/kde5/services
%define _kf5_servicetypesdir %{_kf5_sharedir}/kde5/servicetypes
%define _kf5_htmldir %{_kf5_sharedir}/doc/HTML
mkdir -p %{buildroot}%{_kf5_includedir}
mkdir -p %{buildroot}%{_kf5_libexecdir}
mkdir -p %{buildroot}%{_qt5_plugindir}
mkdir -p %{buildroot}%{_kf5_plugindir}/kf5
mkdir -p %{buildroot}%{_kf5_qmldir}
mkdir -p %{buildroot}%{_kf5_importdir}
mkdir -p %{buildroot}%{_kf5_mandir}
mkdir -p %{buildroot}%{_kf5_mandir}/man{1,2,3,4,5,6,7,8,9}
mkdir -p %{buildroot}%{_kf5_sbindir}
mkdir -p %{buildroot}%{_kf5_sysconfdir}
mkdir -p %{buildroot}%{_kf5_sysconfdir}/xdg
mkdir -p %{buildroot}%{_kf5_sysconfdir}/dbus-1
mkdir -p %{buildroot}%{_kf5_sysconfdir}/dbus-1/system.d
mkdir -p %{buildroot}%{_kf5_cmakedir}
mkdir -p %{buildroot}%{_kf5_dbusinterfacesdir}
mkdir -p %{buildroot}%{_kf5_servicesdir}
mkdir -p %{buildroot}%{_kf5_servicetypesdir}
mkdir -p %{buildroot}%{_kf5_datadir}/applications
mkdir -p %{buildroot}%{_kf5_datadir}/applications/kde5
mkdir -p %{buildroot}%{_kf5_configdir}
mkdir -p %{buildroot}%{_kf5_datadir}/kf5widgets
mkdir -p %{buildroot}%{_kf5_datadir}/kf5widgets/pics
for size in scalable 128x128 64x64 48x48 32x32 22x22 16x16; do
for type in actions apps devices filesystems mimetypes places status; do
for theme in crystalsvg oxygen hicolor locolor; do
mkdir -p %{buildroot}%{_kf5_datadir}/icons/$theme/$size/$type
done
done
done
mkdir -p %{buildroot}%{_kf5_datadir}/icons/oxygen/scalable/apps/small/{16x16,32x32}
mkdir -p %{buildroot}%{_kf5_datadir}/icons/oxygen/scalable/status/small/{16x16,22x22,48x48}
%files
%defattr(-,root,root)
%{_sysconfdir}/rpm/macros.kf5
%dir %{_docdir}/kf5-filesystem
%{_docdir}/kf5-filesystem/COPYING
%dir %{_kf5_includedir}
%dir %{_kf5_libdir}/kde5
%dir %{_qt5_plugindir}
%dir %{_kf5_plugindir}
%dir %{_kf5_libexecdir}
%dir %{_kf5_plugindir}
%dir %{_kf5_plugindir}/kf5
%dir %{_kf5_qmldir}
%dir %{_kf5_importdir}
%dir %{_kf5_sysconfdir}/xdg
%dir %{_kf5_sysconfdir}/dbus-1
%dir %{_kf5_sysconfdir}/dbus-1/system.d
%dir %{_kf5_cmakedir}
%dir %{_kf5_datadir}/dbus-1
%dir %{_kf5_datadir}/dbus-1/interfaces
%dir %{_kf5_dbusinterfacesdir}
%dir %{_kf5_datadir}/kde5
%dir %{_kf5_servicesdir}
%dir %{_kf5_servicetypesdir}
%dir %{_kf5_datadir}/applications/kde5
%dir %{_kf5_configdir}
%dir %{_kf5_datadir}/kf5widgets
%dir %{_kf5_datadir}/kf5widgets/pics
%dir %{_kf5_datadir}/icons/*
%dir %{_kf5_datadir}/icons/*/*
%dir %{_kf5_datadir}/icons/*/*/*
%changelog