File pd-ggee.spec of Package pd-ggee
#norootforbuild
Summary: GGEE is a library of pd externals written by Guenter Geiger.
Name: pd-ggee
Version: 0.24
Release: 1
License: Artistic
Group: Applications/Multimedia
Source: ggee-%{version}.tgz
Patch0: %{name}-serialctl.patch
Patch1: %{name}-fofsynth.fix
Patch2: %{name}-fpic.diff
URL: http://gige.xdv.org/ggext.html
BuildRoot: %{_tmppath}/ggee-%{version}-root
Requires: pd
Obsoletes: pd-ggee
BuildRequires: pd gcc-c++
%description
GGEE is a library of pd externals written by Guenter Geiger.
http://gige.xdv.org/ggext.html
%prep
%setup -q -n ggee
%patch0 -p1
%patch1
#%ifarch x86_64 amd64 ia32e
#%patch2 -p1
#%endif
%{?suse_update_config:%{suse_update_config -f}}
%suse_update_libdir makefile.in
%build
%__perl -p -i -e "s|\/lib\/|\/%{_lib}\/|g" makefile.in
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%configure
%__make
%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_libdir}/pd/externs
%{__mkdir} -p %{buildroot}%{_libdir}/pd/extra
%{__mkdir} -p %{buildroot}%{_libdir}/pd/doc/5.reference/ggee
%{__make} INSTALL_PREFIX=%{buildroot}%{_prefix} install
# conflict with pd >= 0.35.0, remove hslider doc
%{__rm} -f %{buildroot}%{_libdir}/pd/doc/5.reference/hslider.pd
# move stuff from pd/externs to pd/extra
%{__mv} %{buildroot}%{_libdir}/pd/externs/* %{buildroot}%{_libdir}/pd/extra
# move help to ggee directory
(cd %{buildroot}%{_libdir}/pd/doc/5.reference/;
for f in *.pd ; do %{__mv} $f help-$f ; done;
cd ggee; %{__ln_s} ../*.pd .)
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%dir %{_libdir}/pd/extra
%{_libdir}/pd/extra/*
%{_libdir}/pd/doc/5.reference/*
%changelog
* Tue Sep 26 2006 Oliver Bengs <appleonkel@flashgrafik.de>
- initial build