]> git.pld-linux.org Git - packages/blt.git/blob - blt.spec
- added using CVS keywords in %changelog (for automating them).
[packages/blt.git] / blt.spec
1 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
2 Name:           blt
3 Version:        2.4g
4 Release:        5
5 Copyright:      MIT
6 Group:          Development/Tools
7 Obsoletes:      blt-devel
8 Source0:        ftp://ftp.tcltk.org/pub/blt/BLT%{version}.tar.gz
9 Patch0:         blt-prefix.patch
10 Buildroot:      /tmp/%{name}-%{version}-root
11
12 %description
13 BLT is an extension to the Tk toolkit. BLT's most useful feature is the
14 provision of more widgets for Tk, but it also provides more geometry
15 managers and miscellaneous other commands. Note that you won't need to do
16 any patching of the Tcl or Tk source files to use BLT, but you will need to
17 have Tcl/Tk installed in order to use BLT.
18
19 If you are programming with the Tk toolkit, you should install BLT.
20 You will need to have Tcl/Tk installed.
21
22 %package devel
23
24 %package static
25
26 %prep
27 %setup -q -n blt%{version}
28 %patch -p1
29
30 %build
31 LDFLAGS="-s"; export LDFLAGS
32 %configure
33 make 
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT/{etc,sbin}
38
39 make exec_prefix=$RPM_BUILD_ROOT/usr prefix=$RPM_BUILD_ROOT/usr \
40   scriptdir=$RPM_BUILD_ROOT/usr/lib/blt2.4 bare_prefix=/usr install
41
42 ln -sf libBLT.so.2.4 $RPM_BUILD_ROOT/usr/lib/libBLT.so
43
44 rm -f $RPM_BUILD_ROOT%{_mandir}/mann/{bitmap,tabset,watch}.n
45
46 strip $RPM_BUILD_ROOT/usr/bin/* || :
47
48 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/mann/*
49         README
50
51 %post   -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README.gz html
60 %attr(755,root,root) /usr/bin/*
61 %attr(755,root,root) /usr/lib/lib*.so.*.*
62 /usr/lib/blt2.4
63
64 %files devel
65 %defattr(644,root,root,755)
66 %attr(755,root,root) /usr/lib/lib*.so
67 /usr/include/blt.h
68 %{_mandir}/mann/*
69
70 %files static
71 %attr(644,root,root) /usr/lib/lib*.a
This page took 0.113798 seconds and 4 git commands to generate.