]> git.pld-linux.org Git - packages/blt.git/blob - blt.spec
cc4579952ec977efa889f624c50b6b3bdd97a0ab
[packages/blt.git] / blt.spec
1 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc
2 Summary(pl):    Rozszerezenie Tk umo¿liwiajace operowanie na kontrolkach i wiele innych
3 Name:           blt
4 Version:        2.4u
5 Release:        5
6 License:        MIT
7 Group:          Development/Tools
8 Group(de):      Entwicklung/Werkzeuge
9 Group(fr):      Development/Outils
10 Group(pl):      Programowanie/Narzêdzia
11 Source0:        ftp://tcltk.sourceforge.net/pub/tcltk/blt/BLT%{version}.tar.gz
12 Patch0:         %{name}-DESTDIR.patch
13 Patch1:         %{name}-paths.patch
14 Patch2:         %{name}-excl.patch
15 BuildRequires:  tcl-devel >= 8.3.2
16 BuildRequires:  tk-devel >= 8.3.2
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 BLT is an extension to the Tk toolkit. BLT's most useful feature is
21 the provision of more widgets for Tk, but it also provides more
22 geometry managers and miscellaneous other commands. Note that you
23 won't need to do any patching of the Tcl or Tk source files to use
24 BLT, but you will need to have Tcl/Tk installed in order to use BLT.
25 If you are programming with the Tk toolkit, you should install BLT.
26 You will need to have Tcl/Tk installed.
27
28 %description -l pl
29 BLT jest rozszerzeniem Tk. Najbardziej u¿yteczn± funkcj± BLT jest
30 dostarczenie Tk wiêkszej ilo¶ci widgetów; oferuje równie¿ wiêcej
31 mened¿erów geometrii i innych poleceñ. Aby u¿ywaæ BLT nie trzeba ³ataæ
32 plików ¼ród³owych Tcl ani Tk, trzeba jednak mieæ zainstalowanego
33 Tcl/Tk. Je¶li programuje siê w Tcl/tk, nale¿y zainstalowaæ BLT. Trzeba
34 równie¿ zainstalowaæ Tcl/Tk.
35
36 %package devel
37 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
38 Group:          Development/Tools
39 Group(de):      Entwicklung/Werkzeuge
40 Group(fr):      Development/Outils
41 Group(pl):      Programowanie/Narzêdzia
42 Requires:       %{name} = %{version}
43
44 %description devel
45 BLT header files.
46
47 %package static
48 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
49 Group:          Development/Tools
50 Group(de):      Entwicklung/Werkzeuge
51 Group(fr):      Development/Outils
52 Group(pl):      Programowanie/Narzêdzia
53 Requires:       %{name}-devel = %{version}
54
55 %description static
56 BLT static libraries.
57
58 %package demos
59 Summary:        A Tk toolkit extension, including widgets, geometry managers, etc.
60 Group:          Development/Tools
61 Group(de):      Entwicklung/Werkzeuge
62 Group(fr):      Development/Outils
63 Group(pl):      Programowanie/Narzêdzia
64 Requires:       %{name} = %{version}
65
66 %description demos
67 BLT demos and examples.
68
69 %prep
70 %setup -q -n blt%{version}
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74
75 %build
76 %configure
77 %{__make} 
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install DESTDIR=$RPM_BUILD_ROOT
83
84 ln -sf libBLT24.so $RPM_BUILD_ROOT%{_libdir}/libBLT.so
85 ln -sf libBLTlite24.so $RPM_BUILD_ROOT%{_libdir}/libBLTlite.so
86
87 # use dynamically linked binaries
88 mv -f $RPM_BUILD_ROOT%{_bindir}/bltsh24 $RPM_BUILD_ROOT%{_bindir}/bltsh
89 mv -f $RPM_BUILD_ROOT%{_bindir}/bltwish24 $RPM_BUILD_ROOT%{_bindir}/bltwish
90
91 # bitmap.n is provided by tk-devel
92 rm -f $RPM_BUILD_ROOT%{_mandir}/mann/bitmap.n
93
94 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
95 mv -f $RPM_BUILD_ROOT%{_libdir}/blt2.4/demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}
96 cp -rf examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
97
98 rm -f html/Makefile* $RPM_BUILD_ROOT%{_libdir}/blt2.4/{NEWS,README,PROBLEMS}
99
100 gzip -9nf README NEWS PROBLEMS
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*24.so
112 %{_libdir}/blt2.4
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/lib*[a-zA-Z].so
117 %doc *.gz html
118 %{_includedir}/blt.h
119 %{_mandir}/mann/*
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/lib*.a
124
125 %files demos
126 %defattr(644,root,root,755)
127 %{_examplesdir}/%{name}
This page took 0.071143 seconds and 2 git commands to generate.