[521] | 1 | %define perlversion %(rpm -q perl --qf "%%{epoch}:%%{version}") |
---|
| 2 | %define pkgname Video-Frequencies |
---|
| 3 | |
---|
| 4 | Summary: A perl module for the Video4linux tuner frequencies. |
---|
| 5 | Name: perl-%{pkgname} |
---|
| 6 | Version: 0.03 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: distributable |
---|
| 10 | URL: http://ivtv.sf.net/ |
---|
| 11 | Source0: %{pkgname}-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildArch: noarch |
---|
| 14 | Requires: perl = %{perlversion} |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | Video::Frequencies provides a table of hashes that represent all the current |
---|
| 18 | frequency mappings that are used by Video4Linux programs. |
---|
| 19 | |
---|
| 20 | %prep |
---|
| 21 | %setup -q -n %{pkgname}-%{version} |
---|
| 22 | |
---|
| 23 | %build |
---|
| 24 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor |
---|
| 25 | make |
---|
| 26 | make test |
---|
| 27 | |
---|
| 28 | %install |
---|
| 29 | rm -rf $RPM_BUILD_ROOT |
---|
| 30 | make install |
---|
| 31 | |
---|
| 32 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 33 | |
---|
| 34 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ |
---|
| 35 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
| 36 | grep -v perllocal.pod | \ |
---|
| 37 | grep -v "\.packlist" > %{pkgname}-%{version}-filelist |
---|
| 38 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
| 39 | echo "ERROR: EMPTY FILE LIST" |
---|
| 40 | exit -1 |
---|
| 41 | fi |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -rf $RPM_BUILD_ROOT |
---|
| 45 | |
---|
| 46 | %files -f %{pkgname}-%{version}-filelist |
---|
| 47 | %defattr(-,root,root) |
---|
| 48 | %doc README MANIFEST |
---|
| 49 | |
---|
| 50 | %changelog |
---|
| 51 | * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.03-1 |
---|
| 52 | - apply new versioning policy |
---|
| 53 | - rebuild with perl v5.10.0 |
---|
| 54 | |
---|
| 55 | * Thu Nov 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl3 |
---|
| 56 | - add Require: perl = %%{perlversion} |
---|
| 57 | |
---|
| 58 | * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl2 |
---|
| 59 | - rebuild with new environment |
---|
| 60 | |
---|
| 61 | * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.03-0vl1 |
---|
| 62 | - initial build for Vine Linux |
---|
| 63 | |
---|