POV-Ray : Newsgroups : povray.unix : RPM spec file for povray 3.50b Server Time
8 Jul 2024 19:46:01 EDT (-0400)
  RPM spec file for povray 3.50b (Message 1 to 5 of 5)  
From: sturtx
Subject: RPM spec file for povray 3.50b
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

From: sturtx
Subject: Re: RPM spec file for povray 3.50b
Date: 10 Oct 2002 18:50:02
Message: <web.3da60308de3d93a260052c640@news.povray.org>
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

From: Mark Gordon
Subject: Re: RPM spec file for povray 3.50b
Date: 19 Oct 2002 10:03:06
Message: <pan.2002.10.19.14.09.56.994421@povray.org>
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

From: sturtx
Subject: Re: RPM spec file for povray 3.50b
Date: 22 Oct 2002 15:35:17
Message: <web.3db5a7fbde3d93a260052c640@news.povray.org>
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

From: Gordon Runkle
Subject: Re: RPM spec file for povray 3.50b
Date: 22 Oct 2002 22:25:50
Message: <pan.2002.10.23.02.26.23.706785@integrated-dynamics.com>
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

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