]> git.pld-linux.org Git - packages/povray.git/blame - povray.spec
- up to 3.7.1-beta.5
[packages/povray.git] / povray.spec
CommitLineData
8f6042bf 1#
bc24fd67 2# Conditional build:
9efdfbd6 3%bcond_without x # - without X11 subpackage
be0816cf 4%bcond_with pvm # - with PVM support
9efdfbd6 5%bcond_with svga # - with svgalib support (doesn't work on many platforms)
8f6042bf 6#
4d0bdcea 7%define beta beta.5
520c1407 8Summary: Persistence of Vision Ray Tracer
5c6661ca 9Summary(pl.UTF-8): Persistence of Vision Ray Tracer
520c1407 10Name: povray
4d0bdcea
JR
11Version: 3.7.1
12Release: 0.%{beta}.1
e107cc8d 13Epoch: 1
4d0bdcea 14License: AGPLv3+
520c1407 15Group: Applications/Graphics
4d0bdcea
JR
16Source0: https://github.com/POV-Ray/povray/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.tar.gz
17# Source0-md5: eeff460742acdaa84ebbc7e7e5135981
520c1407 18URL: http://www.povray.org/
ec73f680
JB
19BuildRequires: autoconf
20BuildRequires: automake
b7a98b2e 21BuildRequires: libjpeg-devel
f5608087 22BuildRequires: libpng-devel >= 1.4.0
b7a98b2e 23BuildRequires: libstdc++-devel
24BuildRequires: libtiff-devel
4094ca7d
JK
25%{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
26%{?with_svga:BuildRequires: svgalib-devel}
73c51aff 27%{?with_x:BuildRequires: xorg-lib-libX11-devel}
ec73f680 28BuildRequires: zlib-devel
9416b15a 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4d562464 30
d436f42a 31%if %{with pvm}
697b1b4f 32%define _pvmarch %(/usr/bin/pvmgetarch)
09c1e7ed 33%define _pvmroot /usr/%{_lib}/pvm3
d436f42a 34%endif
a37cc0c6 35
4d562464 36%description
4d562464 37The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
2702972f 38photo-realistic images using a rendering technique called ray-tracing.
39It reads in a text file containing information describing the objects
40and lighting in a scene and generates an image of that scene from the
41view point of a camera also described in the text file. Ray-tracing is
42not a fast process by any means, but it produces very high quality
43images with realistic reflections, shading, perspective and other
44effects.
4d562464 45
2ea14a87
JR
46%description -l pl.UTF-8
47Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
48fotorealistyczne obrazy za pomocą techniki renderingu zwanej
49ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
50obiekty oraz światło przedstawianego świata, a następnie generuje
51rysunek z punktu widzenia kamery, która także jest definiowana w w/w
52pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
53ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
54efektami, tj. odbicia światła, cienie, perspektywa i inne.
4d562464 55
fceafdc6 56%package X11
41b49d87 57Summary: X Window povray executable
5c6661ca 58Summary(pl.UTF-8): povray pod X Window
fceafdc6 59Group: Applications/Graphics
38f80171 60Requires: %{name} = %{epoch}:%{version}-%{release}
41b49d87 61
62%description X11
63The Persistence of Vision(tm) Ray-Tracer X Window executable.
caec2118 64
2ea14a87 65%description X11 -l pl.UTF-8
8ecf04d1 66Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
67Window.
a37cc0c6 68
a37cc0c6 69%package pvm
3af417fe 70Summary: PVM/Unix povray executable
71Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
a37cc0c6 72Group: Applications/Graphics
38f80171 73Requires: %{name} = %{epoch}:%{version}-%{release}
a37cc0c6
AF
74
75%description pvm
3af417fe 76The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
a37cc0c6 77
2ea14a87 78%description pvm -l pl.UTF-8
8ecf04d1 79Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
3af417fe 80PVM/Unix.
caec2118 81
a37cc0c6
AF
82%package pvm-X11
83Summary: PVM/xwin povray executable
5c6661ca 84Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
a37cc0c6 85Group: Applications/Graphics
38f80171 86Requires: %{name} = %{epoch}:%{version}-%{release}
a37cc0c6
AF
87
88%description pvm-X11
89The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
caec2118 90
2ea14a87 91%description pvm-X11 -l pl.UTF-8
8ecf04d1 92Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
93PVM/xwin.
fceafdc6 94
4d562464 95%prep
4d0bdcea 96%setup -q -n %{name}-%{version}-%{beta}
4d562464 97
98%build
8b2043c3
JR
99cd unix
100./prebuild.sh
101cd ..
102
ea227ab9 103COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
09c1e7ed 104%if %{with x} && %{with pvm}
697b1b4f 105%configure \
09c1e7ed 106 --libdir=%{_datadir} \
697b1b4f
AF
107 --enable-pvm \
108 --with-pvm-arch=%{_pvmarch} \
e4be19f9 109 --with-pvm-libs=%{_libdir}
697b1b4f 110%{__make}
21729b33 111install unix/povray x-pvmpov
697b1b4f
AF
112%endif
113
09c1e7ed 114%if %{with pvm}
697b1b4f
AF
115%{__make} clean
116
117%configure \
09c1e7ed 118 --libdir=%{_datadir} \
697b1b4f
AF
119 --enable-pvm \
120 --with-pvm-arch=%{_pvmarch} \
09c1e7ed 121 --with-pvm-libs=%{_libdir} \
697b1b4f
AF
122 --without-x
123%{__make}
21729b33 124install unix/povray pvmpov
697b1b4f
AF
125%endif
126
09c1e7ed 127%if %{with x}
b7a98b2e 128%configure \
68a9cdbb 129 --libdir=%{_datadir}
b7a98b2e 130%{__make}
21729b33 131install unix/povray x-povray
b7a98b2e 132%{__make} clean
2c916a3a 133%endif
b7a98b2e 134
135%configure \
09c1e7ed 136 --libdir=%{_datadir} \
b7a98b2e 137 --without-x
138%{__make}
4d562464 139
140%install
61158218 141rm -rf $RPM_BUILD_ROOT
e4be19f9 142install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
ea227ab9
AM
143%if %{with pvm}
144install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
145%endif
61158218 146
e4be19f9
JR
147%{__make} install \
148 INSTALL="install -c -D" \
149 mkdir_p="mkdir -p" \
b7a98b2e 150 DESTDIR=$RPM_BUILD_ROOT
4d562464 151
09c1e7ed 152%if %{with x}
a5a450ff 153install x-povray $RPM_BUILD_ROOT%{_bindir}
2c916a3a 154%endif
155
09c1e7ed 156%if %{with x} && %{with pvm}
a5a450ff 157install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
09c1e7ed 158ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
697b1b4f
AF
159%endif
160
09c1e7ed 161%if %{with pvm}
a5a450ff 162install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
09c1e7ed 163ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
697b1b4f
AF
164%endif
165
21729b33 166##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
167##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
fceafdc6 168
4d562464 169%clean
170rm -rf $RPM_BUILD_ROOT
171
172%files
49c88a8f 173%defattr(644,root,root,755)
be0816cf 174%doc AUTHORS ChangeLog NEWS README* changes.txt
fceafdc6 175%attr(755,root,root) %{_bindir}/povray
09c1e7ed 176%{_datadir}/povray*
21729b33 177%{_docdir}/povray*
b7a98b2e 178%{_mandir}/man?/*
e11b17d4 179%dir %{_sysconfdir}/povray
be0816cf
AG
180%dir %{_sysconfdir}/povray/3.7
181%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
21729b33 182## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
fceafdc6 183
09c1e7ed 184%if %{with x}
96df36ec 185%files X11
2702972f 186%defattr(644,root,root,755)
a5a450ff 187%attr(755,root,root) %{_bindir}/x-povray
a37cc0c6
AF
188%endif
189
8f6042bf 190%if %{with pvm}
697b1b4f
AF
191%files pvm
192%defattr(644,root,root,755)
193%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
a5a450ff 194%attr(755,root,root) %{_bindir}/pvmpov
697b1b4f
AF
195%endif
196
09c1e7ed 197%if %{with pvm} && %{with x}
697b1b4f
AF
198%files pvm-X11
199%defattr(644,root,root,755)
200%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
a5a450ff 201%attr(755,root,root) %{_bindir}/x-pvmpov
697b1b4f 202%endif
This page took 0.081729 seconds and 4 git commands to generate.