lsb-vl.spec 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. # Define this to link to which library version eg. /lib64/ld-lsb-x86-64.so.3
  2. %define lsbsover 3
  3. %ifarch %{ix86}
  4. %define ldso ld-linux.so.2
  5. %define lsbldso ld-lsb.so
  6. %endif
  7. %ifarch ia64
  8. %define ldso ld-linux-ia64.so.2
  9. %define lsbldso ld-lsb-ia64.so
  10. %endif
  11. %ifarch ppc
  12. %define ldso ld.so.1
  13. %define lsbldso ld-lsb-ppc32.so
  14. %endif
  15. %ifarch ppc64
  16. %define ldso ld64.so.1
  17. %define lsbldso ld-lsb-ppc64.so
  18. %endif
  19. %ifarch s390
  20. %define ldso ld.so.1
  21. %define lsbldso ld-lsb-s390.so
  22. %endif
  23. %ifarch s390x
  24. %define ldso ld64.so.1
  25. %define lsbldso ld-lsb-s390x.so
  26. %endif
  27. %ifarch x86_64
  28. %define ldso ld-linux-x86-64.so.2
  29. %define lsbldso ld-lsb-x86-64.so
  30. %endif
  31. %ifarch ia64 ppc64 s390x x86_64
  32. %define qual ()(64bit)
  33. %else
  34. %define qual %{nil}
  35. %endif
  36. %define upstreamlsbrelver 2.0
  37. %define lsbrelver 4.0
  38. %define srcrelease 1
  39. Summary: LSB support for Vine Linux
  40. Summary(ja): Vine Linux の LSB サポート
  41. Name: lsb
  42. Version: 4.0
  43. Release: 3%{?_dist_release}
  44. URL: http://www.linuxfoundation.org/
  45. Source0: %{name}-vine-%{version}.tar.bz2
  46. License: GPLv2
  47. Group: System Environment/Base
  48. BuildRoot: %{_tmppath}/%{name}-root
  49. BuildRequires: glibc-static
  50. # dependency for primary LSB application for v1.3
  51. Provides: lsb = %{version}
  52. # dependency for primary LSB application for v2.0, v3.0 and v4.0
  53. %ifarch %{ix86}
  54. %define archname ia32
  55. %endif
  56. %ifarch ia64
  57. %define archname ia64
  58. %endif
  59. %ifarch ppc
  60. %define archname ppc32
  61. %endif
  62. %ifarch ppc64
  63. %define archname ppc64
  64. %endif
  65. %ifarch s390
  66. %define archname s390
  67. %endif
  68. %ifarch s390x
  69. %define archname s390x
  70. %endif
  71. %ifarch x86_64
  72. %define archname amd64
  73. %endif
  74. Provides: lsb-core-%{archname} = %{version}
  75. Provides: lsb-graphics-%{archname} = %{version}
  76. Provides: lsb-core-noarch = %{version}
  77. Provides: lsb-graphics-noarch = %{version}
  78. Provides: lsb-printing-%{archname} = %{version}
  79. Provides: lsb-printing-noarch = %{version}
  80. ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x
  81. %ifarch %{ix86}
  82. # archLSB IA32 Base Libraries
  83. Requires: libatk-1.0.so.0
  84. Requires: libc.so.6
  85. Requires: libcrypt.so.1
  86. Requires: libdl.so.2
  87. Requires: libgcc_s.so.1
  88. Requires: libgdk-x11-2.0.so.0
  89. Requires: libgdk_pixbuf-2.0.so.0
  90. Requires: libgdk_pixbuf_xlib-2.0.so.0
  91. Requires: libglib-2.0.so.0
  92. Requires: libgmodule-2.0.so.0
  93. Requires: libgobject-2.0.so.0
  94. Requires: libgthread-2.0.so.0
  95. Requires: libgtk-x11-2.0.so.0
  96. Requires: libm.so.6
  97. Requires: libncurses.so.5
  98. Requires: libpango-1.0.so.0
  99. Requires: libpangoft2-1.0.so.0
  100. Requires: libpangoxft-1.0.so.0
  101. Requires: libpthread.so.0
  102. Requires: libqt-mt.so.3
  103. Requires: libQtCore.so.4
  104. Requires: libQtGui.so.4
  105. Requires: libQtNetwork.so.4
  106. Requires: libQtOpenGL.so.4
  107. Requires: libQtSql.so.4
  108. Requires: libQtSvg.so.4
  109. Requires: libQtXml.so.4
  110. Requires: libstdc++.so.6
  111. Requires: libutil.so.1
  112. Requires: libz.so.1
  113. %endif
  114. %ifarch ia64
  115. # archLSB IA64 Base Libraries
  116. Requires: libatk-1.0.so.0()(64bit)
  117. Requires: libc.so.6.1()(64bit)
  118. Requires: libcrypt.so.1()(64bit)
  119. Requires: libdl.so.2()(64bit)
  120. Requires: libgcc_s.so.1()(64bit)
  121. Requires: libgdk-x11-2.0.so.0()(64bit)
  122. Requires: libgdk_pixbuf-2.0.so.0()(64bit)
  123. Requires: libgdk_pixbuf_xlib-2.0.so.0()(64bit)
  124. Requires: libglib-2.0.so.0()(64bit)
  125. Requires: libgmodule-2.0.so.0()(64bit)
  126. Requires: libgobject-2.0.so.0()(64bit)
  127. Requires: libgthread-2.0.so.0()(64bit)
  128. Requires: libgtk-x11-2.0.so.0()(64bit)
  129. Requires: libm.so.6.1()(64bit)
  130. Requires: libncurses.so.5()(64bit)
  131. Requires: libpango-1.0.so.0()(64bit)
  132. Requires: libpangoft2-1.0.so.0()(64bit)
  133. Requires: libpangoxft-1.0.so.0()(64bit)
  134. Requires: libpthread.so.0()(64bit)
  135. Requires: libqt-mt.so.3()(64bit)
  136. Requires: libQtCore.so.4()(64bit)
  137. Requires: libQtGui.so.4()(64bit)
  138. Requires: libQtNetwork.so.4()(64bit)
  139. Requires: libQtOpenGL.so.4()(64bit)
  140. Requires: libQtSql.so.4()(64bit)
  141. Requires: libQtSvg.so.4()(64bit)
  142. Requires: libQtXml.so.4()(64bit)
  143. Requires: libstdc++.so.6()(64bit)
  144. Requires: libutil.so.1()(64bit)
  145. Requires: libz.so.1()(64bit)
  146. %endif
  147. %ifarch ppc
  148. # archLSB PPC32 Base Libraries
  149. Requires: libatk-1.0.so.0
  150. Requires: libc.so.6
  151. Requires: libcrypt.so.1
  152. Requires: libdl.so.2
  153. Requires: libgcc_s.so.1
  154. Requires: libgdk-x11-2.0.so.0
  155. Requires: libgdk_pixbuf-2.0.so.0
  156. Requires: libgdk_pixbuf_xlib-2.0.so.0
  157. Requires: libglib-2.0.so.0
  158. Requires: libgmodule-2.0.so.0
  159. Requires: libgobject-2.0.so.0
  160. Requires: libgthread-2.0.so.0
  161. Requires: libgtk-x11-2.0.so.0
  162. Requires: libm.so.6
  163. Requires: libncurses.so.5
  164. Requires: libpango-1.0.so.0
  165. Requires: libpangoft2-1.0.so.0
  166. Requires: libpangoxft-1.0.so.0
  167. Requires: libpthread.so.0
  168. Requires: libqt-mt.so.3
  169. Requires: libQtCore.so.4
  170. Requires: libQtGui.so.4
  171. Requires: libQtNetwork.so.4
  172. Requires: libQtOpenGL.so.4
  173. Requires: libQtSql.so.4
  174. Requires: libQtSvg.so.4
  175. Requires: libQtXml.so.4
  176. Requires: libstdc++.so.6
  177. Requires: libutil.so.1
  178. Requires: libz.so.1
  179. %endif
  180. %ifarch ppc64
  181. # archLSB PPC64 Base Libraries
  182. Requires: libatk-1.0.so.0()(64bit)
  183. Requires: libc.so.6()(64bit)
  184. Requires: libcrypt.so.1()(64bit)
  185. Requires: libdl.so.2()(64bit)
  186. Requires: libgcc_s.so.1()(64bit)
  187. Requires: libgdk-x11-2.0.so.0()(64bit)
  188. Requires: libgdk_pixbuf-2.0.so.0()(64bit)
  189. Requires: libgdk_pixbuf_xlib-2.0.so.0()(64bit)
  190. Requires: libglib-2.0.so.0()(64bit)
  191. Requires: libgmodule-2.0.so.0()(64bit)
  192. Requires: libgobject-2.0.so.0()(64bit)
  193. Requires: libgthread-2.0.so.0()(64bit)
  194. Requires: libgtk-x11-2.0.so.0()(64bit)
  195. Requires: libm.so.6()(64bit)
  196. Requires: libncurses.so.5()(64bit)
  197. Requires: libpango-1.0.so.0()(64bit)
  198. Requires: libpangoft2-1.0.so.0()(64bit)
  199. Requires: libpangoxft-1.0.so.0()(64bit)
  200. Requires: libpthread.so.0()(64bit)
  201. Requires: libqt-mt.so.3()(64bit)
  202. Requires: libQtCore.so.4()(64bit)
  203. Requires: libQtGui.so.4()(64bit)
  204. Requires: libQtNetwork.so.4()(64bit)
  205. Requires: libQtOpenGL.so.4()(64bit)
  206. Requires: libQtSql.so.4()(64bit)
  207. Requires: libQtSvg.so.4()(64bit)
  208. Requires: libQtXml.so.4()(64bit)
  209. Requires: libstdc++.so.6()(64bit)
  210. Requires: libutil.so.1()(64bit)
  211. Requires: libz.so.1()(64bit)
  212. %endif
  213. %ifarch s390
  214. # archLSB S390 Base Libraries
  215. Requires: libatk-1.0.so.0
  216. Requires: libc.so.6
  217. Requires: libcrypt.so.1
  218. Requires: libdl.so.2
  219. Requires: libgcc_s.so.1
  220. Requires: libgdk-x11-2.0.so.0
  221. Requires: libgdk_pixbuf-2.0.so.0
  222. Requires: libgdk_pixbuf_xlib-2.0.so.0
  223. Requires: libglib-2.0.so.0
  224. Requires: libgmodule-2.0.so.0
  225. Requires: libgobject-2.0.so.0
  226. Requires: libgthread-2.0.so.0
  227. Requires: libgtk-x11-2.0.so.0
  228. Requires: libm.so.6
  229. Requires: libncurses.so.5
  230. Requires: libpango-1.0.so.0
  231. Requires: libpangoft2-1.0.so.0
  232. Requires: libpangoxft-1.0.so.0
  233. Requires: libpthread.so.0
  234. Requires: libqt-mt.so.3
  235. Requires: libQtCore.so.4
  236. Requires: libQtGui.so.4
  237. Requires: libQtNetwork.so.4
  238. Requires: libQtOpenGL.so.4
  239. Requires: libQtSql.so.4
  240. Requires: libQtSvg.so.4
  241. Requires: libQtXml.so.4
  242. Requires: libstdc++.so.6
  243. Requires: libutil.so.1
  244. Requires: libz.so.1
  245. %endif
  246. %ifarch s390x
  247. # archLSB S390X Base Libraries
  248. Requires: libatk-1.0.so.0()(64bit)
  249. Requires: libc.so.6()(64bit)
  250. Requires: libcrypt.so.1()(64bit)
  251. Requires: libdl.so.2()(64bit)
  252. Requires: libgcc_s.so.1()(64bit)
  253. Requires: libgdk-x11-2.0.so.0()(64bit)
  254. Requires: libgdk_pixbuf-2.0.so.0()(64bit)
  255. Requires: libgdk_pixbuf_xlib-2.0.so.0()(64bit)
  256. Requires: libglib-2.0.so.0()(64bit)
  257. Requires: libgmodule-2.0.so.0()(64bit)
  258. Requires: libgobject-2.0.so.0()(64bit)
  259. Requires: libgthread-2.0.so.0()(64bit)
  260. Requires: libgtk-x11-2.0.so.0()(64bit)
  261. Requires: libm.so.6()(64bit)
  262. Requires: libncurses.so.5()(64bit)
  263. Requires: libpango-1.0.so.0()(64bit)
  264. Requires: libpangoft2-1.0.so.0()(64bit)
  265. Requires: libpangoxft-1.0.so.0()(64bit)
  266. Requires: libpthread.so.0()(64bit)
  267. Requires: libqt-mt.so.3()(64bit)
  268. Requires: libQtCore.so.4()(64bit)
  269. Requires: libQtGui.so.4()(64bit)
  270. Requires: libQtNetwork.so.4()(64bit)
  271. Requires: libQtOpenGL.so.4()(64bit)
  272. Requires: libQtSql.so.4()(64bit)
  273. Requires: libQtSvg.so.4()(64bit)
  274. Requires: libQtXml.so.4()(64bit)
  275. Requires: libstdc++.so.6()(64bit)
  276. Requires: libutil.so.1()(64bit)
  277. Requires: libz.so.1()(64bit)
  278. %endif
  279. %ifarch x86_64
  280. # archLSB AMD64 Base Libraries
  281. Requires: libatk-1.0.so.0()(64bit)
  282. Requires: libc.so.6()(64bit)
  283. Requires: libcrypt.so.1()(64bit)
  284. Requires: libdl.so.2()(64bit)
  285. Requires: libgcc_s.so.1()(64bit)
  286. Requires: libgdk-x11-2.0.so.0()(64bit)
  287. Requires: libgdk_pixbuf-2.0.so.0()(64bit)
  288. Requires: libgdk_pixbuf_xlib-2.0.so.0()(64bit)
  289. Requires: libglib-2.0.so.0()(64bit)
  290. Requires: libgmodule-2.0.so.0()(64bit)
  291. Requires: libgobject-2.0.so.0()(64bit)
  292. Requires: libgthread-2.0.so.0()(64bit)
  293. Requires: libgtk-x11-2.0.so.0()(64bit)
  294. Requires: libm.so.6()(64bit)
  295. Requires: libncurses.so.5()(64bit)
  296. Requires: libpango-1.0.so.0()(64bit)
  297. Requires: libpangoft2-1.0.so.0()(64bit)
  298. Requires: libpangoxft-1.0.so.0()(64bit)
  299. Requires: libpthread.so.0()(64bit)
  300. Requires: libqt-mt.so.3()(64bit)
  301. Requires: libQtCore.so.4()(64bit)
  302. Requires: libQtGui.so.4()(64bit)
  303. Requires: libQtNetwork.so.4()(64bit)
  304. Requires: libQtOpenGL.so.4()(64bit)
  305. Requires: libQtSql.so.4()(64bit)
  306. Requires: libQtSvg.so.4()(64bit)
  307. Requires: libQtXml.so.4()(64bit)
  308. Requires: libstdc++.so.6()(64bit)
  309. Requires: libutil.so.1()(64bit)
  310. Requires: libz.so.1()(64bit)
  311. %endif
  312. # gLSB Base/Utility/Stdc++/Graphics Libraries
  313. Requires: libasound.so.2%{qual}
  314. Requires: libatk-1.0.so.0%{qual}
  315. Requires: libcrypt.so.1%{qual}
  316. Requires: libcups.so.2%{qual}
  317. Requires: libcupsimage.so.2%{qual}
  318. Requires: libdl.so.2%{qual}
  319. Requires: libfontconfig.so.1%{qual}
  320. Requires: libfreetype.so.6%{qual}
  321. Requires: libgcc_s.so.1%{qual}
  322. Requires: libgdk-x11-2.0.so.0%{qual}
  323. Requires: libgdk_pixbuf-2.0.so.0%{qual}
  324. Requires: libgdk_pixbuf_xlib-2.0.so.0%{qual}
  325. Requires: libGL.so.1%{qual}
  326. Requires: libglib-2.0.so.0%{qual}
  327. Requires: libgmodule-2.0.so.0%{qual}
  328. Requires: libgobject-2.0.so.0%{qual}
  329. Requires: libgthread-2.0.so.0%{qual}
  330. Requires: libgtk-x11-2.0.so.0%{qual}
  331. Requires: libICE.so.6%{qual}
  332. Requires: libjpeg.so.62%{qual}
  333. Requires: libncurses.so.5%{qual}
  334. Requires: libpam.so.0%{qual}
  335. Requires: libpango-1.0.so.0%{qual}
  336. Requires: libpangoft2-1.0.so.0%{qual}
  337. Requires: libpangoxft-1.0.so.0%{qual}
  338. Requires: libpng16.so.16%{qual}
  339. Requires: libpthread.so.0%{qual}
  340. Requires: libqt-mt.so.3%{qual}
  341. Requires: libQtCore.so.4%{qual}
  342. Requires: libQtGui.so.4%{qual}
  343. Requires: libQtNetwork.so.4%{qual}
  344. Requires: libQtOpenGL.so.4%{qual}
  345. Requires: libQtSql.so.4%{qual}
  346. Requires: libQtSvg.so.4%{qual}
  347. Requires: libQtXml.so.4%{qual}
  348. Requires: librt.so.1%{qual}
  349. Requires: libSM.so.6%{qual}
  350. Requires: libstdc++.so.6%{qual}
  351. Requires: libutil.so.1%{qual}
  352. Requires: libX11.so.6%{qual}
  353. Requires: libXext.so.6%{qual}
  354. Requires: libXft.so.2%{qual}
  355. Requires: libXi.so.6%{qual}
  356. Requires: libxml2.so.2%{qual}
  357. Requires: libXrender.so.1%{qual}
  358. Requires: libXt.so.6%{qual}
  359. Requires: libz.so.1%{qual}
  360. # gLSB Command and Utilities
  361. Requires: /bin/awk
  362. Requires: /bin/basename
  363. Requires: /bin/cat
  364. Requires: /bin/chgrp
  365. Requires: /bin/chmod
  366. Requires: /bin/chown
  367. Requires: /bin/cp
  368. Requires: /bin/cpio
  369. Requires: /bin/cut
  370. Requires: /bin/date
  371. Requires: /bin/dd
  372. Requires: /bin/df
  373. Requires: /bin/dmesg
  374. Requires: /bin/echo
  375. Requires: /bin/ed
  376. Requires: /bin/egrep
  377. Requires: /bin/env
  378. Requires: /bin/false
  379. Requires: /bin/fgrep
  380. Requires: /bin/gettext
  381. Requires: /bin/grep
  382. Requires: /bin/gunzip
  383. Requires: /bin/gzip
  384. Requires: /bin/hostname
  385. Requires: /bin/kill
  386. Requires: /bin/ln
  387. Requires: /bin/ls
  388. Requires: mailx
  389. Requires: /bin/mkdir
  390. Requires: /bin/mknod
  391. Requires: /bin/mktemp
  392. Requires: /bin/more
  393. Requires: /bin/mount
  394. Requires: /bin/mv
  395. Requires: /bin/nice
  396. Requires: /bin/ps
  397. Requires: /bin/pwd
  398. Requires: /bin/rm
  399. Requires: /bin/rmdir
  400. Requires: /bin/sed
  401. Requires: /bin/sh
  402. Requires: /bin/sleep
  403. Requires: /bin/sort
  404. Requires: /bin/stty
  405. Requires: /bin/su
  406. Requires: /bin/sync
  407. Requires: /bin/tar
  408. Requires: /bin/touch
  409. Requires: /bin/true
  410. Requires: /bin/umount
  411. Requires: /bin/uname
  412. Requires: /bin/zcat
  413. Requires: /sbin/fuser
  414. Requires: /sbin/pidof
  415. Requires: /sbin/shutdown
  416. Requires: /usr/bin/[
  417. Requires: /usr/bin/ar
  418. Requires: /usr/bin/at
  419. Requires: /usr/bin/batch
  420. Requires: /usr/bin/bc
  421. Requires: /usr/bin/chfn
  422. Requires: /usr/bin/chsh
  423. Requires: /usr/bin/cksum
  424. Requires: /usr/bin/cmp
  425. Requires: /usr/bin/col
  426. Requires: /usr/bin/comm
  427. Requires: /usr/bin/crontab
  428. Requires: /usr/bin/csplit
  429. Requires: /usr/bin/diff
  430. Requires: /usr/bin/dirname
  431. Requires: /usr/bin/du
  432. Requires: /usr/bin/expand
  433. Requires: /usr/bin/expr
  434. Requires: /usr/bin/fc-cache
  435. Requires: /usr/bin/fc-list
  436. Requires: /usr/bin/fc-match
  437. Requires: /usr/bin/file
  438. Requires: /usr/bin/find
  439. Requires: /usr/bin/fold
  440. Requires: /usr/bin/foomatic-rip
  441. Requires: /usr/bin/gencat
  442. Requires: /usr/bin/getconf
  443. Requires: /usr/bin/groups
  444. Requires: /usr/bin/gs
  445. Requires: /usr/bin/head
  446. Requires: /usr/bin/iconv
  447. Requires: /usr/bin/id
  448. Requires: /usr/bin/install
  449. Requires: /usr/bin/ipcrm
  450. Requires: /usr/bin/ipcs
  451. Requires: /usr/bin/join
  452. Requires: /usr/bin/killall
  453. Requires: /usr/bin/locale
  454. Requires: /usr/bin/localedef
  455. Requires: /usr/bin/logger
  456. Requires: /usr/bin/logname
  457. Requires: /usr/bin/lp
  458. Requires: /usr/bin/lpr
  459. Requires: /usr/bin/m4
  460. Requires: /usr/bin/make
  461. Requires: /usr/bin/man
  462. Requires: /usr/bin/md5sum
  463. Requires: /usr/bin/mkfifo
  464. Requires: /usr/bin/msgfmt
  465. Requires: /usr/bin/newgrp
  466. Requires: /usr/bin/nl
  467. Requires: /usr/bin/nohup
  468. Requires: /usr/bin/od
  469. Requires: /usr/bin/passwd
  470. Requires: /usr/bin/paste
  471. Requires: /usr/bin/patch
  472. Requires: /usr/bin/pathchk
  473. # better POSIX compatible
  474. Requires: spax
  475. Requires: /usr/bin/perl
  476. Requires: /usr/bin/pr
  477. Requires: /usr/bin/printf
  478. Requires: /usr/bin/python
  479. Requires: /usr/bin/renice
  480. Requires: /usr/bin/split
  481. Requires: /usr/bin/strip
  482. Requires: /usr/bin/tail
  483. Requires: /usr/bin/tee
  484. Requires: /usr/bin/test
  485. Requires: /usr/bin/time
  486. Requires: /usr/bin/tr
  487. Requires: /usr/bin/tsort
  488. Requires: /usr/bin/tty
  489. Requires: /usr/bin/unexpand
  490. Requires: /usr/bin/uniq
  491. Requires: /usr/bin/wc
  492. Requires: /usr/bin/xargs
  493. Requires: /usr/sbin/groupadd
  494. Requires: /usr/sbin/groupdel
  495. Requires: /usr/sbin/groupmod
  496. Requires: /usr/sbin/sendmail
  497. Requires: /usr/sbin/useradd
  498. Requires: /usr/sbin/userdel
  499. Requires: /usr/sbin/usermod
  500. %description
  501. The Linux Standard Base (LSB) is an attempt to develop a set of
  502. standards that will increase compatibility among Linux distributions.
  503. The lsb package provides utilities needed for LSB Compliant
  504. Applications. It also contains requirements that will ensure that all
  505. components required by the LSB that are provided by Red Hat Linux are
  506. installed on the system.
  507. %prep
  508. %setup -q -n %{name}-vine-%{version}
  509. %build
  510. cd lsb-release-%{upstreamlsbrelver}
  511. make
  512. %install
  513. rm -rf $RPM_BUILD_ROOT
  514. # LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS
  515. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_mandir} \
  516. $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT/usr/lib/lsb \
  517. $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release.d/ $RPM_BUILD_ROOT%{_sbindir}
  518. make DESTDIR=$RPM_BUILD_ROOT install
  519. cd lsb-release-%{upstreamlsbrelver}
  520. make mandir=$RPM_BUILD_ROOT/%{_mandir} prefix=$RPM_BUILD_ROOT/%{_prefix} install
  521. cd ..
  522. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-4.0-%{archname}
  523. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-4.0-noarch
  524. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-4.0-%{archname}
  525. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-4.0-noarch
  526. touch $RPM_BUILD_ROOT/etc/lsb-release.d/printing-4.0-%{archname}
  527. touch $RPM_BUILD_ROOT/etc/lsb-release.d/printing-4.0-noarch
  528. # and claim LSB 3.1/3.2 is supported as well
  529. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-3.2-%{archname}
  530. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-3.2-noarch
  531. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-3.2-%{archname}
  532. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-3.2-noarch
  533. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-3.1-%{archname}
  534. touch $RPM_BUILD_ROOT/etc/lsb-release.d/core-3.1-noarch
  535. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-3.1-%{archname}
  536. touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-3.1-noarch
  537. for LSBVER in %{lsbsover}; do
  538. ln -s %{ldso} $RPM_BUILD_ROOT/%{_lib}/%{lsbldso}.$LSBVER
  539. done
  540. mkdir -p $RPM_BUILD_ROOT/bin
  541. # LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS
  542. # According to the lsb-core documentation provided by
  543. # http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic.pdf
  544. # it's OK to put non binary in /usr/lib.
  545. ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/install_initd
  546. ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/remove_initd
  547. ln -snf mail $RPM_BUILD_ROOT/bin/mailx
  548. gcc $RPM_OPT_FLAGS -Os -static -o lsb_vine_trigger{.%{_target_cpu},.c} -DLSBSOVER='"%{lsbsover}"' \
  549. -DLDSO='"%{ldso}"' -DLSBLDSO='"/%{_lib}/%{lsbldso}"' -D_GNU_SOURCE
  550. install -m 700 lsb_vine_trigger.%{_target_cpu} \
  551. $RPM_BUILD_ROOT%{_sbindir}/lsb_vine_trigger.%{_target_cpu}
  552. cp -p lsb_vine_init $RPM_BUILD_ROOT/bin/lsb_vine_init
  553. %clean
  554. rm -rf $RPM_BUILD_ROOT
  555. %triggerpostun -- glibc
  556. if [ -x /usr/sbin/lsb_vine_trigger.%{_target_cpu} ]; then
  557. /usr/sbin/lsb_vine_trigger.%{_target_cpu}
  558. fi
  559. %ifnarch %{ix86}
  560. /sbin/sln %{ldso} /%{_lib}/%{lsbldso} || :
  561. %else
  562. if [ -f /emul/ia32-linux/lib/%{ldso} ]; then
  563. for LSBVER in %{lsbsover}; do
  564. /sbin/sln /emul/ia32-linux/lib/%{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
  565. done
  566. else
  567. for LSBVER in %{lsbsover}; do
  568. /sbin/sln %{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
  569. done
  570. fi
  571. %endif
  572. %ifarch %{ix86}
  573. %post
  574. # make this softlink again for /emul
  575. if [ -f /emul/ia32-linux/lib/%{ldso} ]; then
  576. for LSBVER in %{lsbsover}; do
  577. /sbin/sln /emul/ia32-linux/lib/%{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
  578. done
  579. fi
  580. %endif
  581. %files
  582. %defattr(-,root,root)
  583. %{_sysconfdir}/lsb-vine
  584. %dir %{_sysconfdir}/lsb-release.d
  585. %{_sysconfdir}/lsb-release.d/*
  586. %{_mandir}/*/*
  587. %{_bindir}/*
  588. /bin/lsb_vine_init
  589. /usr/lib/lsb
  590. /%{_lib}/*so*
  591. /lib/lsb*
  592. %{_sbindir}/lsb_vine_trigger.%{_target_cpu}
  593. /bin/mailx
  594. %changelog
  595. * Wed Jan 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0-3
  596. - change Requires: libpng16.so.16 instead of libpng12.so.0
  597. * Tue Jun 17 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.0-2
  598. - require spax instead of pax (more POSIX compatible)
  599. * Thu Jun 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-1
  600. - update to LSB4.0
  601. - add Provide lsb-printing{,-noarch}
  602. - add BR: glibc-static
  603. * Fri Oct 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2-1
  604. - initial build for Vine Linux
  605. * Thu Aug 28 2008 Hao Liu <hliu@redhat.com> 3.2-2
  606. - Modify "Requires: /usr/bin/mailx" to "Requires: mailx" (Bug #460249)
  607. * Mon Aug 18 2008 Hao Liu <hliu@redhat.com> 3.2-1
  608. - Port forward to LSB 3.2
  609. - Remove symlink for mailx if user is upgrading from the redhat-lsb of older version
  610. - Since F10 put mailx under /usr/bin, change the corresponding requires
  611. * Tue Aug 5 2008 Hao Liu <hliu@redhat.com> - 3.1-22
  612. - Remove 2 requires which provided by redhat-lsb
  613. - Add comments explaining why hard-coded path is kept
  614. - Resolve some hard-coded path problems
  615. - Add comments explaining why importing '-static' option while compiling redhat_lsb_trigger
  616. - Replace %{_libdir}/lsb with /usr/lib/lsb
  617. - Replace /%{_lib}/* with /%{_lib}/*so*
  618. - Replace /lib/lsb with /lib/lsb*
  619. * Thu Jul 31 2008 Lawrence Lim <llim@redhat.com> - 3.1-21
  620. - remove symlink for mailx (Bug #457241)
  621. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.1-20
  622. - Autorebuild for GCC 4.3
  623. * Wed Oct 3 2007 Lawrence Lim <llim@redhat.com> - 3.1-19
  624. - fix build issue on ppc - (.opd+0x10): multiple definition of `__libc_start_main'
  625. * Fri Sep 21 2007 Lawrence Lim <llim@redhat.com> - 3.1-18
  626. - fix build issue in minimal build root (Bug #265241)
  627. * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.1-17
  628. - Rebuild for selinux ppc32 issue.
  629. * Mon Aug 20 2007 Lawrence Lim <llim@redhat.com> - 3.1-16
  630. - update spec file in accordance to feedback provided through merge review - merge-review.patch - #226363
  631. * Wed Jul 18 2007 Lawrence Lim <llim@redhat.com> - 3.1-15.f8
  632. - Resolved: #239842 - /lib/lsb/init-functions shall use aliases but not functions
  633. - forward port the patch from 3.1-12.3.EL which fix #217566, #233530, #240916
  634. * Wed May 2 2007 Lawrence Lim <llim@redhat.com> - 3.1-14.fc7
  635. - fixed Bug 232918 for new glibc version
  636. * Wed Feb 21 2007 Lawrence Lim <llim@redhat.com> - 3.1-13
  637. - fixed Bug 226363
  638. * Wed Nov 29 2006 Lawrence Lim <llim@redhat.com> - 3.1-12
  639. - replaced aliases with functions in /lib/lsb/init-functions; Bug 217566
  640. * Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 3.1-11
  641. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  642. * Thu Sep 21 2006 Lawrence Lim <llim@redhat.com> - 3.1-10.3
  643. - Fix upgrade issue; Bug 202548
  644. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.1-10.2.1
  645. - rebuild
  646. * Thu Jul 6 2006 Lawrence Lim <llim@redhat.com> - 3.1-10.2
  647. - for some strange reason, ld-lsb-x86-64.so need to be ld-lsb-x86-64.so.3 (LSB3.0) rather than ld-lsb-x86-64.so.3.1 (LSB3.1)
  648. * Thu Jul 6 2006 Lawrence Lim <llim@redhat.com> - 3.1-10.1
  649. - generate spec file on RHEL5-Alpha system
  650. - fix vsw4 test suite setup by creating symlink for X11 SecurityPolicy and XFontPath
  651. * Thu Jun 22 2006 Lawrence Lim <llim@redhat.com> - 3.0-10
  652. - Rewrite most part of the mkredhat-lsb to obtain information directly via specdb
  653. rather than sniffing through sgml
  654. - remove redundent script and bump up tarball version
  655. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.0-9.2
  656. - bump again for double-long bug on ppc(64)
  657. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0-9.1
  658. - rebuilt for new gcc4.1 snapshot and glibc changes
  659. * Fri Jan 13 2006 Leon Ho <llch@redhat.com> 3.0-9
  660. - Migrated back to rawhide
  661. * Wed Aug 3 2005 Leon Ho <llch@redhat.com> 3.0-8.EL
  662. - Added libstdc++.so.6/libGL.so.1 requirement (RH#154605)
  663. * Wed Aug 3 2005 Leon Ho <llch@redhat.com> 3.0-7.EL
  664. - Fixed multilib problem on lsb_release not to read /etc/lsb-release and solely
  665. depends on /etc/lsb-release.d/ (Advised by LSB committee)
  666. - Removed /etc/lsb-release (Advised by LSB committee)
  667. * Mon Aug 1 2005 Leon Ho <llch@redhat.com> 3.0-6.EL
  668. - Made the /etc/lsb-release useful (RH#154605)
  669. - Added redhat_lsb_trigger to fix RH#160585 (Jakub Jelinek)
  670. - Fixed AMD64 base libraries requirement parsing (RH#154605)
  671. * Tue Jul 26 2005 Leon Ho <llch@redhat.com> 3.0-5.EL
  672. - Fixed redhat-lsb's mkredhat-lsb on fetching lib and
  673. cmd requirements
  674. * Mon Jul 18 2005 Leon Ho <llch@redhat.com> 3.0-4.EL
  675. - Rebuilt
  676. * Tue Jul 05 2005 Leon Ho <llch@redhat.com> 3.0-3.EL
  677. - Disabled support for LSB 1.3 and 2.0
  678. * Mon Jun 20 2005 Leon Ho <llch@redhat.com> 3.0-2.EL
  679. - Upgraded to lsb-release 2.0
  680. * Thu Jun 09 2005 Leon Ho <llch@redhat.com> 3.0-1.EL
  681. - Moved to LSB 3.0
  682. * Wed Apr 13 2005 Leon Ho <llch@redhat.com> 1.3-10
  683. - Fixed ix86 package with ia32 emul support
  684. * Tue Feb 01 2005 Leon Ho <llch@redhat.com> 1.3-9
  685. - Sync what we have changed on the branches
  686. Wed Nov 24 2004 Harald Hoyer <harald@redhat.com>
  687. - added post section to recreate the softlink in emul mode (bug 140739)
  688. Mon Nov 15 2004 Phil Knirsch <pknirsch@redhat.com>
  689. Tiny correction of bug in new triggers
  690. * Mon Jan 24 2005 Leon Ho <llch@redhat.com> 1.3-8
  691. - Add support provide on lsb-core-* for each arch
  692. * Fri Jan 21 2005 Leon Ho <llch@redhat.com> 1.3-7
  693. - Add to support multiple LSB test suite version
  694. - Add %%endif in trigger postun
  695. * Thu Nov 11 2004 Phil Knirsch <pknirsch@redhat.com> 1.3-6
  696. - Fixed invalid sln call for trigger in postun on ia64 (#137647)
  697. * Mon Aug 09 2004 Phil Knirsch <pknirsch@redhat.com> 1.3-4
  698. - Bump release and rebuilt for RHEL4.
  699. * Thu Jul 24 2003 Matt Wilson <msw@redhat.com> 1.3-3
  700. - fix lsb ld.so name for ia64 (#100613)
  701. * Fri May 23 2003 Matt Wilson <msw@redhat.com> 1.3-2
  702. - use /usr/lib/lsb for install_initd, remove_initd
  703. * Fri May 23 2003 Matt Wilson <msw@redhat.com> 1.3-2
  704. - add ia64 x86_64 ppc ppc64 s390 s390x
  705. * Tue Feb 18 2003 Matt Wilson <msw@redhat.com> 1.3-1
  706. - 1.3
  707. * Wed Sep 4 2002 Matt Wilson <msw@redhat.com>
  708. - 1.2.0
  709. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  710. - automated rebuild
  711. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  712. - automated rebuild
  713. * Wed Mar 27 2002 Matt Wilson <msw@redhat.com>
  714. - addeed trigger on glibc to re-establish the ld-lsb.so.1 symlink in the
  715. forced downgrade case.
  716. * Tue Mar 12 2002 Bill Nottingham <notting@redhat.com>
  717. - add initscripts support
  718. * Thu Jan 24 2002 Matt Wilson <msw@redhat.com>
  719. - Initial build.