]> git.pld-linux.org Git - packages/perl-Tk.git/blob - perl-Tk.spec
9c0943b4d0903a20d8b25a8110fff9bcfe1a2f76
[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 Perl module
11 Summary(cs):    Modul Tk pro Perl
12 Summary(da):    Perlmodul Tk
13 Summary(de):    Tk Perl Modul
14 Summary(es):    Módulo de Perl Tk
15 Summary(fr):    Module Perl Tk
16 Summary(it):    Modulo di Perl Tk
17 Summary(ja):    Tk Perl ¥â¥¸¥å¡¼¥ë
18 Summary(ko):    Tk ÆÞ ¸ðÁÙ
19 Summary(no):    Perlmodul Tk
20 Summary(pl):    Modu³ Perla Tk
21 Summary(pt):    Módulo de Perl Tk
22 Summary(pt_BR): Módulo Perl Tk
23 Summary(ru):    íÏÄÕÌØ ÄÌÑ Perl Tk
24 Summary(sv):    Tk Perlmodul
25 Summary(uk):    íÏÄÕÌØ ÄÌÑ Perl Tk
26 Summary(zh_CN): Tk Perl Ä£¿é
27 Name:           perl-Tk
28 Version:        800.024
29 Release:        2
30 License:        GPL
31 Group:          Development/Languages/Perl
32 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
33 Patch0:         %{name}-paths.patch
34 Patch1:         %{name}-misc.patch
35 Patch2:         %{name}-man_section.patch
36 BuildRequires:  XFree86-devel
37 BuildRequires:  perl-Tie-Watch
38 BuildRequires:  perl-devel >= 5.6.1
39 BuildRequires:  rpm-perlprov >= 4.1-13
40 Provides:       perl(Tk::LabRadio)
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _noautoreq      'perl(Plot)' 'perl(WidgetDemo)'
44
45 %description
46 This package gives you the ability to develop perl applications using
47 the Tk GUI.
48
49 %description -l pl
50 Ten pakiet daje Ci mo¿liwo¶æ tworzenia aplikacji perla z
51 wykorzystaniem GUI Tk.
52
53 %prep
54 %setup -q -n %{pnam}%{version}
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58
59 %build
60 %{__perl} Makefile.PL \
61         INSTALLDIRS=vendor 
62 %{__perl} -pi -e 's/<default.h>/"default.h"/g' pTk/tixDef.h
63 %{__make} OPTIMIZE="%{rpmcflags}"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Tk
68
69 %{__make} install DESTDIR=$RPM_BUILD_ROOT
70
71 rm -f   $RPM_BUILD_ROOT%{perl_vendorarch}/{auto/Tk/.packlist,Tk/reindex.pl} \
72         $RPM_BUILD_ROOT%{_mandir}/man3/Tie::Watch.3pm \
73         $RPM_BUILD_ROOT%{perl_vendorarch}/Tk/*.pod
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc Changes README README.linux ToDo Funcs.doc
81 %attr(755,root,root) %{_bindir}/*
82 %dir %{perl_vendorlib}/Tk
83 %{perl_vendorarch}/Tk.pm
84 %{perl_vendorarch}/Tk
85 %dir %{perl_vendorarch}/auto/Tk
86 %{perl_vendorarch}/auto/Tk/Tk.bs
87 %attr(755,root,root) %{perl_vendorarch}/auto/Tk/Tk.so
88 %{perl_vendorarch}/auto/Tk/autosplit.ix
89 %{perl_vendorarch}/auto/Tk/*.al
90 %dir %{perl_vendorarch}/auto/Tk/[BHLMNPWXp]*
91 %dir %{perl_vendorarch}/auto/Tk/Canvas
92 %dir %{perl_vendorarch}/auto/Tk/C[lo]*
93 %dir %{perl_vendorarch}/auto/Tk/Entry
94 %dir %{perl_vendorarch}/auto/Tk/Event
95 %dir %{perl_vendorarch}/auto/Tk/Frame
96 %dir %{perl_vendorarch}/auto/Tk/IO
97 %dir %{perl_vendorarch}/auto/Tk/InputO
98 %dir %{perl_vendorarch}/auto/Tk/Sc*
99 %dir %{perl_vendorarch}/auto/Tk/T[Laeio]*
100 %{perl_vendorarch}/auto/Tk/*/autosplit.ix
101 %{perl_vendorarch}/auto/Tk/*/*.al
102 %{perl_vendorarch}/auto/Tk/*/*.bs
103 %{perl_vendorarch}/auto/Tk/*/*.ld
104 %attr(755,root,root) %{perl_vendorarch}/auto/Tk/*/*.so
105 %{_mandir}/man[13]/*
This page took 0.511535 seconds and 2 git commands to generate.