Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
4.7 KiB

7 years ago
  1. Name: tigeros-logos
  2. Version: 1.0.0
  3. Release: 3%{?dist}
  4. Summary: Icons and pictures
  5. Group: System Environment/Base
  6. URL: https://github.com/RITlug/TigerOS
  7. Source0: %{name}.tar.gz
  8. #The KDE Logo is under a LGPL license (no version statement)
  9. License: GPLv2 and LGPLv2+
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildArch: noarch
  12. Obsoletes: redhat-logos
  13. Obsoletes: generic-logos < 17.0.0-5
  14. Provides: redhat-logos = %{version}-%{release}
  15. Provides: system-logos = %{version}-%{release}
  16. Obsoletes: fedora-logos
  17. Provides: fedora-logos
  18. Conflicts: anaconda-images <= 10
  19. Conflicts: redhat-artwork <= 5.0.5
  20. BuildRequires: hardlink
  21. # For _kde4_* macros:
  22. BuildRequires: kde-filesystem
  23. # For generating the EFI icon
  24. BuildRequires: libicns-utils
  25. Requires(post): coreutils
  26. %description
  27. The TigerOS-logos package contains various image files which can be
  28. used by the bootloader, anaconda, and other related tools.
  29. It replaces generic-logos for the TigerOS Fedora Remix
  30. %prep
  31. %setup -q
  32. %build
  33. make
  34. %install
  35. rm -rf %{buildroot}
  36. mkdir -p %{buildroot}%{_datadir}/firstboot/themes/generic
  37. for i in firstboot/* ; do
  38. install -p -m 644 $i %{buildroot}%{_datadir}/firstboot/themes/generic
  39. done
  40. mkdir -p %{buildroot}%{_datadir}/pixmaps/bootloader
  41. install -p -m 644 bootloader/fedora.icns %{buildroot}%{_datadir}/pixmaps/bootloader
  42. install -p -m 644 bootloader/fedora.vol %{buildroot}%{_datadir}/pixmaps/bootloader
  43. install -p -m 644 bootloader/fedora-media.vol %{buildroot}%{_datadir}/pixmaps/bootloader
  44. mkdir -p %{buildroot}%{_datadir}/pixmaps/splash
  45. for i in gnome-splash/* ; do
  46. install -p -m 644 $i %{buildroot}%{_datadir}/pixmaps/splash
  47. done
  48. mkdir -p %{buildroot}%{_datadir}/pixmaps
  49. for i in pixmaps/* ; do
  50. install -p -m 644 $i %{buildroot}%{_datadir}/pixmaps
  51. done
  52. mkdir -p %{buildroot}%{_kde4_iconsdir}/oxygen/48x48/apps/
  53. install -p -m 644 icons/Fedora/48x48/apps/* %{buildroot}%{_kde4_iconsdir}/oxygen/48x48/apps/
  54. mkdir -p %{buildroot}%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536
  55. install -p -m 644 ksplash/SolarComet-kde.png %{buildroot}%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
  56. mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge/
  57. for i in plymouth/charge/* ; do
  58. install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge/
  59. done
  60. # File or directory names do not count as trademark infringement
  61. mkdir -p %{buildroot}%{_datadir}/icons/Fedora/48x48/apps/
  62. mkdir -p %{buildroot}%{_datadir}/icons/Fedora/scalable/apps/
  63. install -p -m 644 icons/Fedora/48x48/apps/* %{buildroot}%{_datadir}/icons/Fedora/48x48/apps/
  64. install -p -m 644 icons/Fedora/scalable/apps/* %{buildroot}%{_datadir}/icons/Fedora/scalable/apps/
  65. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/places/
  66. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
  67. install -p -m 644 pixmaps/fedora-logo-sprite.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/places/start-here.svg
  68. install -p -m 644 icons/Fedora/scalable/apps/anaconda.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/anaconda.svg
  69. (cd anaconda; make DESTDIR=%{buildroot} install)
  70. # save some dup'd icons
  71. /usr/sbin/hardlink -v %{buildroot}/
  72. %post
  73. touch --no-create %{_datadir}/icons/Fedora || :
  74. touch --no-create %{_kde4_iconsdir}/oxygen ||:
  75. %postun
  76. if [ $1 -eq 0 ] ; then
  77. touch --no-create %{_datadir}/icons/Fedora || :
  78. touch --no-create %{_kde4_iconsdir}/oxygen ||:
  79. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  80. if [ -f %{_datadir}/icons/Fedora/index.theme ]; then
  81. gtk-update-icon-cache --quiet %{_datadir}/icons/Fedora || :
  82. fi
  83. if [ -f %{_kde4_iconsdir}/Fedora-KDE/index.theme ]; then
  84. gtk-update-icon-cache --quiet %{_kde4_iconsdir}/Fedora-KDE/index.theme || :
  85. fi
  86. fi
  87. fi
  88. %posttrans
  89. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  90. if [ -f %{_datadir}/icons/Fedora/index.theme ]; then
  91. gtk-update-icon-cache --quiet %{_datadir}/icons/Fedora || :
  92. fi
  93. if [ -f %{_kde4_iconsdir}/oxygen/index.theme ]; then
  94. gtk-update-icon-cache --quiet %{_kde4_iconsdir}/oxygen/index.theme || :
  95. fi
  96. fi
  97. %clean
  98. rm -rf %{buildroot}
  99. %files
  100. %defattr(-,root,root,-)
  101. %doc COPYING COPYING-kde-logo README
  102. %{_datadir}/firstboot/themes/*
  103. %{_datadir}/anaconda/boot/*
  104. %{_datadir}/anaconda/pixmaps/*
  105. %{_datadir}/icons/Fedora/*/apps/*
  106. %{_datadir}/pixmaps/*
  107. %exclude %{_datadir}/pixmaps/poweredby.png
  108. %{_datadir}/plymouth/themes/charge/*
  109. %{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
  110. %{_kde4_iconsdir}/oxygen/
  111. %{_datadir}/icons/hicolor/*/apps/*
  112. %{_datadir}/icons/hicolor/*/places/*
  113. %changelog
  114. * Sun May 14 2017 Aidan Kahrs <axk4545@rit.edu> - 1.0.0-3
  115. - add hicolor icons for anaconda
  116. * Sat May 13 2017 Aidan Kahrs <axk4545@rit.edu> - 1.0.0-2
  117. - Fix obsoletes and provides
  118. * Fri Apr 21 2017 Aidan Kahrs <axk4545@rit.edu> - 1.0.0-1
  119. - Initial version