Hi,

you can use my attached spec file. It is working for the current CVS
version.
In the CVS directory, I am doing something like:

tar czf /usr/src/packages/SOURCES/avifile-0.6.tar.gz avifile-0.6
rpm -ba /usr/src/packages/SPECS/avifile.spec 

rgds, Rainer

"Ren� E. Beszon" wrote:
> 
> Hi,
> 
> I have problems creating RPMs from the CVS-sources. When I do
> 
> rpm -ta avifile-0.6.31.tar.gz
> 
> I get following error :
> 
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd avifile-0.6.3
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,g-w,o-w .
> +
> : command not found494:
> Bad exit status from /var/tmp/rpm-tmp.63494 (%prep)
> 
> Any solutions, comments and hints are welcome.
> 
> Ren� E. Beszon
> 
> _______________________________________________
> Avifile mailing list
> [EMAIL PROTECTED]
> http://prak.org/mailman/listinfo/avifile
%define ver      0.6
%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.gz
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}/lib/lib*
%{prefix}/include/avifile/*
%{prefix}/bin/avifile-config
%{prefix}/lib/avifile%{ver}/*

%files qt
%{prefix}/bin/avibench
%{prefix}/bin/avicap
%{prefix}/bin/avicat
%{prefix}/bin/avimake
%{prefix}/bin/aviplay
%{prefix}/bin/avirecompress
%{prefix}/bin/avitype
%{prefix}/bin/kv4lsetup
%{prefix}/share/avifile%{ver}/*

%changelog
* 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

Reply via email to