gpm-vl.spec 15 KB

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