2 |
|
|
3 |
Summary: %{Summary} |
Summary: %{Summary} |
4 |
Name: xterm |
Name: xterm |
5 |
Version: 276 |
Version: 278 |
6 |
Release: %mkrel 1 |
Release: %mkrel 1 |
7 |
Source0: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz |
Source0: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz |
8 |
Source1: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz.asc |
Source1: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz.asc |
53 |
%make |
%make |
54 |
|
|
55 |
%install |
%install |
56 |
rm -rf $RPM_BUILD_ROOT |
make DESTDIR=%{buildroot} install |
|
make DESTDIR=$RPM_BUILD_ROOT install |
|
57 |
|
|
58 |
# NOTE: encodingMode: locale means to follow the charset encoding of the |
# NOTE: encodingMode: locale means to follow the charset encoding of the |
59 |
# locale. A quite complete unicode font is set as the default (instead of the |
# locale. A quite complete unicode font is set as the default (instead of the |
62 |
# locale: true means to use luit to convert locale encoding to unicode |
# locale: true means to use luit to convert locale encoding to unicode |
63 |
# for display. |
# for display. |
64 |
# luit support is needed for it to work -- pablo |
# luit support is needed for it to work -- pablo |
65 |
cat << EOF >> $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults/XTerm |
cat << EOF >> %{buildroot}%{_libdir}/X11/app-defaults/XTerm |
66 |
|
|
67 |
*.vt100.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1 |
*.vt100.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1 |
68 |
*.vt100.encodingMode: locale |
*.vt100.encodingMode: locale |
71 |
*.backarrowKeyIsErase: on |
*.backarrowKeyIsErase: on |
72 |
EOF |
EOF |
73 |
|
|
74 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications |
mkdir -p %{buildroot}%{_datadir}/applications |
75 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
76 |
[Desktop Entry] |
[Desktop Entry] |
77 |
Name=XTerm |
Name=XTerm |
78 |
Comment=%Summary |
Comment=%{Summary} |
79 |
Exec=%{name} -name Terminal |
Exec=%{name} -name Terminal |
80 |
Icon=xterm-terminal |
Icon=xterm-terminal |
81 |
Terminal=false |
Terminal=false |
85 |
EOF |
EOF |
86 |
|
|
87 |
for xpm in xterm{-color_32x32,-color_48x48,_32x32,_48x48}.xpm; do |
for xpm in xterm{-color_32x32,-color_48x48,_32x32,_48x48}.xpm; do |
88 |
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/$xpm |
rm -f %{buildroot}%{_datadir}/pixmaps/$xpm |
89 |
done |
done |
90 |
mkdir -p $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps |
91 |
install -m 644 %{_sourcedir}/xterm-16x16.png \ |
install -m 644 %{_sourcedir}/xterm-16x16.png \ |
92 |
$RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/xterm-terminal.png |
%{buildroot}%{_iconsdir}/hicolor/16x16/apps/xterm-terminal.png |
93 |
install -m 644 %{_sourcedir}/xterm-32x32.png \ |
install -m 644 %{_sourcedir}/xterm-32x32.png \ |
94 |
$RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/xterm-terminal.png |
%{buildroot}%{_iconsdir}/hicolor/32x32/apps/xterm-terminal.png |
95 |
install -m 644 %{_sourcedir}/xterm-48x48.png \ |
install -m 644 %{_sourcedir}/xterm-48x48.png \ |
96 |
$RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/xterm-terminal.png |
%{buildroot}%{_iconsdir}/hicolor/48x48/apps/xterm-terminal.png |
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
97 |
|
|
98 |
%post |
%post |
99 |
update-alternatives --install %{_bindir}/xvt xvt %{_bindir}/xterm 18 || : |
update-alternatives --install %{_bindir}/xvt xvt %{_bindir}/xterm 18 || : |
102 |
[[ "$1" = "0" ]] && update-alternatives --remove xvt %{_bindir}/xterm || : |
[[ "$1" = "0" ]] && update-alternatives --remove xvt %{_bindir}/xterm || : |
103 |
|
|
104 |
%files |
%files |
|
%defattr(-,root,root) |
|
105 |
%doc ctlseqs.txt colortest.pl |
%doc ctlseqs.txt colortest.pl |
106 |
%{_bindir}/* |
%{_bindir}/* |
107 |
%{_mandir}/*/* |
%{_mandir}/*/* |
108 |
%{_libdir}/X11/app-defaults/* |
%{_libdir}/X11/app-defaults/* |
109 |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
110 |
%{_iconsdir}/hicolor/*/apps/xterm-terminal.png |
%{_iconsdir}/hicolor/*/apps/xterm-terminal.png |
|
|
|
|
|
|