%define _kde4_prefix %_prefix %define _kde4_sysconfdir %_sysconfdir %define _kde4_libdir %_libdir %define _kde4_libexecdir %_libexecdir/kde4 %define _kde4_datadir %_datadir %define _kde4_sharedir %_datadir %define _kde4_iconsdir %_kde4_sharedir/icons %define _kde4_configdir %_kde4_sharedir/config %define _kde4_appsdir %_kde4_sharedir/kde4/apps %define _kde4_docdir %_kde4_prefix/share/doc %define _kde4_bindir %_kde4_prefix/bin %define _kde4_sbindir %_kde4_prefix/sbin %define _kde4_includedir %_kde4_prefix/include/kde4 %define _kde4_buildtype release %define _kde4_macros_api 2 %define rpm_macros_dir %{_rpmconfigdir}/macros.d Summary: KDE filesystem layout Name: kde-filesystem Version: 5 Release: 3%{?dist} License: Public Domain # noarch->arch transition Obsoletes: kde-filesystem < 4-36 # teamnames (locales) borrowed from kde-i18n packaging Source1: teamnames Source2: macros.kde4 # increment whenever dirs change in an incompatible way # kde4 apps built using macros.kde4 should Source3: applnk-hidden-directory BuildRequires: gawk Requires: filesystem Requires: rpm %description This package provides some directories that are required/used by KDE. %package -n kde3-filesystem Summary: Filesystem for KDE 3 License: Public Domain Requires: %{name} = %{version}-%{release} %description -n kde3-filesystem This package provides some directories that are required/used by KDE 3 applications. %package -n kde4-filesystem Summary: Filesystem and RPM macros for KDE 4 License: Public Domain Provides: kde4-macros(api) = %{_kde4_macros_api} Requires: %{name} = %{version}-%{release} %description -n kde4-filesystem This package provides some directories that are required/used by KDE 4 applications. %prep %build %install ## KDE3 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kde/{env,shutdown,kdm} mkdir -p $RPM_BUILD_ROOT%{_datadir}/{applications/kde,applnk,apps,autostart,config,config.kcfg,emoticons,mimelnk,services,servicetypes,templates,source} mkdir -p $RPM_BUILD_ROOT%{_datadir}/apps/konqueror/servicemenus # not sure who best should own locolor, so we'll included it here, for now. -- Rex mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/locolor/{16x16,22x22,32x32,48x48}/{actions,apps,mimetypes} mkdir -p $RPM_BUILD_ROOT%{_datadir}/applnk/{.hidden,Applications,Edutainment,Graphics,Internet,Settings,System,Toys,Utilities} mkdir -p $RPM_BUILD_ROOT%{_datadir}/mimelnk/{all,application,audio,fonts,image,inode,interface,media,message,model,multipart,print,text,uri,video} # do qt3 too? # mkdir -p $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/qt-3.3/plugins mkdir -p $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/kde3/plugins mkdir -p $RPM_BUILD_ROOT%{_docdir}/HTML/en rm -f %{name}.list for locale in $(grep '=' %{SOURCE1} | awk -F= '{print $1}') ; do mkdir -p $RPM_BUILD_ROOT%{_docdir}/HTML/${locale}/common # do docs/common too, but it could be argued that apps/pkgs using or # depending on is a bug -- Rex mkdir -p $RPM_BUILD_ROOT%{_docdir}/HTML/${locale}/docs/ ln -s ../common $RPM_BUILD_ROOT%{_docdir}/HTML/${locale}/docs/common echo "%lang($locale) %{_docdir}/HTML/$locale/" >> %{name}.list done # internal services shouldn't be displayed in menu install -p -m644 -D %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/applnk/.hidden/.directory ## KDE4 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm \ $RPM_BUILD_ROOT%{_kde4_sysconfdir}/kde/{env,shutdown,kdm} \ $RPM_BUILD_ROOT%{_kde4_includedir} \ $RPM_BUILD_ROOT%{_kde4_libexecdir} \ $RPM_BUILD_ROOT%{_kde4_appsdir}/color-schemes \ $RPM_BUILD_ROOT%{_kde4_appsdir}/solid/actions \ $RPM_BUILD_ROOT%{_kde4_datadir}/applications/kde4 \ $RPM_BUILD_ROOT%{_kde4_datadir}/{autostart,wallpapers} \ $RPM_BUILD_ROOT%{_kde4_configdir} \ $RPM_BUILD_ROOT%{_kde4_sharedir}/config.kcfg \ $RPM_BUILD_ROOT%{_kde4_sharedir}/emoticons \ $RPM_BUILD_ROOT%{_kde4_sharedir}/kde4/services/ServiceMenus \ $RPM_BUILD_ROOT%{_kde4_sharedir}/kde4/servicetypes \ $RPM_BUILD_ROOT%{_kde4_sharedir}/templates/.source \ $RPM_BUILD_ROOT%{_kde4_datadir}/icons/locolor/{16x16,22x22,32x32,48x48}/{actions,apps,mimetypes} \ $RPM_BUILD_ROOT%{_kde4_docdir}/HTML/en/common # do qt4 too? # mkdir -p $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/qt4/plugins mkdir -p $RPM_BUILD_ROOT%{_kde4_prefix}/{lib,%{_lib}}/kde4/plugins/{gui_platform,styles} for locale in $(grep '=' %{SOURCE1} | awk -F= '{print $1}') ; do mkdir -p $RPM_BUILD_ROOT%{_kde4_docdir}/HTML/${locale}/common echo "%lang($locale) %{_kde4_docdir}/HTML/$locale/" >> %{name}.list done # rpm macros mkdir -p $RPM_BUILD_ROOT%{rpm_macros_dir} cat >$RPM_BUILD_ROOT%{rpm_macros_dir}/macros.kde4<> $RPM_BUILD_ROOT%{rpm_macros_dir}/macros.kde4 ## Plasma5, forward compatibility mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xdg/plasma-workspace/{env,shutdown} mkdir -p $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/kconf_update_bin mkdir -p $RPM_BUILD_ROOT%{_datadir}/kconf_update mkdir -p $RPM_BUILD_ROOT%{_datadir}/knsrcfiles mkdir -p $RPM_BUILD_ROOT%{_datadir}/kpackage/{genericqml,kcms} mkdir -p $RPM_BUILD_ROOT%{_datadir}/solid/{actions,devices} %files -f %{name}.list %{_sysconfdir}/xdg/plasma-workspace/ %{_prefix}/lib/kconf_update_bin/ %{_prefix}/%{_lib}/kconf_update_bin/ %dir %{_docdir}/HTML/ %lang(en) %{_docdir}/HTML/en/ %{_datadir}/config.kcfg/ %{_datadir}/emoticons/ %{_datadir}/icons/locolor/ %{_datadir}/kconf_update/ %{_datadir}/knsrcfiles/ %{_datadir}/kpackage/ %{_datadir}/solid/ %{_datadir}/templates/ %{_datadir}/wallpapers/ %files -n kde3-filesystem %{_sysconfdir}/kde/ %{_datadir}/applications/kde/ %{_datadir}/applnk/ %{_datadir}/apps/ %{_datadir}/autostart/ %{_datadir}/config/ %{_datadir}/mimelnk/ %{_datadir}/services/ %{_datadir}/servicetypes/ %{_prefix}/lib/kde3/ %{_prefix}/%{_lib}/kde3/ %files -n kde4-filesystem %{rpm_macros_dir}/macros.kde4 %{_kde4_sysconfdir}/kde/ %{_kde4_libexecdir}/ %{_kde4_includedir}/ %{_kde4_appsdir}/ %{_kde4_configdir}/ %{_kde4_sharedir}/kde4/ %{_kde4_datadir}/applications/kde4/ %{_kde4_datadir}/autostart/ %{_kde4_prefix}/lib/kde4/ %{_kde4_prefix}/%{_lib}/kde4/ %changelog * Wed Jan 24 2024 Fedora Release Engineering - 5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Aug 21 2023 Yaakov Selkowitz - 5-1 - Consolidate all common KDE directories - Split out KDE 3 and 4 directories into subpackages * Thu Jul 20 2023 Fedora Release Engineering - 4-70 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 4-69 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 4-68 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 4-67 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 4-66 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 4-65 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 4-64 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 4-63 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 4-62 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 4-61 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 4-60 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 03 2018 Rex Dieter - 4-59 - cleanup * Wed Feb 07 2018 Fedora Release Engineering - 4-58 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 4-57 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 4-56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 4-55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jul 08 2016 Rex Dieter - 4-54 - Obsoletes: kdegraphics, kdenetwork, kdesdk (f25+) * Thu Feb 04 2016 Fedora Release Engineering - 4-53 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 4-52 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 30 2015 Rex Dieter 4-51 - own /etc/xdg/plasma-workspace/, /etc/xdg/plasma-workspace/{env,shutdown} * Tue Oct 14 2014 Rex Dieter 4-50 - macros.kde4: -DCMAKE_USE_RELATIVE_PATHS:BOOL=ON * Sat Aug 16 2014 Fedora Release Engineering - 4-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jul 08 2014 Rex Dieter 4-48 - own %%{_kde4_appsdir}/solid, %%{_kde4_appsdir}/solid/actions * Sun Jun 08 2014 Fedora Release Engineering - 4-47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 4-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Mar 16 2013 Rex Dieter 4-45 - use %%{_rpmconfigdir}/macros.d/macros.kde4 (f19+) * Sat Mar 09 2013 Ralf Corsépius - 4-44 - Remove %%config from %%{_sysconfdir}/rpm/macros.* (https://fedorahosted.org/fpc/ticket/259). * Thu Feb 14 2013 Fedora Release Engineering - 4-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 06 2012 Ville Skyttä - 4-42 - Sync FFLAGS and LDFLAGS in the %%cmake_kde4 macro with redhat-rpm-config (#737386) * Mon Dec 03 2012 Rex Dieter 4-41 - macros.kde4: %%cmake_kde4 add -DKDE4_BUILD_TESTS=OFF * Thu Jul 19 2012 Fedora Release Engineering - 4-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 4-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 4-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 18 2011 Rex Dieter - 4-37 - Unowned /usr/lib*/kde4/plugins/{gui_platform,styles} dirs (#645059) * Tue Oct 19 2010 Rex Dieter - 4-36 - own /usr/lib*/kde3,/usr/lib*/kde4 (#644571) - simplify stuff, remove crud * Sat Feb 13 2010 Rex Dieter - 4-35 - macros.kde4: restore %%cmake_lib_suffix64 * Mon Feb 01 2010 Rex Dieter - 4-34 - macros.kde4: %%cmake_kde4: drop %%cmake_skip_rpath, %%cmake_lib_suffix64 * Wed Jan 27 2010 Rex Dieter - 4-33 - macros.kde4: %%{_kde4_version} using (upstreamed) --kde-version now * Wed Jan 27 2010 Rex Dieter - 4-32 - macros.kde4: make %%{_kde4_version} actually work right (using old --version output, for now) * Wed Jan 27 2010 Rex Dieter - 4-31 - macros.kde4: +%%{_kde4_version} * Wed Aug 05 2009 Rex Dieter - 4-30 - kill the ownership of %%_datadir/sounds (#515745) * Tue Aug 04 2009 Rex Dieter - 4-29 - drop unused (and confusing) /etc/kde4/ crud * Fri Jul 24 2009 Fedora Release Engineering - 4-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jun 13 2009 Rex Dieter 4-27 - Should own /usr/share/kde4/services/ServiceMenus (#505735) * Mon May 11 2009 Rex Dieter 4-26 - own %%_docdir/HTML//{common,docs/common} (#445108) * Thu Mar 12 2009 Rex Dieter 4-25 - own %%_kde4_datadir/wallpapers (revert -20) * Wed Feb 25 2009 Fedora Release Engineering - 4-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 08 2009 Rex Dieter 4-23 - macros.kde4: use %%_cmake_lib_suffix64, %%_cmake_lib_suffix64 * Thu Dec 04 2008 Rex Dieter 4-22 - macros.kde4: (re)add -DCMAKE_SKIP_RPATH:BOOL=ON * Tue Dec 02 2008 Rex Dieter 4-21 - sync latest cmake macros - macros.kde4: add -DCMAKE_VERBOSE_MAKEFILE=ON to %%cmake_kde4 (#474053) * Wed Oct 08 2008 Than Ngo 4-20 - /usr/share/wallpapers owned by desktop-backgrounds-basic * Sat Sep 13 2008 Than Ngo 4-19 - it's not needed to bump _kde4_macros_api - use macro * Sat Sep 13 2008 Than Ngo 4-18 - remove redundant FEDORA, use CMAKE_BUILD_TYPE=release * Mon Jul 14 2008 Rex Dieter 4-17 - + %%_kde4_sharedir/kde4 * Sun Jun 29 2008 Rex Dieter 4-16 - + %%_datadir/apps/konqueror(/servicemenus) * Fri May 16 2008 Rex Dieter 4-15 - omit %%_sysconfdir/kde/xdg (see also #249109) * Thu Apr 03 2008 Kevin Kofler 4-14 - don't define %%{_kde4_debug} in macros.kde4 anymore * Wed Apr 02 2008 Rex Dieter 4-13 - define %%{_kde4_buildtype} in macros.kde4 too * Mon Mar 31 2008 Kevin Kofler 4-12 - actually define %%{_kde4_libexecdir} in macros.kde4 * Mon Mar 31 2008 Kevin Kofler 4-11 - add %%{_kde4_libexecdir}, set LIBEXEC_INSTALL_DIR to it - don't own %%{_kde4_libdir} which is just %%{_libdir} * Mon Mar 31 2008 Rex Dieter 4-10 - macros.kde4: _kde4_buildtype=FEDORA * Fri Mar 28 2008 Than Ngo 4-9 - internal services shouldn't be displayed in menu, bz#321771 * Sun Jan 27 2008 Rex Dieter 4-8 - should not own %%_datadir/desktop-directories/ (#430420) * Fri Jan 25 2008 Kevin Kofler 4-7 - own %%{_kde4_appsdir}/color-schemes * Mon Jan 07 2008 Rex Dieter 4-6 - -Requires: redhat-rpm-config (revert 4-1 addition) * Sun Dec 30 2007 Rex Dieter 4-5 - +%%_datadir/autostart, %%_kde4_datadir/autostart * Tue Dec 11 2007 Kevin Kofler 4-4 - set INCLUDE_INSTALL_DIR in %%cmake_kde4 * Tue Dec 11 2007 Kevin Kofler 4-3 - actually create the directory listed in the file list * Tue Dec 11 2007 Kevin Kofler 4-2 - set kde4_includedir to %%_kde4_prefix/include/kde4 * Mon Nov 19 2007 Rex Dieter 4-1 - Version: 4 - %%cmake_kde4: add -DCMAKE_SKIP_RPATH:BOOL=ON - Requires: redhat-rpm-config (for proper rpm macro defs) (hmm... may need a new -devel pkg somewhere) * Mon Aug 27 2007 Rex Dieter 3.92-9 - BR: gawk - - %%_prefix/{env,shutdown} (non-FHS) * Wed Aug 15 2007 Rex Dieter 3.92-8 - simplify macros a bit * Tue Aug 14 2007 Rex Dieter 3.92-7 - kde4-macros(api), %%_kde4_macros_api * Fri Aug 10 2007 Rex Dieter 3.92-6 - restore kde3 dirs * Thu Aug 09 2007 Than Ngo - 3.92-5 - use macros * Thu Aug 09 2007 Than Ngo - 3.92-4 - fix kde4 macro * Thu Aug 09 2007 Rex Dieter 3.92-3 - cleanup macros.kde4 (mostly use _kde4_ prefix) - Requires: rpm * Tue Aug 07 2007 Than Ngo 3.92-2 - add missing macros.kde4 * Mon Aug 06 2007 Than Ngo - 3.92-1 - kde4 filesystem - add KDE4 macros * Thu Jul 19 2007 Rex Dieter 3.5-9 - +%%_datadir/{sounds,templates/.source,wallpapers} * Wed Jul 18 2007 Rex Dieter 3.5-8 - +%%_datadir/{autostart,emoticons,mimelnk/*} - +%%_sysconfdir/kde/xdg * Wed Jul 18 2007 Rex Dieter 3.5-7 - - %%_datadir/icons (owned by filesystem) - + %%_datadir/icons/locolor (until owned elsewhere) * Fri Dec 01 2006 Rex Dieter 3.5-6 - + %%_datadir/templates (kdebase,koffice) * Wed Oct 18 2006 Rex Dieter 3.5-5 - + %%_datadir/icons/locolor * Tue Oct 17 2006 Rex Dieter 3.5-4 - drop/omit %%_datadir/locale/all_languages * Fri Oct 13 2006 Rex Dieter 3.5-3 - + %%_datadir/desktop-directories - + %%_datadir/locale/all_languages * Thu Oct 12 2006 Rex Dieter 3.5-2 - + %%_datadir/applnk/.hidden - + %%_sysconfdir/kde/kdm - + %%docdir/HTML/en * Wed Oct 11 2006 Rex Dieter 3.5-1 - first try