[ATrpms-devel] yafray

Axel Thimm Axel.Thimm at ATrpms.net
Tue Feb 13 20:11:47 CET 2007


Hi,

On Tue, Feb 13, 2007 at 11:42:38AM +0100, Axel Thimm wrote:
> On Mon, Feb 05, 2007 at 08:58:32AM -0200, Paulo Cavalcanti wrote:
> > http://people.atrpms.net/~pcavalcanti/rpms/yafray-0.0.9-1.fc6.lcg.i386.rpm
> > http://people.atrpms.net/~pcavalcanti/srpms/yafray-0.0.9-1.fc6.lcg.src.rpm
> > 
> > Maybe you can add it to ATrpms. I think it will be useful.
> 
> Thanks!

I had to mdify it to BR zlib-devel and to build on x86_64, see below:
@@ -2,5 +2,5 @@
 License:        LGPL
-Summary:        Yet Another Free RAYtracer.
+Summary:        Yet Another Free RAYtracer
 Version:        0.0.9
-Release:        1%{?dist}
+Release:        2%{?dist}
 URL:            http://www.yafray.org/
@@ -10,2 +10,3 @@
 BuildRequires:  OpenEXR-devel gcc-c++ libjpeg-devel scons
+BuildRequires:  zlib-devel
 Requires:      OpenEXR >= 1.2
@@ -16,3 +17,5 @@
 %prep
-%setup -n %{name}
+%setup -q -n %{name}
+grep -rl /usr/local . | xargs sed -i -e's,/usr/local,%{_prefix},g'
+grep -rl lib/ . | xargs sed -i -e's,lib/,%{_lib}/,g'
 
@@ -24,2 +27,7 @@
 scons prefix=%{buildroot}%{_prefix} install
+if [ %{_libdir} != %{_prefix}/lib ]; then
+  # just in case %%{_libdir} is really weird
+  mkdir -p %{buildroot}%{_libdir}
+  mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}/
+fi
 find %{buildroot} -name .sconsign -exec rm {} \;
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20070213/f80654ad/attachment.bin 


More information about the atrpms-devel mailing list