source: projects/specs/trunk/p/perl-Curses/perl-Curses-vl.spec @ 5803

Revision 5803, 4.6 KB checked in by shaolin, 12 years ago (diff)
  • new packages (and a few updates)
Line 
1Name:           perl-Curses
2Version:        1.28
3Release:        1%{?_dist_release}
4Summary:        Perl bindings for ncurses
5
6Group:          Development/Libraries
7License:        GPL+
8URL:            http://search.cpan.org/dist/Curses/
9Source0:        http://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/Curses-%{version}.tgz
10BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12BuildRequires:  ncurses-devel perl(Test::More)
13Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
14
15%description
16Perl bindings for ncurses, bringing terminal-independent character
17handling capabilities to Perl.
18
19
20%prep
21%setup -q -n Curses-%{version}
22test -f hints/c-linux.ncursesw.h || cp hints/c-linux.ncurses.h hints/c-linux.ncursesw.h
23sed -i -e 's|/usr/local/bin/perl|%{__perl}|' demo*
24sed -i -e 's|/usr//bin/perl|%{__perl}|' demo*
25
26%build
27%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
28   PANELS MENUS FORMS
29make %{?_smp_mflags}
30
31# A note about the following alarming output...
32#
33#  WARNING: Your Curses form.h file appears to be in the default
34#  system search path, which will not work for us because of
35#  the conflicting Perl form.h file.  This means your 'make' will
36#  probably fail unless you fix this, as described in the INSTALL
37#  file.
38#
39#... can be ignored because /usr/include/form.h is a symlink to
40#/usr/include/ncurses/form.h, which the Makefile.PL finds and
41#uses quite happily.
42
43
44%install
45rm -rf %{buildroot}
46make pure_install PERL_INSTALL_ROOT=%{buildroot}
47find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
48find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
49find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
50chmod -R u+w %{buildroot}/*
51
52#Remove exec perm for file aimed to be bundled as %%doc
53chmod -x demo*
54
55%check
56make test
57
58
59%clean
60rm -rf %{buildroot}
61
62
63%files
64%defattr(-,root,root,-)
65%doc Copying Artistic README demo*
66%{perl_vendorarch}/auto/*
67%{perl_vendorarch}/Curses.pm
68%{_mandir}/man3/*.3*
69
70
71%changelog
72* Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.28-1
73- initial build for Vine Linux
74
75* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-5
76- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77
78* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.28-4
79- Perl mass rebuild
80
81* Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.28-3
82- Perl mass rebuild
83
84* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-2
85- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
86
87* Sun Feb 6 2011 Steve Traylen <steve.traylen@cern.ch> - 1.28-1
88- Upstream to 1.28
89
90* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.27-5
91- 661697 rebuild for fixing problems with vendorach/lib
92
93* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.27-4
94- Mass rebuild with perl-5.12.0
95
96* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.27-3
97- rebuild against perl 5.10.1
98
99* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.27-2
100- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
101
102* Thu Jul 16 2009 kwizart < kwizart at gmail.com > - 1.27-1
103- Update to 1.27
104- Remove exec perm for demo* provided as %%doc - Fix #510186
105
106* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-4
107- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
108
109* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.20-3
110- rebuild for new perl
111
112* Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 1.20-2
113- forgot to update tarball, building
114
115* Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 1.20-1
116- bump to 1.20
117
118* Fri Aug 17 2007 Garrick Staples <garrick@usc.edu> 1.16-4
119- fix /usr//bin/perl, bz#253336
120
121* Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-3
122- need BR: perl(Test::More)
123
124* Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-2
125- rebuild
126
127* Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-1
128- bump to 1.16
129- correct License: tag
130- need BR: perl-devel
131
132* Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.15-1
133- bump to 1.15
134
135* Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.14-2
136- rebuild
137
138* Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.14-1
139- bump to 1.14
140- FC6 mass rebuild
141
142* Fri Apr 21 2006 Garrick Staples <garrick@usc.edu> 1.13-3
143- add a note about the falsely alarming warning
144- don't remove execute bit from demos
145
146* Thu Apr 20 2006 Garrick Staples <garrick@usc.edu> 1.13-2
147- spec cleanups
148- add doc files
149
150* Wed Apr 19 2006 Garrick Staples <garrick@usc.edu> 1.13-1
151- Initial spec file
Note: See TracBrowser for help on using the repository browser.