]> git.pld-linux.org Git - packages/blt.git/blob - blt.spec
- spec adapterized.
[packages/blt.git] / blt.spec
1 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
2 Name:           blt
3 Version:        2.4q
4 Release:        1
5 License:        MIT
6 Group:          Development/Tools
7 Group(fr):      Development/Outils
8 Group(pl):      Programowanie/Narzêdzia
9 Obsoletes:      blt-devel
10 Source0:        ftp://ftp.tcltk.com/aa004735/pub/blt/BLT%{version}.tar.gz
11 Patch0:         blt-prefix.patch
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 BLT is an extension to the Tk toolkit. BLT's most useful feature is
16 the provision of more widgets for Tk, but it also provides more
17 geometry managers and miscellaneous other commands. Note that you
18 won't need to do any patching of the Tcl or Tk source files to use
19 BLT, but you will need to have Tcl/Tk installed in order to use BLT.
20 If you are programming with the Tk toolkit, you should install BLT.
21 You will need to have Tcl/Tk installed.
22
23 %description -l pl
24 BLT jest rozszerzeniem Tk. Najbardziej u¿yteczn± funkcj± BLT jest
25 dostarczenie Tk wiêkszej ilo¶ci widgetów; oferuje równie¿ wiêcej
26 mened¿erów geometrii i innych poleceñ. Aby u¿ywaæ BLT nie trzeba ³ataæ
27 plików ¼ród³owych Tcl ani Tk, trzeba jednak mieæ zainstalowanego
28 Tcl/Tk. Je¶li programuje siê w Tcl/tk, nale¿y zainstalowaæ BLT. Trzeba
29 równie¿ zainstalowaæ Tcl/Tk.
30
31 %package devel
32 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
33 Group:          Development/Tools
34 Requires:       %{name} = %{version}
35
36 %package static
37 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
38 Group:          Development/Tools
39 Requires:       %{name}-devel = %{version}
40
41 %prep
42 %setup -q -n blt%{version}
43 %patch -p1
44
45 %build
46 LDFLAGS="-s"; export LDFLAGS
47 %configure
48 make 
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT/{etc,sbin}
53
54 make install \
55         exec_prefix=$RPM_BUILD_ROOT%{_prefix}
56         prefix=$RPM_BUILD_ROOT%{_prefix} \
57         scriptdir=$RPM_BUILD_ROOT%{_libdir}/blt2.4 \
58         bare_prefix=%{_prefix}
59
60 ln -sf libBLT.so.2.4 $RPM_BUILD_ROOT%{_libdir}/libBLT.so
61
62 rm -f $RPM_BUILD_ROOT%{_mandir}/mann/{bitmap,tabset,watch}.n
63
64 strip $RPM_BUILD_ROOT%{_bindir}/* || :
65
66 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/mann/*
67         README
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README.gz html
78 %attr(755,root,root) %{_bindir}/*
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*
80 %{_libdir}/blt2.4
81
82 %files devel
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/lib*.so
85 %{_includedir}/blt.h
86 %{_mandir}/mann/*
87
88 %files static
89 %defattr(644,root,root,755)
90 %{_libdir}/lib*.a
This page took 0.081008 seconds and 3 git commands to generate.