File pd-zexy.spec of Package pd-zexy

# prefix for naming the package (choose pd- or %{nil})
%define pkgprefix pd-

# version of pd for which it was built
%define pdver   0.40

Summary:      Pd externals
Name:         %{pkgprefix}zexy
Version:      2.1
Release:      1
License:      GPL
Source0:      zexy-unix-%{version}.tgz
Patch0:	      pd-zexy-destdir.patch
Group:        Applications/Multimedia
URL:          ftp://ftp.iem.at/pd/Externals/ZEXY
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Packager:     Oliver Bengs <appleonkel@flashgrafik.de>

Requires:      pd >= %{pdver}
BuildRequires: pd >= %{pdver}

Obsoletes:    zexy <= 2.1
Conflicts:    zexy <= 2.1

%description
The zexy external is a collection of externals for miller.s.puckette's
realtime-computermusic-environment called "puredata" (or abbreviated
"pd"). 
%if %{?cvsdate:1}%{!?cvsdate:0}
This rpm is based on the pd-externals CVS snapshot downloaded on %{cvsdate}. 
Handle with care. 
%endif

%prep
%setup -q -n zexy-%{version} 
%patch0 

%build
cd src
autoconf
%configure
make PDLIBDIR=%{_lib}/pd

%install
cd src
make DESTDIR=%{buildroot} PDLIBDIR=%{_lib}/pd install 

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt
%{_libdir}/pd/extra/zexy.pd_linux
%{_libdir}/pd/extra/*.pd
%{_libdir}/pd/extra/help-zexy/*.pd

%changelog
* Wed Oct 31 2007 Oliver Bengs <appleonkel@flashgrafik.de> 
- Initial build for openSUSE
openSUSE Build Service is sponsored by