summaryrefslogtreecommitdiff
path: root/Eterm.spec.in
blob: 7f4767167019c587a6bbe56a538a5ed2a31527ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
%define name     @PACKAGE@
%define ver      @VERSION@
%define rel      1
%define prefix   @prefix@

Summary: Enlightened terminal emulator
Name: %{name}
Version: %{ver}
Release: %{rel}
Copyright: BSD
Group: User Interface/X
Source0: ftp://ftp.eterm.org/pub/Eterm/%{name}-%{ver}.tar.gz
Source1: ftp://ftp.eterm.org/pub/Eterm/%{name}-bg-%{ver}.tar.gz
URL: http://www.eterm.org/
BuildRoot: /var/tmp/%{name}-root
Requires: imlib >= 1.9.6

%description
Eterm is a color vt102 terminal emulator with enhanced graphical
capabilities.  Eterm is intended to be a replacement for xterm for
Enlightenment window manager users, but it can also be used as a
replacement for xterm by users without Enlightenment.  Eterm supports
various themes and is very configurable, in keeping with the
philosophy of Enlightenment. If you install Eterm, you'll also need to
have the Imlib library installed.

%package backgrounds
Summary: Backgrounds for Eterm
Group: User Interface/X
Requires: %{name} = %{ver}
%description backgrounds
Install this package if you want additional backgrounds for Eterm

%prep
%setup -q -n %{name}-%{ver} 1

%build
%configure --prefix=%{prefix} --with-backspace=bs --with-delete=execute
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig/

cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name} <<EOF
%{name} name "%{name}"
%{name} description "A featureful, themeable X11 terminal emulator."
%{name} exec "%{name} &"
%{name} group Utilities/Shells
EOF

chmod 0644 $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name}

make DESTDIR=$RPM_BUILD_ROOT install

( cd $RPM_BUILD_ROOT
  mv .%{prefix}/bin/%{name} .%{prefix}/bin/%{name}-%{ver}
  cd $RPM_BUILD_ROOT%{prefix}/bin
  ln -sf %{name}-%{ver} %{name}
  cd $RPM_BUILD_ROOT
  chmod +x .%{prefix}/lib/lib*so* ||:
)

#strip -s $RPM_BUILD_ROOT%{prefix}/bin/* || :

gzip $RPM_BUILD_ROOT%{prefix}/man/man1/*

(cd $RPM_BUILD_ROOT%{prefix}/share/%{name}/pix/ ; \
 for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  mv $i $i.base ; done)

tar --use-compress-program=bzip2 -xvf %{SOURCE1}

make -C bg all
make -C bg prefix=$RPM_BUILD_ROOT%{prefix} install

#get the package listing for Eterm-backgrounds
echo "%defattr(-,root,root)" > rpm-Eterm-bg-files
cat > rpm-Eterm-bg-files <<EOF
%defattr(-,root,root)
%{prefix}/share/%{name}/pix/tiled-pixmaps.list
%{prefix}/share/%{name}/pix/scaled-pixmaps.list
%{prefix}/share/%{name}/pix/pixmaps.list
EOF
find ./bg/ -type f -not -name '*.list' -not -name 'Makefile*' \
       -not -name 'README*' -not -name 014.jpg \
        -not -name 40.jpg -not -name blackstone.jpg -not -name backwave.jpg \
        -not -name circuit.jpg -not -name nebula.jpg \
        -not -name fourthday.jpg -not -name gaia.jpg \
        -not -name galleon.jpg -not -name night_of_the_dragon.jpg \
        | sed "s#^\./bg/[scati]*le#%{prefix}/share/%{name}/pix#g" >> rpm-Eterm-bg-files

%post
/sbin/ldconfig
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  mv -f %{prefix}/share/%{name}/pix/$i.base %{prefix}/share/%{name}/pix/$i ; done

%postun
/sbin/ldconfig
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  rm -f %{prefix}/share/%{name}/pix/$i* ; done

%pre backgrounds
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  mv -f %{prefix}/share/%{name}/pix/$i %{prefix}/share/%{name}/pix/$i.base ; done

%postun backgrounds
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
  mv -f %{prefix}/share/%{name}/pix/$i.base %{prefix}/share/%{name}/pix/$i ; done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/Eterm_reference.html doc/Eterm.1.html
%doc COPYING README ChangeLog
%config(missingok) %{prefix}/share/%{name}/pix/*.list.base
/etc/X11/wmconfig/%{name}
%{prefix}/bin/*
%{prefix}/lib/*
%{prefix}/man/man1/*
%{prefix}/share/%{name}/themes
%{prefix}/share/%{name}/pix/014.jpg
%{prefix}/share/%{name}/pix/40.jpg
%{prefix}/share/%{name}/pix/blackstone.jpg
%{prefix}/share/%{name}/pix/backwave.jpg
%{prefix}/share/%{name}/pix/circuit.jpg
%{prefix}/share/%{name}/pix/nebula.jpg
%{prefix}/share/%{name}/pix/fourthday.jpg
%{prefix}/share/%{name}/pix/gaia.jpg
%{prefix}/share/%{name}/pix/galleon.jpg
%{prefix}/share/%{name}/pix/night_of_the_dragon.jpg
%{prefix}/share/%{name}/pix/bar_horizontal_[123].png
%{prefix}/share/%{name}/pix/bar_vertical_[123].png
%{prefix}/share/%{name}/pix/button_arrow_up_[123].png
%{prefix}/share/%{name}/pix/button_arrow_down_[123].png
%{prefix}/share/%{name}/pix/menu[123].png
%{prefix}/share/%{name}/pix/thumb_[12].png
%dir %{prefix}/share/%{name}
%dir %{prefix}/share/%{name}/pix

%files backgrounds -f rpm-Eterm-bg-files

%changelog
* Fri Jan 29 2000 Tim Powers <timp@redhat.com>
- rebuilt for 6.2 powertools
- bzipped source to conserve space
- using percent configure so that libtoolize is run, needed for some of the
	newer alphas instead of ./configure --prefix=
- stripping binaries again

* Fri Dec 10 1999 Michael Jennings <mej@eterm.org>
- Added Tim's spec file to CVS as Eterm.spec.in for 0.9

* Wed Dec 8 1999 Tim Powers <timp@redhat.com>
- using unified patch for utempter and themes from Michael Jennings

* Tue Dec 7 1999 Tim Powers <timp@redhat.com>
- added wmconfig entry
- split up into 2 packages, Eterm proper, and Eterm-backgrounds
- thanks to ewt, we no longer have to make Eterm suid root, uses utempter
        instead

* Mon Dec 6 1999 Tim Powers <timp@redhat.com>
- updated to 0.8.10
- patched so that Eterm finds pix/themes in the right place
- new version fixes problems with utmp, conforms to Eterm docs.
- added RedHat.Eterm_suid which includes instructions on how to run Eterm in
        order to have it seen by "w" and "who" as a regular user

* Fri Aug 20 1999 Tim Powers <timp@redhat.com>
- fixed roblem with removing all files when uninstalling Eterm.

* Tue Jul 27 1999 Tim Powers <timp@redhat.com>
- updated version to 0.8.9
- cleaned up spec
- updated patch
- includes new backgrounds
- built for 6.1

* Mon Apr 05 1999 Michael Maher <mike@redhat.com>
- update to 0.8.8

* Fri Oct 23 1998 Jeff Johnson <jbj@redhat.com>
- update to 0.8.7.

* Fri Oct 08 1998 Michael Maher <mike@redhat.com>
- built eterm