Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lemmy04
xephem
xephem.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xephem.spec of Package xephem
# # spec file for package xephem # # Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany. # Lots of modifications since then (c) M.Homann <Mathias.Homann@opensuse.org> # # 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 http://bugs.opensuse.org/ # %define _srcname XEphem Name: xephem Url: https://xephem.github.io/XEphem/Site/xephem.html Version: 4.1.0 Release: 0 Summary: A complete planetarium/observatory package for X11/Motif License: MIT Group: Productivity/Graphics/Visualization/Other Source0: https://github.com/XEphem/XEphem/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}_suse.tar.xz Source2: %{name}_catalogs.tar.xz Source3: %{name}_hiptyc2.tar.xz Source4: %{name}_ppm.tar.xz Source5: %{name}_gsc.tar.xz Source6: %{name}_GSC2201.tar.xz Source7: %{name}_usno.tar.xz Patch0: rpmpackage.diff Patch1: 64bit.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: flex BuildRequires: xz BuildRequires: freetype2-devel BuildRequires: groff BuildRequires: motif-devel BuildRequires: xorg-x11 BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-libs BuildRequires: libopenssl-devel %description XEphem \eks-i-'fem\ n. [X Windows + ephemeris] (1990) : The accurate and reliable interactive astronomy software tool for all UNIX-like systems including Linux, FreeBSD and Solaris. Astronomical software, like TheSky or SkyMap Pro, just better! %package catalogs Summary: Various additional catalogs for XEphem Requires: %{name} = %{version} %package hiptyc2 Summary: The Hipparcos and Tycho catalogs for XEphem Requires: %{name} = %{version} %package ppm Summary: The proper motion catalog for XEphem Requires: %{name} = %{version} %package gsc Summary: the Hubble Guide Star catalog for XEphem (Warning: very large) Requires: %{name} = %{version} %package GSC2201 Summary: The GSC2201 catalog for XEphem (Warning: very large) Requires: %{name} = %{version} %package usno Summary: The USNO catalog for XEphem (Warning: very large) Requires: %{name} = %{version} %description catalogs Various additional catalogs: - aavso - Abell - AstLowell_dim - AstLowell - AstMPC_dim - AstMPC - Barnard - binary_calib - bs - CCDM - cgcg - cgsr - constant - COVBS - CPIRSS - DCld - DeepSky-C - gcvs - hd - hde - hh - Hickson - HYPERLEDA_dim - HYPERLEDA - lbn - ldn - loneos - nav - ovocc - pleiades - Pulkovo - pulsars - qagn - Saguaro - science - sh2 - Soft03Cmt - Soft03CritList - Soft03Distant - Soft03Unusual - spacecraft - SSC - sstar_calib - stations - UGC - vla20cm - vla2cm - vla3.7cm - vla6cm - vla90cm - WDSC - XZ80Q - Zwicky %description hiptyc2 This package contains the hipparcos and tycho catalogs %description ppm This package contains the proper motion catalog %description gsc This package contains the hubble guide star catalog %description GSC2201 This package contains the full GSC2201 catalog %description usno This package contains the full USNO catalog %prep %setup -n %{_srcname}-%{version} -T -b 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 %patch0 -p1 %ifarch x86_64 %patch1 -p1 %endif %build #------------------------------# # get rid of mac os junk files # #------------------------------# find . -type f -iname ._\* | xargs -r rm -v #-------------------# # prepare openmotif # #-------------------# rm -rf ${RPM_BUILD_DIR}/%{_srcname}-%{version}/libXm/* #-------------------# # build xephem GUI # #-------------------# CFLAGS=$RPM_OPT_FLAGS cd ${RPM_BUILD_DIR}/%{_srcname}-%{version}/GUI/xephem make MOTIF=/usr/lib #---------------------# # build xephem tools # #---------------------# cd ${RPM_BUILD_DIR}/%{_srcname}-%{version}/GUI/xephem/fifos make %install # install GUI # ----------- cd ${RPM_BUILD_DIR}/%{_srcname}-%{version}/GUI/xephem install -d -m 755 $RPM_BUILD_ROOT/usr/bin install -d -m 755 $RPM_BUILD_ROOT/usr/share/man/man1 install -m 755 xephem $RPM_BUILD_ROOT/usr/bin install -m 644 xephem.man $RPM_BUILD_ROOT/usr/share/man/man1/xephem.1x gzip -f $RPM_BUILD_ROOT/usr/share/man/man1/xephem.1x # # create appdefault file # install -d -m 755 $RPM_BUILD_ROOT/usr/share/X11/app-defaults echo "XEphem.ShareDir: /usr/lib/xephem" > $RPM_BUILD_ROOT/usr/share/X11/app-defaults/XEphem # # install data from work dir # cd ${RPM_BUILD_DIR}/%{_srcname}-%{version}/GUI/xephem install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/auxil cp -a auxil/* $RPM_BUILD_ROOT/usr/lib/xephem/auxil install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/catalogs cp -ar catalogs/* $RPM_BUILD_ROOT/usr/lib/xephem/catalogs install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/fifos cp -a fifos/* $RPM_BUILD_ROOT/usr/lib/xephem/fifos ( cd $RPM_BUILD_ROOT/usr/lib/xephem && cd fifos && find -name "*" -type p -exec chmod 644 {} \; ) install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/fits cp -a fits/* $RPM_BUILD_ROOT/usr/lib/xephem/fits install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/help cp -a help/* $RPM_BUILD_ROOT/usr/lib/xephem/help install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/gallery cp -a gallery/* $RPM_BUILD_ROOT/usr/lib/xephem/gallery install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xephem/lo cp -a lo/* $RPM_BUILD_ROOT/usr/lib/xephem/lo #-------------------------- # install suse stuff #-------------------------- cd ${RPM_BUILD_DIR}/%{_srcname}-%{version} install -d -m 755 $RPM_BUILD_ROOT/usr/share/applications/ install -m 644 xephem.desktop $RPM_BUILD_ROOT/usr/share/applications/ install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps install -m 644 xephem.png $RPM_BUILD_ROOT/usr/share/pixmaps #-------------------------- # make perl scripts executable #-------------------------- find $RPM_BUILD_ROOT -iname \*.pl -exec chmod a+x {} \; find $RPM_BUILD_ROOT -iname \*.c -exec rm {} \; find $RPM_BUILD_ROOT -iname \*.o -exec rm {} \; find $RPM_BUILD_ROOT -iname \*.h -exec rm {} \; %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %doc LICENSE INSTALL README.md %dir /usr/lib/xephem %dir /usr/lib/xephem/catalogs /usr/bin/xephem /usr/lib/xephem/auxil /usr/lib/xephem/catalogs/SKY2000.edb /usr/lib/xephem/catalogs/SKY2k65.edb /usr/lib/xephem/catalogs/IC.edb /usr/lib/xephem/catalogs/Messier.edb /usr/lib/xephem/catalogs/NGC.edb /usr/lib/xephem/catalogs/UB313.edb /usr/lib/xephem/fits /usr/lib/xephem/gallery /usr/lib/xephem/help /usr/lib/xephem/lo /usr/share/applications/xephem.desktop /usr/share/pixmaps/xephem.png /usr/share/man/man1/xephem.1x.gz /usr/share/X11/app-defaults/XEphem /usr/lib/xephem/fifos %files catalogs %defattr(-,root,root,0755) /usr/lib/xephem/catalogs/aavso.edb /usr/lib/xephem/catalogs/Abell.edb /usr/lib/xephem/catalogs/AstLowell_dim.edb /usr/lib/xephem/catalogs/AstLowell.edb /usr/lib/xephem/catalogs/AstMPC_dim.edb /usr/lib/xephem/catalogs/AstMPC.edb /usr/lib/xephem/catalogs/Barnard.edb /usr/lib/xephem/catalogs/binary_calib.edb /usr/lib/xephem/catalogs/bs.edb /usr/lib/xephem/catalogs/CCDM.edb /usr/lib/xephem/catalogs/cgcg.edb /usr/lib/xephem/catalogs/cgsr.edb /usr/lib/xephem/catalogs/constant.edb /usr/lib/xephem/catalogs/COVBS.edb /usr/lib/xephem/catalogs/CPIRSS.edb /usr/lib/xephem/catalogs/DCld.edb /usr/lib/xephem/catalogs/DeepSky-C.edb /usr/lib/xephem/catalogs/gcvs.edb /usr/lib/xephem/catalogs/hd.edb /usr/lib/xephem/catalogs/hde.edb /usr/lib/xephem/catalogs/hh.edb /usr/lib/xephem/catalogs/Hickson.edb /usr/lib/xephem/catalogs/HYPERLEDA_dim.edb /usr/lib/xephem/catalogs/HYPERLEDA.edb /usr/lib/xephem/catalogs/lbn.edb /usr/lib/xephem/catalogs/ldn.edb /usr/lib/xephem/catalogs/loneos.edb /usr/lib/xephem/catalogs/nav.edb /usr/lib/xephem/catalogs/ovocc.edb /usr/lib/xephem/catalogs/pleiades.edb /usr/lib/xephem/catalogs/Pulkovo.edb /usr/lib/xephem/catalogs/pulsars.edb /usr/lib/xephem/catalogs/qagn.edb /usr/lib/xephem/catalogs/Saguaro.edb /usr/lib/xephem/catalogs/science.edb /usr/lib/xephem/catalogs/sh2.edb /usr/lib/xephem/catalogs/Soft03Cmt.edb /usr/lib/xephem/catalogs/Soft03CritList.edb /usr/lib/xephem/catalogs/Soft03Distant.edb /usr/lib/xephem/catalogs/Soft03Unusual.edb /usr/lib/xephem/catalogs/spacecraft.edb /usr/lib/xephem/catalogs/SSC.edb /usr/lib/xephem/catalogs/sstar_calib.edb /usr/lib/xephem/catalogs/stations.edb /usr/lib/xephem/catalogs/UGC.edb /usr/lib/xephem/catalogs/vla20cm.edb /usr/lib/xephem/catalogs/vla2cm.edb /usr/lib/xephem/catalogs/vla3.7cm.edb /usr/lib/xephem/catalogs/vla6cm.edb /usr/lib/xephem/catalogs/vla90cm.edb /usr/lib/xephem/catalogs/WDSC.edb /usr/lib/xephem/catalogs/XZ80Q.edb /usr/lib/xephem/catalogs/Zwicky.edb %files hiptyc2 %defattr(-,root,root,0755) /usr/lib/xephem/catalogs/hiptyc2.xe2 %files ppm %defattr(-,root,root,0755) /usr/lib/xephem/catalogs/ppm.xe2 %files gsc %defattr(-,root,root,0755) %dir /usr/lib/xephem/catalogs/gsc /usr/lib/xephem/catalogs/gsc/* %files GSC2201 %defattr(-,root,root,0755) %dir /usr/lib/xephem/catalogs/GSC2201 /usr/lib/xephem/catalogs/GSC2201/* %files usno %defattr(-,root,root,0755) %dir /usr/lib/xephem/catalogs/usno /usr/lib/xephem/catalogs/usno/* %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