1Name:         xawtv
2Group:        Applications/Multimedia
3Autoreqprov:  on
4Version:      3.107
5Release:      0
6License:      GPL
7Summary:      v4l applications
8Source:       http://bytesex.org/xawtv/%{name}_%{version}.tar.gz
9Buildroot:    /var/tmp/root.%{name}-%{version}
10
11%description
12fixme
13
14%prep
15%setup -q
16
17%build
18mkdir build
19cd build
20CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr/X11R6
21make
22
23%install
24test "%{buildroot}" != "" && rm -rf "%{buildroot}"
25(cd build; make DESTDIR="%{buildroot}" SUID_ROOT="" install)
26gzip -v %{buildroot}/usr/X11R6/man/man*/*.[158]
27gzip -v %{buildroot}/usr/X11R6/man/*/man*/*.[158]
28find %{buildroot} -type f -print	\
29	| sed -e 's|%{buildroot}||'	\
30	| grep -v -e %{docdir}		\
31	| grep -v -e bin/v4l-conf	\
32	> filelist
33
34%files -f filelist
35%defattr(-,root,root)
36%doc COPYING Changes TODO README README.* contrib/frequencies*
37%attr(4711,root,root) /usr/X11R6/bin/v4l-conf
38
39%clean
40test "%{buildroot}" != "" && rm -rf "%{buildroot}"
41