Sisyphus
: 23 2017 | : 17947 | : 10226813
en ru br
ALT
S:3.7.0.4-alt1
5.1: 3.6-alt3
4.1: 3.6-alt2
4.0: 3.6-alt2
3.0: 3.6-alt1.1
www.altlinux.org/Changes

::
: povray

             Sources      Gear   Bugs and FR  Repocop 

%define mjversion 3.7
Name: povray
Version: %mjversion.0.4
Release: alt1

Summary: Persistence of Vision Ray Tracer (POV-Ray)
Summary(ru_RU.UTF-8): Трассировщик лучей POV-Ray
# Licensed like freeware. See POVLEGAL.DOC.
License: povray
Group: Graphics
Url: http://www.povray.org
# git https://github.com/POV-Ray/povray
Source: %name-%version.tar
Patch0: %name-%version-alt.patch

Requires: %name-common

# Automatically added by buildreq on Wed Apr 03 2013

# optimized out: gnu-config libICE-devel libSM-devel libstdc++-devel libX11-devel xorg-xproto-devel zlib-devel
BuildRequires: gcc-c++ imake libjpeg-devel libpng12-devel libtiff-devel libXpm-devel libXt-devel
BuildRequires: boost-devel boost-flyweight-devel

%description
POV-Ray is a free, full-featured ray tracer, written and
maintained  by  a  team of volunteers on the Internet.
POV-Ray has the right balance of power and versatility
to satisfy extremely experienced and competent users, while
at the same time not being so intimidating as to completely
scare new users off.

%description -l ru_RU.UTF-8
POV-Ray - это свободный, полнофункциональный трассировщик
лучей, написанный и поддерживаемый командой добровольцев
через Интернет. POV-Ray сохраняет баланс между мощностью
и гибкостью, отвечая желаниям самых опытных пользователей,
в то же время, не отпугивая новичков.

#---------------------------------------------------------

%package common
Group: Graphics
Summary: POV-Ray common files
Summary(ru_RU.UTF-8): Общие файлы для POV-Ray

%description common
Common files for POV-Ray: docs, textures, color maps,
scenes, scripts etc.

%description common -l ru_RU.UTF-8
Общие файлы для разных версий POV-Ray: документация,
текстуры, цветовые карты, сцены, скрипты и т.д.

%prep
%setup
%patch0 -p1

%build
pushd unix
./prebuild.sh
popd
%configure COMPILED_BY='ALT Linux Team (http://www.altlinux.ru, mailto:community at lists.altlinux.org)' --with-x --without-svga
%make_build CFLAGS=-Wno-multichar CXXFLAGS=-Wno-multichar
# Adjust bogus paths
sed -i \
 -e '/DEFAULT_DIR=/d' \
 -e 's,SYSCONFDIR=\$DEFAULT_DIR/etc,SYSCONFDIR=%{_sysconfdir},' \
 scripts/{allanim,allscene,portfolio}.sh

%install
%make_install install DESTDIR=%buildroot
# remove carriage return symbols
find %buildroot%_datadir/povray-%mjversion/scripts/ -type f -print0 |\
xargs -r0 sed -i -e 's,\r$,,g'
%files
%_bindir/povray

%files common
%config(noreplace) %_sysconfdir/%name/%mjversion/*
%dir %_datadir/%name-%mjversion
%_datadir/%name-%mjversion/*
%docdir %_defaultdocdir/%name-%mjversion
%dir %_defaultdocdir/%name-%mjversion
%_defaultdocdir/%name-%mjversion/*
%doc %_man1dir/*

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin