summaryrefslogtreecommitdiff
path: root/Eterm.spec.in
blob: 8d3167ad96bc26008337a879c0518e55ba00de22 (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
%define ver      @VERSION@
%define rel      1
%define prefix   @prefix@

Summary: Enlightened terminal emulator
Name: Eterm
Version: %{ver}
Release: %{rel}
Copyright: GPL
Group: Utilities/Terminal
Source: ../SOURCES/Eterm-%{ver}.tar.gz
BuildRoot: /tmp/Eterm-root/
URL: http://www.eterm.org/
Requires: imlib, libjpeg, libtiff, libungif, libpng, zlib, XFree86-libs
Packager: Todd Nemanich <trnemani@eos.ncsu.edu>

%ifarch i386
%description
This is an rpm of Eterm, a highly configurable and asethically pleasing
terminal emulator.

This rpm was optimized for i486 and was built without support
for libKenny.so.
(Egads! They killed Kenny! You bastards!)
%else
%description
This is an rpm of Eterm, a highly configurable and asethically pleasing
terminal emulator. 

This rpm contains no architecture specific optimizations, and
was built without support for libKenny.so. 
(Egads! They killed Kenny! You bastards!)
%endif

%changelog
* Sun Jun 6 1999 Todd Nemanich <trnemani@eos.ncsu.edu>
- Updated rpm to incorporate a few fixes for different architectures,
- specify /usr/local/share/Eterm/themes/* as config files, and 
- a fix for the share directory problem.

* Tue Apr 27 1999 Todd Nemanich <trnemani@eos.ncsu.edu>
- Updated to version 8.9. Added a check to make sure /usr/local/lib
- is in /etc/ld.so.conf because too many people don't know how
- ld works.
- Also moving, so new email address for me.
 
* Sat Jan 23 1999 Todd Nemanich <tick@speak.rh.ncsu.edu>
- Updated to version 8.8

* Sat Oct 23 1998 Todd Nemanich <tick@speak.rh.ncsu.edu>
- Updated to version 0.8.7. A minor change in the Makefiles was made by hand,
- due to a linkinkg problem. This should not cause problems to people using the
- source rpm, but the call to configure has been removed.

* Mon Sep 21 1998 Todd Nemanich <tick@speak.rh.ncsu.edu>
- Bad link in /usr/local/bin corrected. THX to Andy Dustman for pointing this out.

%prep
rm -fr $RPM_BUILD_ROOT $RPM_BUILD_DIR/Eterm-%{ver}
mkdir $RPM_BUILD_ROOT
cd $RPM_BUILD_DIR
tar -xzf $RPM_SOURCE_DIR/Eterm-%{ver}.tar.gz 

%build
cd $RPM_BUILD_DIR/Eterm-%{ver}
./configure --prefix=%{prefix}
%ifarch i386
make "CFLAGS=-O3 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
%else
make
%endif

%install
cd $RPM_BUILD_DIR/Eterm-%{ver}
make prefix=$RPM_BUILD_ROOT%{prefix} install



%postinst
LDPATH=`grep local /etc/ld.so.conf`

if [ "$LDPATH" = "" ] ; then
        NEW='/usr/local/lib'
        cat /etc/ld.so.conf >ld.tmp
        echo "$NEW">>new.ld
        cat ld.tmp new.ld > ld.so.conf
        mv ld.so.conf /etc/ld.so.conf
        rm -f new.ld ld.tmp
fi

/sbin/ldconfig

%clean
rm -fr $RPM_BUILD_ROOT $RPM_BUILD_DIR/Eterm-%{ver}

%files
%defattr(-,root,root)
%doc $RPM_BUILD_DIR/Eterm-%{ver}/README 
%doc $RPM_BUILD_DIR/Eterm-%{ver}/COPYING 
%doc $RPM_BUILD_DIR/Eterm-%{ver}/ChangeLog 
%doc $RPM_BUILD_DIR/Eterm-%{ver}/ReleaseNotes 
%doc $RPM_BUILD_DIR/Eterm-%{ver}/CVS-README
%doc $RPM_BUILD_DIR/Eterm-%{ver}/doc/*
%doc %{prefix}/man
%config %{prefix}/share/Eterm/themes/
%{prefix}/bin
%{prefix}/lib