source: projects/specs/branches/6/g/gpm/gpm-vl.spec @ 5648

Revision 5648, 14.8 KB checked in by Takemikaduchi, 12 years ago (diff)

arpscan, aslookup, audacity, black-box, bookview, bumprace, gimp-help, js: new upstream release
libsrtp, gstreamer-filters: new package
others: rebuild

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