|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 10 Oct 2002 15:22:20 -0400, sturtx wrote:
> 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.
Permission to use a modified form of yours? I'm planning on having 3.50c
out this weekend.
-Mark Gordon
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mark Gordon wrote:
>On Thu, 10 Oct 2002 15:22:20 -0400, sturtx wrote:
>
>> 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.
>
>Permission to use a modified form of yours? I'm planning on having 3.50c
>out this weekend.
>
>-Mark Gordon
>
Sure, use mine as a template for anything you want to do.
Dan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 22 Oct 2002 15:33:15 -0400, sturtx wrote:
> Sure, use mine as a template for anything you want to do. Dan
I've built a Pentium-III optimized version as an RPM using GCC 3.2 on Red
Hat 8.0.
See: http://www.integrated-dynamics.com/gar for infomration.
Feedback and suggestions welcome, as well.
Gordon.
--
"Far and away the best prize that life has to offer
is the chance to work hard at work worth doing."
-- Theodore Roosevelt
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |