To be most convenient, avifile.spec should be distributed in avifile
tarballs, not just avifile.spec.in. I'd personally just replace
avifile.spec.in with avifile.spec in CVS entirely, so people doing CVS
updates just have to change the "date" line, move the directory to
match, and tar up the result to have something they can build with
rpm.
There's other outdated characteristics of avifile.spec (missing files,
a dependancy on sdl in lower case) that I've changed locally, and I've
made a few "editorial decisions" (using a 0.6.0.date version number
and a tar.bz2 source tarball name) additionally. I'm attaching my
version, in case anyone else wants to use it. Building an RPM from
CVS now requires doing a CVS update, changing the directory name,
changing the date line at the top of avifile.spec, doing a "tar tvjf",
then doing an "rpm -tb".
I'm installing a random CVS grab on March 5th; is there any chance of
a new official snapshot being released in the next day or two? I'm
going to be on vacation starting Friday, and I'd like to be sure that
when the Babylon 5 reruns start over next Monday they'll be recorded
correctly. I'd hate to get caught by some bug because I accidentally
took the CVS snapshot on a bad day.
Thanks for adding avirec to the binaries, by the way.
---
Roy Stogner
%define ver 0.6.0.20020305
%define rel 1
%define prefix /usr
Summary: AVI file support library
Name: avifile
Version: %ver
Release: %rel
Copyright: GPL
Group: Development/Libraries
Source0: avifile-%{PACKAGE_VERSION}.tar.bz2
URL: http://divx.euro.ru/
BuildRoot: /tmp/avifile-%{PACKAGE_VERSION}-root
Packager: Eugene Kuznetsov <[EMAIL PROTECTED]>
Docdir: %{prefix}/doc
Requires: SDL >= 1.1.3
%description
Avifile is a library that allows programs to read and write compressed AVI files
(Indeo? Video,
DivX :-), etc.) under x86 Linux. (De)compression is performed with Win32 DLLs.
%package qt
Summary: Qt-based AVI utilities
Group: Applications/Multimedia
%description qt
Three small Qt-based utilities for work with AVI files: AVI player, video capture
utility
and AVI recompressor.
%prep
%setup
%build
# Needed for snapshot releases.
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --enable-release --enable-quiet
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-release --enable-quiet
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README COPYING doc/*
%{prefix}/bin/avibench
%{prefix}/bin/avicat
%{prefix}/bin/avifile-config
%{prefix}/bin/avimake
%{prefix}/bin/avitype
%{prefix}/bin/kv4lsetup
%{prefix}/bin/mmxnow-config
%{prefix}/lib/avifile*/*
%{prefix}/lib/libavi*
%{prefix}/lib/libmmx*
%{prefix}/include/avifile/*
%{prefix}/include/mmxnow.h
%files qt
%{prefix}/bin/avicap
%{prefix}/bin/aviplay
%{prefix}/bin/avirec
%{prefix}/bin/avirecompress
%{prefix}/lib/libavqt*
%{prefix}/share/avifile*/*
%changelog
* Tue Mar 05 2002 Roy Stogner <[EMAIL PROTECTED]>
- Added avirec, resorted avifile vs. avifile-qt files
* Sat Jan 27 2001 Eugene Kuznetsov <[EMAIL PROTECTED]>
- Updated to conform to new directory layout
* Tue Oct 02 2000 Eugene Kuznetsov <[EMAIL PROTECTED]>
- Merged in contributed .spec
- First public release
* Wed Sep 20 2000 Eugene Kuznetsov <[EMAIL PROTECTED]>
- First try at an RPM