]>
Commit | Line | Data |
---|---|---|
39241bfa | 1 | # TODO: |
8445abf7 JB |
2 | # - package libxnee if needed for anything (it's noinst now) |
3 | # - generate docs - (some files are missing) | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_with doc # documentation (broken, missing files) | |
7 | %bcond_without gnome # GNOME panel applet | |
8 | # | |
32202ea1 | 9 | Summary: Suite of programs that can record and replay user actions under X11 |
8af58442 | 10 | Summary(pl.UTF-8): Zestaw programów do nagrywania i odtwarzania akcji użytkownika pod X11 |
39241bfa | 11 | Name: Xnee |
558f9496 | 12 | Version: 3.15 |
39241bfa | 13 | Release: 0.1 |
8445abf7 | 14 | License: GPL v3+ |
32202ea1 | 15 | Group: X11/Applications |
558f9496 JB |
16 | Source0: http://ftp.gnu.org/gnu/xnee/xnee-%{version}.tar.gz |
17 | # Source0-md5: 32c8ac9f354741f03d7736383599984e | |
32202ea1 | 18 | Patch0: %{name}-info.patch |
558f9496 JB |
19 | Patch1: %{name}-link.patch |
20 | Patch2: %{name}-am.patch | |
39241bfa | 21 | URL: http://www.gnu.org/software/xnee/www/index.html |
558f9496 JB |
22 | BuildRequires: autoconf |
23 | BuildRequires: automake | |
8445abf7 | 24 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
558f9496 | 25 | BuildRequires: libtool |
8445abf7 JB |
26 | BuildRequires: pkgconfig >= 1:0.9.0 |
27 | BuildRequires: texinfo | |
7c2500e2 | 28 | BuildRequires: xorg-proto-recordproto-devel |
558f9496 JB |
29 | BuildRequires: xorg-lib-libX11-devel |
30 | BuildRequires: xorg-lib-libXi-devel | |
7c2500e2 | 31 | BuildRequires: xorg-lib-libXtst-devel |
8445abf7 JB |
32 | %if %{with gnome} |
33 | BuildRequires: GConf2-devel >= 2.0 | |
34 | BuildRequires: gnome-panel-devel >= 2.0 | |
35 | %endif | |
36 | %if %{with doc} | |
37 | BuildRequires: ImageMagick | |
38 | BuildRequires: ImageMagick-coder-jpeg | |
39 | BuildRequires: ImageMagick-coder-png | |
40 | BuildRequires: dia | |
41 | BuildRequires: ghostscript | |
42 | BuildRequires: tetex-dvips | |
43 | BuildRequires: tetex-format-plain | |
44 | BuildRequires: tetex-tex-misc | |
45 | BuildRequires: texinfo-texi2dvi | |
46 | %endif | |
39241bfa | 47 | Provides: xnee |
8445abf7 | 48 | Obsoletes: xnee |
32202ea1 JB |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | Xnee is a suite of programs that can record, replay and distribute | |
53 | user actions under the X11 environment. Think of it as a robot that | |
54 | can imitate the job you just did. Xnee can be used to: automate tests, | |
55 | demonstrate programs, distribute actions, record and replay "macros", | |
56 | retype a file etc. | |
57 | ||
2f4dc8a5 JR |
58 | %description -l pl.UTF-8 |
59 | Xnee to zestaw programów do nagrywania, odtwarzania i powielania akcji | |
60 | użytkownika w środowisku X11. Można je określić jako maszynę | |
61 | powtarzającą pracę wykonaną przez nas. Xnee można użyć do: | |
62 | automatyzowania testów, demonstrowania programów, powielania akcji (na | |
32202ea1 | 63 | wielu komputerach), nagrywania i odtwarzania "makr", przepisywania |
2f4dc8a5 | 64 | plików itp. |
32202ea1 | 65 | |
8445abf7 JB |
66 | %package gtk |
67 | Summary: gnee - GTK+ based graphical frontent to GNU Xnee | |
68 | Summary(pl.UTF-8): gnee - oparty na GTK+ graficzny interfejs do GNU Xnee | |
69 | Group: X11/Applications | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
72 | %description gtk | |
73 | gnee is the graphical frontend to GNU Xnee, based on GTK+ toolkit. | |
74 | ||
75 | %description gtk -l pl.UTF-8 | |
76 | gnee to graficzny interfejs do GNU Xnee, oparty na GTK+. | |
77 | ||
78 | %package gnome | |
79 | Summary: pnee - GNOME panel applet for GNU Xnee | |
80 | Summary(pl.UTF-8): pnee - aplet panelu GNOME dla GNU Xnee | |
81 | Group: X11/Applications | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | ||
84 | %description gnome | |
85 | pnee is the GNOME panel applet for GNU Xnee. | |
86 | ||
87 | %description gnome -l pl.UTF-8 | |
88 | pnee to aplet panelu GNOME dla GNU Xnee. | |
89 | ||
32202ea1 | 90 | %prep |
558f9496 | 91 | %setup -q -n xnee-%{version} |
8445abf7 | 92 | %patch0 -p1 |
558f9496 JB |
93 | %patch1 -p1 |
94 | %patch2 -p1 | |
32202ea1 JB |
95 | |
96 | %build | |
558f9496 JB |
97 | %{__libtoolize} |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
102 | # disable static as no API is installed | |
39241bfa | 103 | %configure \ |
8445abf7 | 104 | --disable-doc \ |
558f9496 JB |
105 | --disable-static \ |
106 | --disable-static-programs \ | |
107 | %{?with_gnome:--enable-gnome-applet} \ | |
108 | --enable-gui \ | |
109 | --enable-lib \ | |
8445abf7 | 110 | --enable-xosd |
39241bfa | 111 | |
32202ea1 | 112 | %{__make} \ |
8445abf7 | 113 | CNEE_INFO="cnee.info" |
32202ea1 JB |
114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %{__make} install \ | |
8445abf7 | 119 | DESTDIR=$RPM_BUILD_ROOT \ |
17ddc481 JB |
120 | CNEE_INFO="cnee.info" \ |
121 | PANEL_APPLET_DIR=$RPM_BUILD_ROOT%{_bindir} \ | |
122 | PANEL_SERVER_DIR=$RPM_BUILD_ROOT%{_libdir}/bonobo/servers | |
32202ea1 | 123 | |
558f9496 JB |
124 | # API not installed |
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxnee.{so,la} | |
126 | ||
32202ea1 JB |
127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
558f9496 JB |
130 | %post -p /sbin/postshell |
131 | -/sbin/ldconfig | |
8998578e | 132 | -/usr/sbin/fix-info-dir -c %{_infodir} |
32202ea1 | 133 | |
558f9496 JB |
134 | %postun -p /sbin/postshell |
135 | -/sbin/ldconfig | |
8998578e | 136 | -/usr/sbin/fix-info-dir -c %{_infodir} |
32202ea1 JB |
137 | |
138 | %files | |
139 | %defattr(644,root,root,755) | |
8445abf7 | 140 | %doc AUTHORS BUGS ChangeLog FAQ NEWS README TODO |
39241bfa | 141 | %attr(755,root,root) %{_bindir}/cnee |
558f9496 JB |
142 | %attr(755,root,root) %{_libdir}/libxnee.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libxnee.so.0 | |
8445abf7 JB |
144 | %dir %{_datadir}/xnee |
145 | %{_datadir}/xnee/*.sh | |
146 | %{_datadir}/xnee/*.xns | |
558f9496 JB |
147 | %{_pixmapsdir}/xnee.png |
148 | %{_pixmapsdir}/xnee.xpm | |
8445abf7 JB |
149 | %{_mandir}/man1/cnee.1* |
150 | %{_mandir}/man1/xnee.1* | |
151 | %{_infodir}/cnee.info* | |
152 | ||
153 | %files gtk | |
154 | %defattr(644,root,root,755) | |
155 | %doc gnee/AUTHORS | |
39241bfa | 156 | %attr(755,root,root) %{_bindir}/gnee |
8445abf7 JB |
157 | %{_mandir}/man1/gnee.1* |
158 | ||
159 | %if %{with gnome} | |
160 | %files gnome | |
161 | %defattr(644,root,root,755) | |
17ddc481 | 162 | %attr(755,root,root) %{_bindir}/pnee |
8445abf7 | 163 | %{_libdir}/bonobo/servers/pnee.server |
558f9496 | 164 | %dir %{_datadir}/xnee/pixmaps |
8445abf7 JB |
165 | %{_datadir}/xnee/pixmaps/pnee-*.png |
166 | %{_mandir}/man1/pnee.1* | |
167 | %endif |