source: projects/specs/trunk/p/perl-Video-Capture-V4l/perl-Video-Capture-V4l-vl.spec @ 521

Revision 521, 1.6 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1%define pkgname Video-Capture-V4l
2
3Summary:        A perl module for the Video4linux framegrabber interface.
4Name:           perl-%{pkgname}
5Version:        0.901
6Release:        1%{?_dist_release}
7Group:          Development/Libraries
8License:        distributable
9URL:            http://search.cpan.org/dist/Video-Capture-V4l
10Source0:        %{pkgname}-%{version}.tar.gz
11Patch0:         perl-Video-Capture-V4l-0.901-buildfix.patch
12BuildRoot:      %{_tmppath}/%{name}-%{version}-root
13
14Requires:       perl-Video-Frequencies
15
16%description
17Video::Capture::V4l is a perl interface to the Video4linux framegrabber
18interface.
19
20%prep
21%setup -q -n %{pkgname}-%{version}
22%patch -p1 -b .buildfix
23
24%build
25CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
26make %{?_smp_mflags}
27make test
28
29%install
30rm -rf $RPM_BUILD_ROOT
31make install
32
33# remove old Vine::Frequencies module.
34find $RPM_BUILD_ROOT%{_prefix} -name "*Frequencies*" -exec rm -f {} \;
35
36[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
37
38find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
39        sed "s@^$RPM_BUILD_ROOT@@g" | \
40        grep -v perllocal.pod | \
41        grep -v "\.packlist" > %{pkgname}-%{version}-filelist
42if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
43    echo "ERROR: EMPTY FILE LIST"
44    exit -1
45fi
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files -f %{pkgname}-%{version}-filelist
51%defattr(-,root,root)
52%doc README MANIFEST
53
54%changelog
55* Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.901-1
56- apply new versioning policy
57- rebuild with perl v5.10.0
58
59* Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.901-0vl1
60- new upstream release
61
62* Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.224-0vl1
63- initial build for Vine Linux
64
Note: See TracBrowser for help on using the repository browser.