]> git.pld-linux.org Git - packages/blt.git/blob - blt.spec
- BuildRequires: autoconf; added the rest of pl translations
[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:  autoconf
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:        BLT development package
39 Summary(pl):    Pakiet dla programistów BLT
40 Group:          Development/Tools
41 Group(de):      Entwicklung/Werkzeuge
42 Group(fr):      Development/Outils
43 Group(pl):      Programowanie/Narzêdzia
44 Requires:       %{name} = %{version}
45
46 %description devel
47 BLT header files.
48
49 %description devel -l pl
50 Pliki nag³ówkowe BLT.
51
52 %package static
53 Summary:        BLT static libraries
54 Summary(pl):    Biblioteki statyczne BLT
55 Group:          Development/Tools
56 Group(de):      Entwicklung/Werkzeuge
57 Group(fr):      Development/Outils
58 Group(pl):      Programowanie/Narzêdzia
59 Requires:       %{name}-devel = %{version}
60
61 %description static
62 BLT static libraries.
63
64 %description static -l pl
65 Biblioteki statyczne BLT.
66
67 %package demos
68 Summary:        BLT demos and examples
69 Summary(pl):    Dema i przyk³ady do BLT
70 Group:          Development/Tools
71 Group(de):      Entwicklung/Werkzeuge
72 Group(fr):      Development/Outils
73 Group(pl):      Programowanie/Narzêdzia
74 Requires:       %{name} = %{version}
75
76 %description demos
77 BLT demos and examples.
78
79 %description demos -l pl
80 Programy demonstracyjne i przyk³adowe do BLT.
81
82 %prep
83 %setup -q -n blt%{version}
84 %patch0 -p1
85 %patch1 -p1
86 %patch2 -p1
87
88 %build
89 autoconf
90 %configure
91 %{__make} 
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install DESTDIR=$RPM_BUILD_ROOT
97
98 ln -sf libBLT24.so $RPM_BUILD_ROOT%{_libdir}/libBLT.so
99 ln -sf libBLTlite24.so $RPM_BUILD_ROOT%{_libdir}/libBLTlite.so
100
101 # use dynamically linked binaries
102 mv -f $RPM_BUILD_ROOT%{_bindir}/bltsh24 $RPM_BUILD_ROOT%{_bindir}/bltsh
103 mv -f $RPM_BUILD_ROOT%{_bindir}/bltwish24 $RPM_BUILD_ROOT%{_bindir}/bltwish
104
105 # bitmap.n is provided by tk-devel
106 rm -f $RPM_BUILD_ROOT%{_mandir}/mann/bitmap.n
107
108 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
109 mv -f $RPM_BUILD_ROOT%{_libdir}/blt2.4/demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}
110 cp -rf examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
111
112 rm -f html/Makefile* $RPM_BUILD_ROOT%{_libdir}/blt2.4/{NEWS,README,PROBLEMS}
113
114 gzip -9nf README NEWS PROBLEMS
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post   -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
121
122 %files
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_bindir}/*
125 %attr(755,root,root) %{_libdir}/lib*24.so
126 %{_libdir}/blt2.4
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*[a-zA-Z].so
131 %doc *.gz html
132 %{_includedir}/blt.h
133 %{_mandir}/mann/*
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/lib*.a
138
139 %files demos
140 %defattr(644,root,root,755)
141 %{_examplesdir}/%{name}
This page took 0.04296 seconds and 3 git commands to generate.