Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37726320
en ru br
ALT Linux repos
S:1.92-alt1
5.0: 1.68-alt1

Group :: Education
RPM: nightfall

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: nightfall
Version: 1.92
Release: alt1
Summary: Nightfall is an astronomy application for emulation of eclipsing stars

License: GPLv2+
Group: Education
Url: http://www.hs.uni-hamburg.de/DE/Ins/Per/Wichmann/Nightfall.html
Source0: http://www.la-samhna.de/%name/%name-%version.tar.gz
Source1: nightfall.desktop
#Patch0: nightfall-1.62-fixmakefile.patch
#need to get debug symbols
Patch0:         nightfall-1.82-optflags.patch
Patch1:         nightfall-1.82-makefile.patch
#fix buffer overflow
Patch2:         nightfall-1.82-buffoverflow.patch

Packager: Ilya Mashkin <oddity at altlinux.ru>

BuildRequires: libgtk+2-devel desktop-file-utils libfreeglut-devel libgomp-devel libjpeg-devel
Requires: gnuplot a2ps

%description
Nightfall is an astronomy application for fun, education, and science.
It can produce animated views of eclipsing binary stars,
calculate synthetic lightcurves and radial velocity curves,
and eventually determine the best-fit model for a given set of
observational data of an eclipsing binary star system.
It is, however, not able to fry your breakfast egg on your harddisk.

%prep
%setup -q
#patch0 -p2 -b .makefile
%patch0 -p1
%patch1 -p1
%patch2 -p1

# fix build on aarch64

#cp -af config.{guess,sub} .

%build
export CFLAGS='%{optflags} -fcommon'
export CXXFLAGS='%{optflags} -fcommon'
export FFLAGS='%{optflags} -fcommon'


#configure --with-gnuplot --enable-gnome

#make %_smp_mflags


%configure \
  --with-gnuplot \
  --enable-opengl \
  --enable-openmp \
  --disable-rpath \
  --disable-gnome \
  --with-locale-prefix=%{_datadir}/locale
%make_build


%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %name
desktop-file-install --vendor fedora --dir $RPM_BUILD_ROOT%_datadir/applications %SOURCE1

%files -f %name.lang
%doc UserManual.pdf UserManual.html README AUTHORS ChangeLog
%attr(755,root,root) %_bindir/nightfall
%attr(644,root,root) %_mandir/man1/nightfall.*
%_datadir/nightfall/*
%_datadir/applications/fedora-nightfall.desktop

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin