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