Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 8661c81f8ad9782e7b6782f8d707c540 > files > 2

pixie-2.2.6-2mdv2010.1.src.rpm

%define	oname Pixie
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	3D renderer Renderman compliant
Name:		pixie
Version:	2.2.6
Release:	%mkrel 2
License:	LGPLv2+
Group:		Graphics
Url:		http://www.renderpixie.com/
Source0:	http://downloads.sourceforge.net/pixie/%{oname}-src-%{version}.tgz
BuildRequires:	fltk-devel
BuildRequires:	OpenEXR-devel
BuildRequires:	libtiff-devel
BuildRequires:	mesa-common-devel
BuildRequires:	flex
BuildRequires:	bison
Requires:	%{libname} = %{version}-%{release}
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Pixie is a RenderMan like photorealistic renderer.
It is being developed in the hope that it will be
useful for graphics research and for people who
can not afford a commercial renderer.

%package -n %{libname}
Summary:	Shared libraries for %{oname}
Group:		System/Libraries

%description -n %{libname}
Shared libraries for %{oname}, a RenderMan 
compiliant renderer.

%package -n %{develname}
Summary:	Development files for %{oname}
Group:		Development/C++
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{mklibname %{name} 0 -d} < 2.2.4

%description -n %{develname}
Development files and headers for %{oname}.

%prep
%setup -qn %{oname}

# do not link against static libraries
sed -i.r_static -e 's|--ldstaticflags|--ldflags|' configure

%build
%define Werror_cflags %nil
%configure2_5x \
	--enable-openexr-threads \
	--disable-static-fltk \
	--disable-selfcontained \
	--with-shaderdir=%{_datadir}/Pixie/shaders \
	--with-modeldir=%{_datadir}/Pixie/models \
	--with-texturesdir=%{_datadir}/Pixie/textures \
	--with-displaysdir=%{_libdir}/Pixie/displays \
	--with-modulesdir=%{_libdir}/Pixie/modules

# do not hardcode rpath
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall_std docdir=%{_docdir}/%{oname}

find %{buildroot} -name '*.la' -exec rm -f {} ';'
mkdir -p %{buildroot}%{_datadir}/Pixie/textures
cp -f textures/*.tif %{buildroot}%{_datadir}/Pixie/textures

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc %{_datadir}/doc/%{oname}/*
%dir %{_libdir}/%{oname}
%dir %{_libdir}/%{oname}/displays
%dir %{_libdir}/%{oname}/modules
%dir %{_datadir}/%{oname}/shaders
%dir %{_datadir}/%{oname}/textures
%{_bindir}/*
%{_libdir}/%{oname}/displays/*.so
%{_libdir}/%{oname}/modules/*.so
%{_datadir}/%{oname}/shaders/*.sdr
%{_datadir}/%{oname}/shaders/*.sl
%{_datadir}/Pixie/textures/*.tif
%{_mandir}/man1/*.1.*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%{_includedir}/*h
%{_libdir}/*.so


%changelog
* Mon Jan 18 2010 Jérôme Brenier <incubusss@mandriva.org> 2.2.6-2mdv2010.1
+ Revision: 493157
- rebuild for new fltk

* Mon Jun 15 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.6-1mdv2010.0
+ Revision: 386170
- update to new version 2.2.6

* Tue Jan 27 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.5-1mdv2009.1
+ Revision: 334695
- update to new version 2.2.5
- use Werror_cflags %%nil because providing a patch would took some time

* Sun Dec 14 2008 Funda Wang <fwang@mandriva.org> 2.2.4-2mdv2009.1
+ Revision: 314172
- fix BR
- rebuild for new fltk

* Mon Aug 11 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.4-1mdv2009.0
+ Revision: 270968
- update to new version 2.2.4
- drop patch0, fixed upstream
- fix descriptions and summaries
- add requires for subpackages

* Fri Aug 01 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.2.3-4mdv2009.0
+ Revision: 259080
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.2.3-3mdv2009.0
+ Revision: 246988
- rebuild
- fix no-buildroot-tag

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Jan 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.3-1mdv2008.1
+ Revision: 159953
- fix build on x86_64 arch
- do not link against static fltk libraries, use shared one like it supposed to be
- do not hardcode rpath
- remove *.la files
- new version
- new license policy

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Aug 11 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.2-1mdv2008.0
+ Revision: 62022
- update to the latest upstream release
- disable static linking to fltk
- man pages are now lzma'd
- new version
- new devel library policy
- adjust buildrequires
- fix doc path
- some cleans

* Fri Apr 20 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.1.1-1mdv2008.0
+ Revision: 15941
- new version


* Thu Feb 22 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.0.2-1mdv2007.0
+ Revision: 124395
- make it work
- Import pixie