gpm-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A mouse server for the Linux console.
  3. Summary(ja): Linux コンソール用マウスサーバ
  4. Name: gpm
  5. Version: 1.20.6
  6. Release: 3%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Daemons
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: daisuke
  12. Source: ftp://ftp.systemy.it/pub/develop/%{name}-%{version}.tar.gz
  13. Source1: gpm.init
  14. Patch1: gpm-1.20.6-multilib.patch
  15. Patch2: gpm-1.20.1-lib-silent.patch
  16. Patch3: gpm-1.20.3-gcc4.3.patch
  17. Patch4: gpm-1.20.5-close-fds.patch
  18. Patch6: gpm-1.20.6-libtool.patch
  19. Patch100: gpm-1.20.1-kterm.patch
  20. Patch101: gpm-1.20.1-miscterm.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: sed gawk texinfo bison ncurses-devel
  23. Requires(pre): chkconfig install-info
  24. Requires: bash >= 2.0
  25. Requires: gpm-libs = %{version}
  26. # this defines the library version that this package builds.
  27. %define LIBVER 2.1.0
  28. %description
  29. Gpm provides mouse support to text-based Linux applications like the
  30. Emacs editor and the Midnight Commander file management system. Gpm
  31. also provides console cut-and-paste operations using the mouse and
  32. includes a program to allow pop-up menus to appear at the click of a
  33. mouse button.
  34. Gpm should be installed if you intend to use a mouse with your Vine Linux
  35. system.
  36. %description -l ja
  37. Gpm は Emacs エディタや Midnight Commander のようなテキストベースの
  38. Linux アプリケーションにマウスサポートを提供します。また Gpm はマウスを
  39. 使ったコンソール上でのカット&ペーストをできるようにしたり、マウスボタン
  40. をクリックしてポップアップメニューを表示できるようにしたりします。
  41. Vine Linux システムのコンソール上でマウスを使用したい場合は Gpm を
  42. インストールしてください。
  43. %package libs
  44. Summary: shared libraries for gpm
  45. Summary(ja): gpm 用の共有ライブラリ
  46. Group: System Environment/Libraries
  47. %description libs
  48. gpm-libs package provides shared libraries for gpm.
  49. %description -l ja libs
  50. gpm-libs パッケージは gpm 用の共有ライブラリを提供します。
  51. %package devel
  52. Summary: Libraries and header files for developing mouse driven programs.
  53. Summary(ja): マウスで操作されるプログラムの開発に必要なライブラリとヘッダファイル
  54. Group: Development/Libraries
  55. Requires: %{name} = %{version}
  56. %description devel
  57. Gpm provides mouse support to text-based Linux applications like the
  58. Emacs editor and the Midnight Commander file management system. Gpm
  59. also provides console cut-and-paste operations using the mouse and
  60. includes a program to allow pop-up menus to appear at the click of a
  61. mouse button.
  62. %description -l ja devel
  63. Gpm は Emacs エディタや Midnight Commander のようなテキストベースの
  64. Linux アプリケーションにマウスサポートを提供します。また Gpm はマウスを
  65. 使ったコンソール上でのカット&ペーストをできるようにしたり、マウスボタン
  66. をクリックしてポップアップメニューを表示できるようにしたりします。
  67. %package static
  68. Requires: %{name} = %{version}-%{release}
  69. Summary: Static development files for the gpm library
  70. Summary(ja): gpm ライブラリのスタティックライブラリ
  71. Group: Development/Libraries
  72. %description static
  73. The gpm-static package includes static libraries of gpm. The gpm
  74. provides mouse support to text-based Linux applications.
  75. %package -n compat32-%{name}-libs
  76. Summary: shared libraries for gpm
  77. Summary(ja): gpm 用の共有ライブラリ
  78. Group: System Environment/Libraries
  79. %description -n compat32-%{name}-libs
  80. gpm-libs package provides shared libraries for gpm.
  81. %description -l ja -n compat32-%{name}-libs
  82. gpm-libs パッケージは gpm 用の共有ライブラリを提供します。
  83. %package -n compat32-%{name}-devel
  84. Summary: Libraries and header files for developing mouse driven programs.
  85. Summary(ja): マウスで操作されるプログラムの開発に必要なライブラリとヘッダファイル
  86. Group: Development/Libraries
  87. Requires: compat32-%{name}-libs = %{version}
  88. Requires: %{name}-devel = %{version}
  89. %description -n compat32-%{name}-devel
  90. Gpm provides mouse support to text-based Linux applications like the
  91. Emacs editor and the Midnight Commander file management system. Gpm
  92. also provides console cut-and-paste operations using the mouse and
  93. includes a program to allow pop-up menus to appear at the click of a
  94. mouse button.
  95. %description -l ja -n compat32-%{name}-devel
  96. Gpm は Emacs エディタや Midnight Commander のようなテキストベースの
  97. Linux アプリケーションにマウスサポートを提供します。また Gpm はマウスを
  98. 使ったコンソール上でのカット&ペーストをできるようにしたり、マウスボタン
  99. をクリックしてポップアップメニューを表示できるようにしたりします。
  100. %prep
  101. %setup -q
  102. %patch1 -p1 -b .multilib
  103. %patch2 -p1 -b .lib-silent
  104. %patch3 -p1 -b .gcc4.3
  105. %patch4 -p1 -b .close-fds
  106. %patch6 -p1 -b .libtool
  107. %patch100 -p1 -b .kterm
  108. %patch101 -p1 -b .miscterm
  109. %build
  110. %if %{build_compat32}
  111. export CC="%__cc -m32"
  112. %endif
  113. autoreconf -f -i
  114. CFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS" \
  115. lispdir=%{buildroot}%{_datadir}/emacs/site-lisp \
  116. %configure
  117. make
  118. %install
  119. rm -rf %{buildroot}
  120. mkdir -p %{buildroot}/etc
  121. PATH=/sbin:$PATH:/usr/sbin:$PATH
  122. mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
  123. %makeinstall lispdir=%{buildroot}%{_datadir}/emacs/site-lisp
  124. chmod 0755 %{buildroot}/%{_libdir}/libgpm.so.%{LIBVER}
  125. ln -sf libgpm.so.%{LIBVER} %{buildroot}/%{_libdir}/libgpm.so
  126. %ifnarch s390 s390x
  127. install -m644 doc/gpm-root.1 %{buildroot}%{_mandir}/man1
  128. install -m644 conf/gpm-root.conf %{buildroot}/etc
  129. install -s -m755 src/prog/hltest %{buildroot}%{_bindir}
  130. %else
  131. rm -f $RPM_BUILD_ROOT%{_bindir}/{mev,gpm-root}
  132. %endif
  133. %ifnarch s390 s390x
  134. mkdir -p %{buildroot}/etc/rc.d/init.d
  135. install -m 755 $RPM_SOURCE_DIR/gpm.init %{buildroot}/etc/rc.d/init.d/gpm
  136. %endif
  137. mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
  138. cat >$RPM_BUILD_ROOT/etc/sysconfig/gpm <<EOF
  139. # Additional options for gpm (e.g. acceleration), device
  140. OPTIONS=""
  141. DEVICE="/dev/mouse"
  142. EOF
  143. # remove stuff from the buildroot that we aren't shipping
  144. rm -f $RPM_BUILD_ROOT%{_bindir}/disable-paste
  145. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mouse-test.1*
  146. %ifarch s390 s390x
  147. rm -f $RPM_BUILD_ROOT/usr/sbin/gpm
  148. rm -f $RPM_BUILD_ROOT/usr/bin/hltest
  149. rm -f $RPM_BUILD_ROOT/usr/bin/mouse-test
  150. rm -rf $RPM_BUILD_ROOT/%{_mandir}
  151. %endif
  152. %clean
  153. rm -rf %{buildroot}
  154. %post
  155. %ifnarch s390 s390x
  156. /sbin/chkconfig --add gpm
  157. %endif
  158. /sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir
  159. %preun
  160. if [ $1 = 0 ]; then
  161. /sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir
  162. %ifnarch s390 s390x
  163. /etc/rc.d/init.d/gpm stop >/dev/null 2>&1
  164. /sbin/chkconfig --del gpm
  165. %endif
  166. fi
  167. %postun
  168. %ifnarch s390 s390x
  169. if [ "$1" -ge "1" ]; then
  170. /etc/rc.d/init.d/gpm condrestart >/dev/null 2>&1
  171. fi
  172. %endif
  173. %post libs -p /sbin/ldconfig
  174. %postun libs -p /sbin/ldconfig
  175. %post -n compat32-%{name}-libs -p /sbin/ldconfig
  176. %postun -n compat32-%{name}-libs -p /sbin/ldconfig
  177. %files
  178. %defattr(-,root,root)
  179. %ifnarch s390 s390x
  180. %config %{_sysconfdir}/gpm-root.conf
  181. %config %{_sysconfdir}/rc.d/init.d/gpm
  182. %{_bindir}/*
  183. %{_sbindir}/*
  184. %{_mandir}/man?/*
  185. %endif
  186. %{_infodir}/gpm.info*
  187. %config %{_sysconfdir}/sysconfig/gpm
  188. %files libs
  189. %defattr(-,root,root)
  190. %{_libdir}/libgpm.so.*
  191. %files devel
  192. %defattr(-,root,root)
  193. %{_includedir}/*
  194. %{_libdir}/libgpm.so
  195. %files static
  196. %defattr(-,root,root)
  197. %{_libdir}/libgpm.a
  198. %if %{build_compat32}
  199. %files -n compat32-%{name}-libs
  200. %defattr(-,root,root)
  201. %{_libdir}/libgpm.so.*
  202. %files -n compat32-%{name}-devel
  203. %defattr(-,root,root)
  204. %{_libdir}/libgpm.so
  205. %endif
  206. %changelog
  207. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.20.6-3
  208. - rebuild with VineSeed environment
  209. * Fri May 29 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.20.6-2
  210. - Release tag missed the actual number (1) on 1.20.6-1; bumped the release no.
  211. * Wed May 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20.6-1
  212. - new upstream release
  213. - spec in utf-8
  214. - new versioning policy
  215. - split static library to -static subpackage
  216. * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.20.1-35vl8
  217. - change gpm Group to System Environment/Daemons. <BTS:VineLinux:163>
  218. * Sat Aug 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.20.1-35vl7
  219. - fix typo in changelog
  220. - oops, add BuildRequires: emacsen
  221. * Fri Aug 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.1-35vl6
  222. - fixed Group typo
  223. * Thu Aug 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.20.1-35vl5
  224. - add BuildRequires: emacsen
  225. - add Requires: %%{name}-libs for %%{name}-devel instead of gpm
  226. - added compat32-* packages for x86_64 architecture support
  227. - add CC="%%__cc -m32" if compat32 is enabled
  228. * Fri Jul 14 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.20.1-35vl4
  229. - add patch 101 to fix error with alsaconf on VT. <BTS:VineLinux:85>
  230. - add japanese summary and description.
  231. - change gpm group to System Enviroment/Services.
  232. * Thu Dec 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20.1-35vl3
  233. - split shared libraries to gpm-libs sub package.
  234. * Wed Jul 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20.1-35vl2
  235. - rebuild witn new environment
  236. - add patch20 to disable 'possibly I die' message.
  237. - add patch100 to recognize kterm as xterm.
  238. * Fri Jul 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.20.1-35vl1
  239. - rebuild with new toolchains
  240. - based on Redhat Rawhide 1.20.1-35
  241. - Wed Jan 29 2003 Bill Nottingham <notting@redhat.com> 1.19.13-27
  242. - ship libraries on s390/s390x
  243. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  244. - 1.19.3-0.6vl4
  245. - rebuild for VineSeed
  246. * Sat Dec 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaing.org>
  247. - 1.19.3-0.6vl3
  248. - rebuild with ncurses >= 5.0
  249. * Thu Sep 07 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaing.org>
  250. - 1.19.3-0.6vl2
  251. - oops, fixed %install section for installing elisps
  252. * Tue Sep 05 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  253. - 1.19.3-0.6vl1
  254. - rebuild for Vine-2.x based on 1.19.3-0.6x from RH6.2/updates
  255. (http://www.redhat.com/support/errata/RHSA-2000-045-01.html)
  256. - modified %install section to be compatible with rpm <= 3.0.3
  257. * Tue Jul 25 2000 Preston Brown <pbrown@redhat.com>
  258. - backport to 6.2 for errata
  259. * Sat Jul 22 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  260. - update to 1.19.3
  261. * Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
  262. - move initscript back
  263. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  264. - automatic rebuild
  265. * Fri Jun 30 2000 Matt Wilson <msw@redhat.com>
  266. - use sysconf(_SC_OPEN_MAX)
  267. * Tue Jun 27 2000 Preston Brown <pbrown@redhat.com>
  268. - don't prereq, only require initscripts
  269. * Mon Jun 26 2000 Preston Brown <pbrown@redhat.com>
  270. - fix up and move initscript
  271. - prereq initscripts >= 5.20
  272. * Sat Jun 17 2000 Bill Nottingham <notting@redhat.com>
  273. - fix %config tag for initscript
  274. * Thu Jun 15 2000 Bill Nottingham <notting@redhat.com>
  275. - move it back
  276. * Thu Jun 15 2000 Preston Brown <pbrown@redhat.com>
  277. - move init script
  278. * Wed Jun 14 2000 Preston Brown <pbrown@redhat.com>
  279. - security patch on socket descriptor from Chris Evans. Thanks Chris.
  280. - include limits.h for OPEN_MAX
  281. * Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
  282. - 1.19.2, fix up root (setuid) patch
  283. - FHS paths
  284. * Thu Apr 6 2000 Jakub Jelinek <jakub@redhat.com>
  285. - 1.19.1
  286. - call initgroups in gpm-root before spawning command as user
  287. - make gpm-root work on big endian
  288. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  289. - call ldconfig directly in postun
  290. * Wed Mar 22 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  291. - rebuild with new libncurses
  292. * Sat Mar 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  293. - 1.19.0
  294. - fix build on systems that don't have emacs
  295. (configure built t-mouse* only if emacs was installed)
  296. * Tue Feb 29 2000 Preston Brown <pbrown@redhat.com>
  297. - important fix: improperly buildrooted for /usr/share/emacs/site-lisp, fixed.
  298. * Tue Feb 15 2000 Jakub Jelinek <jakub@redhat.com>
  299. - avoid cluttering of syslog with gpm No data messages
  300. * Mon Feb 14 2000 Preston Brown <pbrown@redhat.com>
  301. - disable-paste and mouse-test removed, they seem broken.
  302. * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
  303. - updated gpm.init to have better shutdown and descriptive messages
  304. - strip lib
  305. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  306. - fix description
  307. - man pages are compressed
  308. * Wed Jan 12 2000 Preston Brown <pbrown@redhat.com>
  309. - 1.18.1.
  310. * Tue Sep 28 1999 Preston Brown <pbrown@redhat.com>
  311. - upgraded to 1.18, hopefully fixes sparc protocol issues
  312. * Fri Sep 24 1999 Bill Nottingham <notting@redhat.com>
  313. - install-info sucks, and then you die.
  314. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  315. - chkconfig --del in %preun, not %postun
  316. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  317. - upgrade to 1.17.9
  318. - the maintainers are taking care of .so version now, removed patch
  319. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  320. - initscript munging
  321. * Wed Jun 2 1999 Jeff Johnson <jbj@redhat.com>
  322. - disable-paste need not be setuid root in Red Hat 6.0 (#2654)
  323. * Tue May 18 1999 Michael K. Johnson <johnsonm@redhat.com>
  324. - gpm.init had wrong pidfile name in comments; confused linuxconf
  325. * Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
  326. - make sure all binaries are stripped, make init stuff more chkconfig style
  327. - removed sparc-specific mouse stuff
  328. - bumped libver to 1.17.5
  329. - fixed texinfo source
  330. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  331. - auto rebuild in the new build environment (release 2)
  332. * Thu Mar 4 1999 Matt Wilson <msw@redhat.com>
  333. - updated to 1.75.5
  334. * Tue Feb 16 1999 Cristian Gafton <gafton@redhat.com>
  335. - avoid using makedev for internal functions (it is a #define in the system
  336. headers)
  337. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  338. - upgrade to 1.17.2.
  339. * Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
  340. - enforce the use of -D_GNU_SOURCE so that it will compile on the ARM
  341. - build against glibc 2.1
  342. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  343. - build root
  344. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  345. - translations modified for de, fr, tr
  346. * Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
  347. - enhanced initscript
  348. * Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
  349. - recompiled for manhattan
  350. * Wed Apr 08 1998 Erik Troan <ewt@redhat.com>
  351. - updated to 1.13
  352. * Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
  353. - added patch from Richard to get things to build on the SPARC
  354. * Tue Oct 28 1997 Donnie Barnes <djb@redhat.com>
  355. - fixed the emacs patch to install the emacs files in the right
  356. place (hopefully).
  357. * Mon Oct 13 1997 Erik Troan <ewt@redhat.com>
  358. - added chkconfig support
  359. - added install-info
  360. * Thu Sep 11 1997 Donald Barnes <djb@redhat.com>
  361. - upgraded from 1.10 to 1.12
  362. - added status/restart functionality to init script
  363. - added define LIBVER 1.11
  364. * Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
  365. - built against glibc