]> git.pld-linux.org Git - packages/perl-Tk.git/blob - perl-Tk.spec
- up to 800.025, updated paths and man_section patches
[packages/perl-Tk.git] / perl-Tk.spec
1 #
2 # TODO:
3 # - move *license* files to %%docdir
4 # - better summaries / descriptions
5 # - do something with the demos (AAArgh!)
6 #
7 %include        /usr/lib/rpm/macros.perl
8 %define pdir    Tk
9 %define pnam    Tk
10 Summary:        Tk module - a graphical user interface toolkit for Perl
11 Summary(pl):    Modu³ Tk - toolkit graficznego interfejsu u¿ytkownika dla Perla
12 Name:           perl-Tk
13 Version:        800.025
14 Release:        1
15 License:        GPL
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}%{version}.tar.gz
18 # Source0-md5:  9907e608addd2e3f004d45f13dfb181e
19 Patch0:         %{name}-paths.patch
20 Patch1:         %{name}-misc.patch
21 Patch2:         %{name}-man_section.patch
22 BuildRequires:  XFree86-devel
23 BuildRequires:  perl-Tie-Watch
24 BuildRequires:  perl-devel >= 5.8.0
25 BuildRequires:  rpm-perlprov >= 4.1-13
26 Provides:       perl(Tk::LabRadio)
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _noautoreq      'perl(Plot)' 'perl(WidgetDemo)'
30
31 %description
32 This package gives you the ability to develop perl applications using
33 the Tk GUI.
34
35 %description -l pl
36 Ten pakiet daje Ci mo¿liwo¶æ tworzenia aplikacji perla z
37 wykorzystaniem GUI Tk.
38
39 %prep
40 %setup -q -n %{pnam}%{version}
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__perl} -pi -e 's/<default.h>/"default.h"/g' pTk/tixDef.h
49 %{__make} \
50         OPTIMIZE="%{rpmcflags}"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Tk
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 rm -f   $RPM_BUILD_ROOT%{perl_vendorarch}/{auto/Tk/.packlist,Tk/reindex.pl} \
60         $RPM_BUILD_ROOT%{_mandir}/man3/Tie::Watch.3pm \
61         $RPM_BUILD_ROOT%{perl_vendorarch}/Tk/*.pod
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc Changes README README.linux ToDo Funcs.doc
69 %attr(755,root,root) %{_bindir}/*
70 %dir %{perl_vendorlib}/Tk
71 %{perl_vendorarch}/Tk.pm
72 %{perl_vendorarch}/Tk
73 %dir %{perl_vendorarch}/auto/Tk
74 %{perl_vendorarch}/auto/Tk/Tk.bs
75 %attr(755,root,root) %{perl_vendorarch}/auto/Tk/Tk.so
76 %{perl_vendorarch}/auto/Tk/autosplit.ix
77 %{perl_vendorarch}/auto/Tk/*.al
78 %dir %{perl_vendorarch}/auto/Tk/[BHLMNPWXp]*
79 %dir %{perl_vendorarch}/auto/Tk/Canvas
80 %dir %{perl_vendorarch}/auto/Tk/C[lo]*
81 %dir %{perl_vendorarch}/auto/Tk/Entry
82 %dir %{perl_vendorarch}/auto/Tk/Event
83 %dir %{perl_vendorarch}/auto/Tk/Frame
84 %dir %{perl_vendorarch}/auto/Tk/IO
85 %dir %{perl_vendorarch}/auto/Tk/InputO
86 %dir %{perl_vendorarch}/auto/Tk/Sc*
87 %dir %{perl_vendorarch}/auto/Tk/T[Laeio]*
88 %{perl_vendorarch}/auto/Tk/*/autosplit.ix
89 %{perl_vendorarch}/auto/Tk/*/*.al
90 %{perl_vendorarch}/auto/Tk/*/*.bs
91 %{perl_vendorarch}/auto/Tk/*/*.ld
92 %attr(755,root,root) %{perl_vendorarch}/auto/Tk/*/*.so
93 %{_mandir}/man[13]/*
This page took 1.282583 seconds and 4 git commands to generate.