xorg-x11-filesystem-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Summary: X.Org X11 filesystem layout
  2. Summary(ja): X.Org X11 ファイルシステムレイアウト
  3. Name: xorg-x11-filesystem
  4. Version: 7.7
  5. Release: 1%{?_dist_release}
  6. License: MIT/X11
  7. Group: System Environment/Base
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  9. Requires(pre): filesystem >= 2.4
  10. Obsoletes: XOrg-devel < 7.0
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: Takemikaduchi
  14. %description
  15. This package provides some directories which are required by other
  16. packages which comprise the modularized X.Org X11R7 X Window System
  17. release. This package must be installed during OS installation
  18. or upgrade, in order to force the creation of these directories,
  19. and replace any legacy symbolic links that might be present in old
  20. locations, which could result in upgrade failures.
  21. %prep
  22. %install
  23. rm -rf $RPM_BUILD_ROOT
  24. # NOTE: Do not replace these with _libdir or _includedir macros, they are
  25. # intentionally explicit.
  26. mkdir -p "$RPM_BUILD_ROOT%{_libdir}/X11"
  27. mkdir -p "$RPM_BUILD_ROOT%{_includedir}/X11"
  28. mkdir -p "$RPM_BUILD_ROOT%{_datadir}/X11"
  29. mkdir -p "$RPM_BUILD_ROOT%{_bindir}"
  30. UPGRADE_CMD="%{_bindir}/xorg-x11-filesystem-upgrade"
  31. # NOTE: The quoted 'EOF' is required to disable variable interpolation
  32. cat > "$RPM_BUILD_ROOT/${UPGRADE_CMD}" <<'EOF'
  33. #!/bin/bash
  34. #
  35. # Modular X.Org X11R7 filesystem upgrade script.
  36. #
  37. # If any of the following dirs are symlinks, remove them and create a dir
  38. # in its place. This is required, so that modular X packages get installed
  39. # into a real directory, and do not follow old compatibility symlinks
  40. # provided in previous releases of the operating system.
  41. #
  42. # NOTE: Do not replace these with _libdir or _includedir macros, they are
  43. # intentionally explicit.
  44. for dir in %{_includedir}/X11 %{_libdir}/X11 ; do
  45. [ -L "$dir" ] && rm -f -- "$dir" &> /dev/null
  46. done
  47. for dir in %{_includedir}/X11 %{_libdir}/X11 ; do
  48. [ ! -d "$dir" ] && mkdir -p "$dir" &> /dev/null
  49. done
  50. exit 0
  51. EOF
  52. chmod 0755 "$RPM_BUILD_ROOT/${UPGRADE_CMD}"
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %pre
  56. # NOTE: Do not replace these with _libdir or _includedir macros, they are
  57. # intentionally explicit.
  58. # Remove old symlinks if present, and replace them with directories.
  59. for dir in %{_includedir}/X11 %{_libdir}/X11 ; do
  60. [ -L "$dir" ] && rm -f -- "$dir" &> /dev/null
  61. done
  62. for dir in %{_includedir}/X11 %{_libdir}/X11 ; do
  63. [ ! -d "$dir" ] && mkdir -p "$dir" &> /dev/null
  64. done
  65. exit 0
  66. %files
  67. %defattr(-,root,root,-)
  68. # NOTE: These are explicitly listed intentionally, instead of using rpm
  69. # macros, as these exact locations are required for compatibility
  70. # regardless of what _libdir or _includedir point to.
  71. %dir %{_libdir}/X11
  72. %dir %{_includedir}/X11
  73. %dir %{_datadir}/X11
  74. %{_bindir}/xorg-x11-filesystem-upgrade
  75. %changelog
  76. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 7.7-1
  77. - bump version to 7.7-1
  78. * Sun Apr 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 7.6-1
  79. - remove BuildArch: noarch
  80. - bump version to 7.6-1
  81. * Tue Apr 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 7.4-1
  82. - spec in utf-8
  83. - bump version to 7.4-1
  84. * Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.3-1
  85. - own %%{_datadir}/X11
  86. - Obsoletes: XOrg-devel < 7.0
  87. * Sat Jan 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.1-0vl1
  88. - initial build for Vine Linux based on fodora package.
  89. * Mon Jul 10 2006 Mike A. Harris <mharris@redhat.com> 7.1-2.fc6
  90. - Reword package description for (#189648)
  91. * Wed Jun 21 2006 Mike A. Harris <mharris@redhat.com> 7.1-1
  92. - Bumped version to 7.1-1 and rebuilt for X11R7.1.
  93. * Thu Feb 09 2006 Mike A. Harris <mharris@redhat.com> 7.0-1
  94. - Bumped version to 7.0-1 and rebuilt.
  95. * Tue Nov 22 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-3
  96. - Ok, even though I _tested_ it, and it worked.. the previous build had a
  97. broken post, preun, and postun script, due to copy and paste error. Ugh.
  98. Also, the script in /usr/bin was broken due to heredoc variable
  99. interpolation, which I turned off this time so it is generated correctly.
  100. I removed the post, preun, postun scripts as they are overkill anyway.
  101. The bug in 0.99.2-2 might cause upgrade or uninstall of the package to
  102. fail and require manual uninstallation with --noscripts. Oops. This
  103. is what "rawhide" means boys and girls.
  104. - Added "Requires(pre): filesystem >= 2.3.7-1", to avoid problems with older
  105. versions of it, and to allow packages that need this workaround to only
  106. have to set a dependency on xorg-x11-filesystem instead of both packages.
  107. * Mon Nov 21 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-2
  108. - Updated scripts so that they create the directory even if the symlink was
  109. not present, to ensure that the dir exists first and avoid theoretical
  110. case in which, in a single transaction, xorg-x11-filesystem gets installed,
  111. no symlink or dir is present causing the symlink test to fail, so no dir
  112. gets created, then another package in the transaction set installs a
  113. symlink, then a package tries to install a dir and fails. This should
  114. guarantee now that these two dirs are really really dirs, not symlinks
  115. for sure for sure.
  116. * Mon Nov 21 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-1
  117. - Initial build.
  118. - Package creates the directories /usr/lib/X11 and /usr/include/X11 and owns
  119. them as properly flagged dirs in the file manifest.
  120. - Added identical pre/post/preun/postun scripts which test to see if any of
  121. of each of /usr/include/X11 /usr/lib/X11 /usr/lib64/X11