1 | %define pkgname Video-Capture-V4l |
---|
2 | |
---|
3 | Summary: A perl module for the Video4linux framegrabber interface. |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.901 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Group: Development/Libraries |
---|
8 | License: distributable |
---|
9 | URL: http://search.cpan.org/dist/Video-Capture-V4l |
---|
10 | Source0: %{pkgname}-%{version}.tar.gz |
---|
11 | Patch0: perl-Video-Capture-V4l-0.901-buildfix.patch |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | |
---|
14 | Requires: perl-Video-Frequencies |
---|
15 | |
---|
16 | %description |
---|
17 | Video::Capture::V4l is a perl interface to the Video4linux framegrabber |
---|
18 | interface. |
---|
19 | |
---|
20 | %prep |
---|
21 | %setup -q -n %{pkgname}-%{version} |
---|
22 | %patch -p1 -b .buildfix |
---|
23 | |
---|
24 | %build |
---|
25 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor |
---|
26 | make %{?_smp_mflags} |
---|
27 | make test |
---|
28 | |
---|
29 | %install |
---|
30 | rm -rf $RPM_BUILD_ROOT |
---|
31 | make install |
---|
32 | |
---|
33 | # remove old Vine::Frequencies module. |
---|
34 | find $RPM_BUILD_ROOT%{_prefix} -name "*Frequencies*" -exec rm -f {} \; |
---|
35 | |
---|
36 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
37 | |
---|
38 | find $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 |
---|
42 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
43 | echo "ERROR: EMPTY FILE LIST" |
---|
44 | exit -1 |
---|
45 | fi |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -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 | |
---|