POV-Ray : Newsgroups : povray.unix : RPM spec file for povray 3.50b : RPM spec file for povray 3.50b Server Time
6 Oct 2024 13:56:11 EDT (-0400)
  RPM spec file for povray 3.50b  
From: sturtx
Date: 10 Oct 2002 15:25:04
Message: <web.3da5d2d6ca855a3560052c640@news.povray.org>
I have created an rpm spec file for creating a povray rpm.
It requires no patches to the povray source and has been tested
on my base RedHat 7.3 box.

I think that it would be a good idea to include a povray.spec
file in the source tgz itself.  I would appreciate comments
about any shortcomings so that I can make it as generic and
useful as possible.

(Some lines in the post are cut short, so fix them before you try
running: rpm -ba povray.spec)

Thanks,
Dan Sturtevant
Paralogic

################################

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


#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 1
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
cp %{buildroot}/%{_prefix}/share/%{name}-3.5/%{name}.ini  %{buildroot}/etc

%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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.