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