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