|
|
my bad,
found a bug.
#######################
Summary: povray - ray tracing program
Name: povray
Version: 3.50b
Release: 1
License: POV-Ray License (POVLEGAL.DOC)
Group: Development/Tools
Source: povuni_s.tgz
Url: http://www.povray.org/
Packager: Dan Sturtevant <dst### [at] plogiccom> Paralogic, LLC
BuildRoot: %{_tmppath}/%{name}-root
#This is an unofficial version compiled by:
#You must complete the following DISTRIBUTION_MESSAGE macro
%define package_builder __UNDEFINED__
#The POV-Ray Team(tm) is not responsible for supporting this version.
%description
The Persistence of Vision Raytracer is a high-quality, totally free tool for
creating stunning three-dimensional graphics. It is available in official
versions for Windows, Mac OS/Mac OS X and i86 Linux. The source code is
available for those wanting to do their own ports.
%prep
%setup -q -n %{name}-%{version}
if [ %{package_builder} == __UNDEFINED__ ] ; then
echo 'Spec file must be altered to identify the Package Builder.'
exit 0
fi
%{__perl} -pi -e 's|#error.*\n||m' ./src/optout.h
%{__perl} -pi -e "s| FILL IN NAME
HERE.........................|%{package_builder}|" ./src/optout.h
%build
rm -rf %{buildroot}
%configure
make
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%{__perl} -pi -e
"s|Library_Path=/usr/local/lib/povray-3.5|Library_Path=%{_prefix}/share/povray-3.5|"
%{buildroot}/%{_prefix}/share/%{name}-3.5/%{name}.ini
mkdir -p %{buildroot}/etc/
cp %{buildroot}/%{_prefix}/share/%{name}-3.5/%{name}.ini
%{buildroot}/etc/%{name}.ini
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_prefix}/share/doc/%{name}-%{version}/
%{_mandir}/man1/povray.1.gz
%{_prefix}/share/povray-3.5/
/etc/%{name}.ini
%changelog
* Thu Oct 10 2002 Dan Sturtevant <dst### [at] plogiccom>
- Initial creation of povray spec file
Post a reply to this message
|
|