File smilutils.spec of Package smilutils

#
# spec file for package smilutils (Version 0.3.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           smilutils
BuildRequires:  SDL-devel gcc-c++ gdk-pixbuf-devel libdv-devel libxml2-devel
%define imlib_ver 2
%if %{imlib_ver} == 1
BuildRequires:  imlib-config imlib-devel
%else
BuildRequires:  imlib2-devel
%endif
Summary:        Tools for converting and editing digital video (DV) data
Version:        0.3.0
Release:        86
License:        GPL v2 or later
Group:          Productivity/Multimedia/Video/Editors and Convertors
AutoReqProv:    on
Source0:        smilutils-0.3.0.tar.bz2
Patch0:         abuild.diff
Patch1:         kino-1.1.0-playlistsupport.diff
Patch2:         smilutils-includes.diff
Url:            http://www.kinodv.org/article/view/70/1/7
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       image2raw ppm2raw ppmeffectv ppmfilter raw2dv raw2image raw2webcam raw2yuv rawmultiply rawplay smil2raw smil2wav smil2yuv tga2raw xwd2raw

%description
These tools can be used to convert DV to image streams, avi or mov
files and back, duplicate or drop frames and to convert kino projects
to DV, raw audio and raw yuv video

More details can be found using "man smilutils" and at:
http://users.pandora.be/acp/kino/smilutils.html



Authors:
--------
    Charles Yates <charles.yates@pandora.be>

%prep
%setup -q -n %{name}-%{version}
%patch -p1
%patch1 -p1
%patch2

%build
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS;
%if %{imlib_ver} == 1
env CXXFLAGS="$RPM_OPT_FLAGS" ./configure --with-imlib \
%else
env CXXFLAGS="$RPM_OPT_FLAGS -fpermissive" ./configure \
%endif
	--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
# Think about removing '.la' files, it said. Thought about it. Did it.
find $RPM_BUILD_ROOT/%{_libdir} -name \*.la | xargs rm -fv

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README 
%_bindir/*
%_libdir/kino
%_mandir/man1/*

%changelog
* Fri Feb 29 2008 ro@suse.de
- fix build with current gcc
* Sun Sep 02 2007 ro@suse.de
- fix libdir patch for kinoextension
* Thu Aug 16 2007 olh@suse.de
- do not fail if no .la files exist
* Mon Aug 13 2007 olh@suse.de
- remove libdv, libtiff from Requires
  cleanup BuildRequires
  build parallel and run autoreconf
* Fri Jul 13 2007 bk@suse.de
- updated playlist code in libkino to support the newer playlists
* Tue Jan 23 2007 jw@suse.de
- ops, fixed Buildreq.
- avoiding /usr/lib/debug in main package.
* Mon Jan 22 2007 jw@suse.de
- initial checkin.
  Was in state NEW for ages, now I need it.
openSUSE Build Service is sponsored by