Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Application:Astrophotography
ASTAP
ASTAP.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ASTAP.spec of Package ASTAP
# # spec file for package ASTAP # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global debug_package %{nil} Name: ASTAP Version: 2024.05.25 Release: 0 Summary: Astrometric (plate) solver, stacking of images, photometry and FITS viewer License: MPL-2.0 AND NonFree Group: Productivity/Scientific/Astronomy URL: https://www.hnsky.org/astap.htm Source0: %{name}-%{version}.tar.xz Source1: https://sourceforge.net/projects/astap-program/files/linux_installer/astap_amd64.tar.gz Source2: https://sourceforge.net/projects/astap-program/files/star_databases/hyperleda.zip Source3: acknowledgement_of_databases.txt BuildRequires: fpc BuildRequires: glibc-devel %if 0%{?fedora_version} >= 39 || 0%{?is_opensuse} BuildRequires: lazarus-tools BuildRequires: lazarus-lcl-qt5 %endif %if 0%{?fedora_version} <= 38 BuildRequires: lazarus %endif BuildRequires: libtool BuildRequires: unzip Requires: cfitsio Recommends: ASTAP-d50stars Recommends: ASTAP-w08stars %if 0%{?fedora_version} BuildRequires: qt5pas-devel BuildRequires: lcms2-devel BuildRequires: libjpeg-turbo-devel %endif %if 0%{?is_opensuse} BuildRequires: libX11-devel BuildRequires: libQt5Pas-devel BuildRequires: libjpeg-devel BuildRequires: pkgconfig(lcms2) %endif Suggests: ASTAP-d50stars %description This is a free stacking and astrometric solver (plate solver) program for deep sky images. In works with astronomical images in the FITS format, but can import RAW DSLR images or XISF, PGM, PPM, TIF, PNG and JPG images. It has a powerful FITS viewer and the native astrometric solver can be used by CCDCiel, NINA, APT or SGP imaging programs to synchronise the mount based on an image taken. IMPORTANT: it's highly recommended to install 'ASTAP-w08stars' and either 'ASTAP-d20stars' or 'ASTAP-d50stars' in order to access all ASTAP's features. %prep %setup -q # delete useless zip files from source tree rm -fv *zip %setup -q -D -a 1 mv opt/astap/copyright.txt . mv usr/share/applications/ASTAP.desktop . mv opt/astap/deep_sky.csv . mv opt/astap/variable_stars.csv . rm -rf opt/astap usr/share usr/local sed -i 's/Exec=\/opt\/astap\/astap/Exec=\/usr\/bin\/astap/' ASTAP.desktop sed -i 's/Icon=\/opt\/astap\/astap.ico/Icon=\/usr\/share\/pixmaps\/astap.ico/' ASTAP.desktop %setup -q -D -a 2 %build # compilation fails on Fedora when PIE is enabled lazbuild \ --lazarusdir=%{_libdir}/lazarus \ --os=linux \ --ws=qt5 \ --max-process-count=1 \ %if 0%{?fedora_version} -B astap_linux.lpi %else -B astap_linux_pie.lpi %endif # compile the modified version of dcraw which has support # for Exposure and Gain settings gcc dcraw_modification/dcraw.c -o dcraw-astap -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wno-unused-result -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -lm -ljpeg -llcms2 -DNO_JASPER %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/astap/data install -m 0644 copyright.txt %{buildroot}%{_datadir}/astap/ install -m 0755 astap %{buildroot}%{_bindir}/astap install -m 0755 dcraw-astap %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_datadir}/applications/ mkdir -p %{buildroot}%{_datadir}/pixmaps/ install -m 0644 astap_icon.ico %{buildroot}%{_datadir}/pixmaps/astap.ico install -m 0644 ASTAP.desktop %{buildroot}%{_datadir}/applications/ASTAP.desktop install -m 0644 deep_sky.csv %{buildroot}%{_datadir}/astap/data/ install -m 0644 variable_stars.csv %{buildroot}%{_datadir}/astap/data/ install -m 0644 hyperleda.csv %{buildroot}%{_datadir}/astap/data/hyperleda.csv install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/astap/data/ %files %dir %{_datadir}/astap/ %dir %{_datadir}/astap/data/ %license %{_datadir}/astap/copyright.txt %license %{_datadir}/astap/data/acknowledgement_of_databases.txt %{_bindir}/astap %{_bindir}/dcraw-astap %{_datadir}/astap/data/deep_sky.csv %{_datadir}/astap/data/variable_stars.csv %{_datadir}/astap/data/hyperleda.csv %{_datadir}/pixmaps/astap.ico %{_datadir}/applications/ASTAP.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor