[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/yafray/devel yafray-0.0.9-soname.patch, NONE, 1.1 yafray.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: kwizart

Update of /cvs/extras/rpms/yafray/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2516/devel

Modified Files:
	.cvsignore sources 
Added Files:
	yafray-0.0.9-soname.patch yafray.spec 
Log Message:
Initial release


yafray-0.0.9-soname.patch:

--- NEW FILE yafray-0.0.9-soname.patch ---
--- yafray/src/interface/SConscript.soname	2006-10-14 19:56:16.000000000 +0200
+++ yafray/src/interface/SConscript	2006-10-14 19:56:54.000000000 +0200
@@ -18,7 +18,7 @@
 	interface=interface_env.SharedLibrary (target='yafrayplugin', source=source_files, 
 		SHLIBSUFFIX='.so')
 else:
-	interface=interface_env.SharedLibrary (target='yafrayplugin', source=source_files) 
+	interface=interface_env.SharedLibrary (target='yafrayplugin', source=source_files, SHLINKFLAGS = interface_env['SHLINKFLAGS'] + ' -Wl,-soname=libyafrayplugin.so.0') 
 
 interface_env.Depends(interface,'../yafraycore')
 interface_env.Install(config.libpath,interface)
--- yafray/src/yafraycore/SConscript.soname	2006-10-14 19:57:20.000000000 +0200
+++ yafray/src/yafraycore/SConscript	2006-10-14 19:57:51.000000000 +0200
@@ -47,7 +47,7 @@
 core_env.Append (LIBPATH = config.exr.libpath + config.pthread.libpath)
 
 core_env.Install(config.libpath,
-core_env.SharedLibrary (target='yafraycore', source=source_files, 
+core_env.SharedLibrary (target='yafraycore', source=source_files, SHLINKFLAGS = core_env['SHLINKFLAGS'] + ' -Wl,-soname=libyafraycore.so.0',
 	LIBS=config.pthread.libs + config.exr.libs))
 
 core_env.Alias('install_core',config.libpath)


--- NEW FILE yafray.spec ---
Name:           yafray
Version:        0.0.9
Release:        2%{?dist}
Summary:        Yet Another Free RAYtracer

Group:          Applications/Multimedia
License:        LGPL
URL:            http://www.yafray.org
Source:		http://www.yafray.org/sec/2/downloads/yafray-%{version}.tar.gz
Patch0:		yafray-0.0.9-soname.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	zlib-devel
BuildRequires:	libjpeg-devel
BuildRequires:	OpenEXR-devel
BuildRequires:	scons

%description
Yafray is yet another free raytracer, still in development. Some
features like caustics, filters, depth of field, etc. are implemented.


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q -n %{name}
%patch0 -p1 -b .soname
#sed -i "s|/usr/local|%{_prefix}|" linux-settings.py
sed -i "s|flags='|flags='$RPM_OPT_FLAGS |" linux-settings.py
sed -i "s|/lib|/%{_lib}|" linux-settings.py
chmod 0644 ChangeLog AUTHORS LICENSE COPYING NEWS README
find src -name '*.h' -exec chmod 0644 {} ';'
find src -name '*.cc' -exec chmod 0644 {} ';'


%build
CXXFLAGS="$RPM_OPT_FLAGS" scons prefix=%{_prefix}


%install
rm -rf $RPM_BUILD_ROOT
scons prefix=$RPM_BUILD_ROOT%{_prefix} install
rm -f $RPM_BUILD_ROOT%{_bindir}/.sconsign
rm -f $RPM_BUILD_ROOT%{_libdir}/.sconsign
rm -f $RPM_BUILD_ROOT%{_libdir}/yafray/.sconsign
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
install -pm 0644 $RPM_BUILD_ROOT%{_prefix}/etc/gram.yafray $RPM_BUILD_ROOT%{_sysconfdir}
rm -rf $RPM_BUILD_ROOT%{_prefix}/etc
for i in libyafraycore libyafrayplugin ;do
  mv $RPM_BUILD_ROOT%{_libdir}/$i.so $RPM_BUILD_ROOT%{_libdir}/$i.so.%{version}
  ln -fs $i.so.%{version} $RPM_BUILD_ROOT%{_libdir}/$i.so.0
  ln -fs $i.so.%{version} $RPM_BUILD_ROOT%{_libdir}/$i.so
done


%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc ChangeLog AUTHORS LICENSE README
%{_bindir}/yafray
%{_libdir}/lib*.so.*
%{_libdir}/yafray/
%config(noreplace) %{_sysconfdir}/gram.yafray

%files devel
%defattr(-,root,root,-)
%doc ChangeLog AUTHORS LICENSE README
%{_libdir}/lib*.so


%changelog
* Sun May 20 2007 kwizart < kwizart at gmail.com > - 0.0.9-2
- Fix /lib is /lib64 on x86_64 and ppc64

* Sat Oct 14 2006 Gerard Milmeister <gemi bluewin ch> - 0.0.9-1
- new version 0.0.9

* Sun Jun 18 2006 Gerard Milmeister <gemi bluewin ch> - 0.0.8-2
- BR: OpenEXR-devel
- use $RPM_OPT_FLAGS

* Fri Jul  8 2005 Gerard Milmeister <gemi bluewin ch> - 0.0.8-1
- New Version 0.0.8

* Tue Mar 23 2004 Gerard Milmeister <gemi bluewin ch> - 0:0.0.6-0.fdr.1
- First Fedora release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/yafray/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 May 2007 19:16:18 -0000	1.1
+++ .cvsignore	22 May 2007 21:16:27 -0000	1.2
@@ -0,0 +1 @@
+yafray-0.0.9.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/yafray/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 May 2007 19:16:18 -0000	1.1
+++ sources	22 May 2007 21:16:27 -0000	1.2
@@ -0,0 +1 @@
+7365122e0ca6f439988f51e8b4db935c  yafray-0.0.9.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]