Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040214
en ru br
Репозитории ALT
S:1.9.5-alt2
5.1: 1.9.4-alt4
4.1: 1.9.4-alt2
4.0: 1.8.2-alt5.rc9
3.0: 1.8.1-alt1
+backports:1.8.2-alt0.M30.1
www.altlinux.org/Changes

Группа :: Науки/Математика
Пакет: geomview

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: geomview -- interactive geometry viewing program

%define pre %nil
%def_without xforms

Name: geomview
Version: 1.9.5
Release: alt2

License: LGPLv2+
Group: Sciences/Mathematics
Url: http://www.geomview.org
Packager: Ilya Mashkin <oddity at altlinux.ru>
Source: http://ftp1.sourceforge.net/geomview/%name-%version.tar.xz
Source1: %{name}_16.xpm
Source2: %{name}_32.xpm
Source3: %{name}_48.xpm
#Patch0: http://ftp.debian.org/debian/pool/main/g/geomview/%{name}_%version-8.diff.bz2
Patch: geomview-1.8.2-rc9-alt-xforms-path.patch
Patch1: geomview-1.9.4-alt-DSO.patch

# Automatically added by buildreq on Sun Jan 13 2008 (-bi)

BuildRequires: flex gcc-c++ imake tcsh xorg-cf-files zlib-devel libXt-devel libXext-devel lesstif-devel

BuildPreReq: libGL-devel libGLU-devel

#B uildRequires: flex gcc-c++ libstdc++-devel openmotif-devel tcl-devel tcsh tk-devel


%if_with xforms
BuildPreReq: libxforms-devel
%endif

%define DIRSETTINGS moduledir=%_libdir/%{name} geomdatadir=%_datadir/%{name}/data
# explicitly added texinfo for info files
BuildRequires: texinfo

#BuildRequires: rpm-build-compat >= 0.4


%description
Geomview is interactive geometry software which is
particularly appropriate for mathematics research and education.
Geomview can display 3-D graphics output from Mathematica and Maple.
In particular, geomview can display things in hyperbolic and
spherical space as well as Euclidean space.
.
Geomview allows multiple independently controllable objects and
cameras.  It provides interactive control for motion, appearances
(including lighting, shading, and materials), picking on an
object, edge or vertex level, snapshots in SGI image file or
Renderman RIB format, and adding or deleting objects is provided
through direct mouse manipulation, control panels, and keyboard
shortcuts.  External programs can drive desired aspects of the
viewer (such as continually loading changing geometry or
controlling the motion of certain objects) while allowing
interactive control of everything else.
Homepage: http://www.geomview.org.


%prep
%setup -n %name-%version
#%patch0 -p0
%patch1 -p2

%build
autoreconf -fisv
CONFFLAGS='--enable-shared' # --disable-static'

%configure $CONFFLAGS

%make_build %DIRSETTINGS \
ACLOCAL="`pwd`/missing aclocal" \
AUTOCONF="`pwd`/missing autoconf" \
AUTOMAKE="`pwd`/missing automake" \
AUTOHEADER="`pwd`/missing autoheader"

%set_verify_info_method relaxed

%install
%makeinstall_std %DIRSETTINGS
install -m644 -D %SOURCE1 $RPM_BUILD_ROOT%_miconsdir/%{name}.xpm
install -m644 -D %SOURCE2 $RPM_BUILD_ROOT%_niconsdir/%{name}.xpm
install -m644 -D %SOURCE3 $RPM_BUILD_ROOT%_liconsdir/%{name}.xpm

mv doc/geomview.html doc/html

# due to ImageMagic conflict

# $RPM_BUILD_ROOT%_man1dir/animate.*
# another conflict
for i in \
$RPM_BUILD_ROOT%_man1dir/animate.* \
; do
fname=`basename $i`
dname=`dirname $i`
mv $i $dname/%name-$fname
done

# xforms

#$RPM_BUILD_ROOT%_man1dir/sweep.* \
#$RPM_BUILD_ROOT%_man3dir/sweep.* \

rm -fv %buildroot%_libdir/*.a

%__install -m755 -d %buildroot%_desktopdir/
cat > %buildroot%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Geomview
Comment=geomview -- interactive geometry viewing program
Icon=%{name}
Exec=%{name}
Terminal=false
Categories=Science;Math;
EOF

%files
%doc doc/html
%doc AUTHORS NEWS README INSTALL.Geomview
#doc doc/gvplot.txt
%doc doc/OOGL.m.txt doc/motion.tex doc/oogltour doc/example*
#doc src/bin/sweep/sweep.1* src/bin/sweep/sweep.3*
%doc src/bin/animate/animate.1* src/lib/geomutil/bdy/bdy.3* src/lib/geomutil/geomutil.3*
#exclude doc/%name.pdf
#find src -name *.[1-9] --- lots of old stuff
%_bindir/*
%_man1dir/*
%if_with xforms
#%_man3dir/*
%endif
%_infodir/%{name}*
%_infodir/figs/*
%_libdir/%name
%_docdir/geomview/
%_man1dir/*
%_man3dir/*
%_man5dir/*
#%_libdir/lib%{name}.so.*
%_libdir/lib%{name}*.so
%dir %_datadir/%name
%_datadir/%name/data
%dir %_datadir/%name/Maple
%dir %_datadir/%name/Mathematica
%_datadir/%name/Ma*/*
%_miconsdir/%{name}.xpm
%_niconsdir/%{name}.xpm
%_liconsdir/%{name}.xpm
%_desktopdir/%{name}.desktop
# todo: geomview-devel
%exclude /usr/include/%{name}
%exclude %_libdir/lib%name.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin