330 lines
12 KiB
RPMSpec
330 lines
12 KiB
RPMSpec
%global svnversion 2450
|
|
|
|
Name: skychart
|
|
Version: 3.8
|
|
Release: 6%{?dist}
|
|
Summary: Planetarium software for the advanced amateur astronomer
|
|
License: GPLv2+
|
|
URL: http://www.ap-i.net/skychart/
|
|
# Skychart contains iridflare.exe
|
|
# Since it is pre-built code and the license is not clear
|
|
# we remove it from sources.
|
|
# Download upstream tarball and invoke this script
|
|
# while in tarballs directory:
|
|
# ./generate-tarball.sh 3.8-2450
|
|
Source0: %{name}-%{version}-%{svnversion}-src-nopatents.tar.xz
|
|
Source1: generate-tarball.sh
|
|
# Source data for skychart-data-stars
|
|
Source2: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_gcvs.tgz
|
|
Source3: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_tycho2.tgz
|
|
Source4: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_wds.tgz
|
|
Source5: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_idx.tgz
|
|
# Source data for skychart-data-dso
|
|
Source6: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_pgc.tgz
|
|
Source7: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_ngc.tgz
|
|
Source8: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_gcm.tgz
|
|
Source9: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_gpn.tgz
|
|
Source10: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_lbn.tgz
|
|
Source11: http://sourceforge.net/projects/skychart/files/4-source_data/catalog_ocl.tgz
|
|
|
|
Patch1: skychart-3.8-strip.patch
|
|
Patch2: skychart-wgetdata.patch
|
|
|
|
# no fpc and lazarus on s390(x)
|
|
# no lazarus on sparc(64)
|
|
ExcludeArch: s390 s390x sparc sparc64
|
|
|
|
# Skychart fails to compile on ppc and ppc64
|
|
# ExcludeArch: ppc ppc64
|
|
|
|
BuildRequires: fpc >= 2.4.4
|
|
BuildRequires: lazarus >= 1.0.4
|
|
BuildRequires: ImageMagick desktop-file-utils dos2unix gtk2-devel
|
|
BuildRequires: prelink
|
|
Requires: xdg-utils tzdata xplanet
|
|
|
|
%description
|
|
This program enables you to draw sky charts, making use of the data in 16
|
|
catalogs of stars and nebulae. In addition the position of planets,
|
|
asteroids and comets are shown.
|
|
|
|
The purpose of this program is to prepare different sky maps for a
|
|
particular observation. A large number of parameters help you to choose
|
|
specifically or automatically which catalogs to use, the colour and the
|
|
dimension of stars and nebulae, the representation of planets, the display
|
|
of labels and coordinate grids, the superposition of pictures, the
|
|
condition of visibility and more. All these features make this celestial
|
|
atlas more complete than a conventional planetarium.
|
|
|
|
%package doc
|
|
Summary: Documentation files for Skychart
|
|
License: CC-BY-SA or GFDL
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation files from the official Skychart wiki provided
|
|
within the program as an offline copy.
|
|
|
|
%package data-stars
|
|
Summary: Additional star catalogs for Skychart
|
|
License: Public Domain
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description data-stars
|
|
Additional star catalogs for Skychart. This package install all the standard
|
|
stars catalog down to magnitude 12, variable and double stars:
|
|
Tycho 2; General Catalogue of Variable Stars; Washington Double Stars.
|
|
|
|
%package data-dso
|
|
Summary: Additional Deep Sky Object catalogs for Skychart
|
|
License: Public Domain
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description data-dso
|
|
Additional DSO catalogs for Skychart. This package install all the standard
|
|
nebulae catalogs: New General Catalogue; Principal Galaxies Catalogue;
|
|
Lynds Bright Nebulae; Open Cluster Data; Globular Clusters in the Milky Way;
|
|
Galactic Planetary Nebulae.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-%{svnversion}-src
|
|
|
|
%patch1 -p1
|
|
|
|
# Disable wget for documentation and ephemeris data
|
|
%patch2 -p1
|
|
|
|
find skychart -type f -print0 |xargs -0 chmod 644
|
|
|
|
# Fix exotic EOL encodings
|
|
dos2unix -q -k tools/doc/html_doc/en/feature_class_fichiers/common.css
|
|
dos2unix -q -k tools/doc/html_doc/en/feature_class_fichiers/custom.css
|
|
dos2unix -q -k tools/doc/releasenotes*.txt
|
|
|
|
# Remove pre-compiled software quicksat.exe
|
|
rm -R --force tools/data/quicksat
|
|
|
|
# Put additional catalogs files where they should be for installation
|
|
cp -p %SOURCE2 ./BaseData
|
|
cp -p %SOURCE3 ./BaseData
|
|
cp -p %SOURCE4 ./BaseData
|
|
cp -p %SOURCE5 ./BaseData
|
|
cp -p %SOURCE6 ./BaseData
|
|
cp -p %SOURCE7 ./BaseData
|
|
cp -p %SOURCE8 ./BaseData
|
|
cp -p %SOURCE9 ./BaseData
|
|
cp -p %SOURCE10 ./BaseData
|
|
cp -p %SOURCE11 ./BaseData
|
|
|
|
%build
|
|
./configure lazarus=%{_libdir}/lazarus prefix=%{_prefix}
|
|
|
|
# We build these separately so that we can apply optflags
|
|
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/getdss
|
|
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/plan404
|
|
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/wcs
|
|
|
|
make # not concurrency-safe
|
|
|
|
%install
|
|
# Install main program
|
|
make install PREFIX=%{buildroot}%{_prefix}
|
|
|
|
# Install catalogs, translations and data files
|
|
make install install_data PREFIX=%{buildroot}%{_prefix}
|
|
|
|
# Install wiki documentation
|
|
make install install_doc PREFIX=%{buildroot}%{_prefix}
|
|
|
|
# Install additional catalogs
|
|
make install install_cat1 PREFIX=%{buildroot}%{_prefix}
|
|
make install install_cat2 PREFIX=%{buildroot}%{_prefix}
|
|
|
|
# Fix multilib path
|
|
[ %{_lib} = lib ] || mv %{buildroot}%{_prefix}/{lib,%{_lib}}
|
|
|
|
# Fix debuginfo
|
|
chmod +x %{buildroot}%{_libdir}/*
|
|
|
|
# Menu entry
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/skychart.desktop
|
|
|
|
|
|
%files
|
|
%doc skychart/gpl.txt
|
|
%{_bindir}/*
|
|
%{_libdir}/*.so
|
|
%{_datadir}/applications/*
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/icons/*
|
|
%dir %{_datadir}/skychart
|
|
%{_datadir}/skychart/data
|
|
%{_datadir}/skychart/cat/DSoutlines
|
|
%{_datadir}/skychart/cat/milkyway
|
|
%{_datadir}/skychart/cat/ngc2000/*.idx
|
|
%{_datadir}/skychart/cat/RealSky
|
|
%{_datadir}/skychart/cat/sac
|
|
%{_datadir}/skychart/cat/xhip
|
|
%{_datadir}/skychart/doc/html_doc
|
|
%{_datadir}/skychart/doc/releasenotes*.txt
|
|
%{_datadir}/skychart/doc/varobs
|
|
%exclude /usr/share/doc/skychart/changelog
|
|
%exclude /usr/share/doc/skychart/copyright
|
|
|
|
%files doc
|
|
%doc %{_datadir}/skychart/doc/wiki_doc
|
|
|
|
%files data-stars
|
|
%{_datadir}/skychart/cat/gcvs
|
|
%{_datadir}/skychart/cat/tycho2
|
|
%{_datadir}/skychart/cat/wds
|
|
%{_datadir}/skychart/cat/bsc5
|
|
|
|
%files data-dso
|
|
%{_datadir}/skychart/cat/ngc2000/*.dat
|
|
%{_datadir}/skychart/cat/pgc
|
|
%{_datadir}/skychart/cat/lbn
|
|
%{_datadir}/skychart/cat/ocl
|
|
%{_datadir}/skychart/cat/gcm
|
|
%{_datadir}/skychart/cat/gpn
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
if [ $1 -eq 0 ] ; then
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
fi
|
|
|
|
%posttrans
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 12 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.8-6
|
|
- Enable arm build
|
|
- Enable ppc and ppc64 build
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Fri Aug 02 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.8-4
|
|
- Use xz to compress source file instead of bzip
|
|
|
|
* Wed May 16 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.8-3
|
|
- Make available additional dso catalogs as subpackage
|
|
- Modify patch to disable wget in catalog installation scripts
|
|
|
|
* Sun May 05 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.8-2
|
|
- Make doc package platform independent
|
|
- Remove unneeded buildroot and files declarations
|
|
- Remove Group tag
|
|
- Make available additional star catalogs as subpackage
|
|
|
|
* Sat Mar 16 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.8-1
|
|
- Update to 3.8
|
|
- Requires Lazarus >= 1.0.4
|
|
|
|
* Sun Mar 10 2013 Mattia Verga <mattia.verga@tiscali.it> - 3.7-0.3.2268svn
|
|
- Exclude armv7hl architecture
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-0.2.2268svn
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sat Oct 06 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.7-0.1.2268svn
|
|
- Update to 3.7 testing version
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Fri Apr 20 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.6-3
|
|
- Rebuild with lazarus 0.9.30.4 fix bug #799711
|
|
- Correct patch
|
|
|
|
* Sat Mar 17 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.6-1
|
|
- Update to 3.6 version
|
|
- Modify sources to remove iridflar.exe
|
|
- Remove patches merged upstream
|
|
- Make sure fpc >= 2.4.4 to avoid execstack errors
|
|
- Add scriptlets for icon cache
|
|
- Make sure lazarus >= 0.9.30.4 to work with F17 and higher
|
|
|
|
* Sun Jan 22 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.4-4
|
|
- Added wiki documentation as subpackage
|
|
- Fix old FSF address in license file
|
|
- Remove binary software quicksat.exe and IRIDFLAR.EXE
|
|
- Excluded ppc architecture, since lazarus < 0.9.30
|
|
|
|
* Sat Jan 21 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.4-3
|
|
- Patch to make it compile with gcc 4.7
|
|
|
|
* Fri Jan 20 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.4-2
|
|
- Added missing source tarball
|
|
- Renamed patches
|
|
|
|
* Thu Jan 19 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.4-1
|
|
- New upstream source
|
|
- New source with ephemeris
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Tue May 03 2011 Dan Horák <dan[at]danny.cz> - 3.2-5
|
|
- no lazarus on s390(x)
|
|
|
|
* Thu Apr 28 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-4
|
|
- Rebuilding with lazarus 0.9.30
|
|
|
|
* Wed Mar 09 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-3
|
|
- Patch from upstream to make skychart work with lazarus 0.9.28
|
|
|
|
* Wed Feb 16 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-2
|
|
- Missing patch added
|
|
|
|
* Sat Feb 12 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-1
|
|
- New upstream source
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.6-5.20100724svn
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Jan 13 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.0.1.6-4.20100724svn
|
|
- Using d-f-validate instead od d-f-install (Fixes bz #662472)
|
|
- Changed RPM_BUILD_ROOT macro to lower case form
|
|
|
|
* Sat Jul 24 2010 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.6-3.20100724svn
|
|
- Update to a later snapshot
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.6-2.20090408svn
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Apr 08 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.6-1.20090408svn
|
|
- Update to post latest beta
|
|
- Drop the unzip patch
|
|
- Upstream did the datadir and xdg-open chage as well, drop patches
|
|
|
|
* Wed Apr 08 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-6.20081026svn
|
|
- Enable GTK2 UI
|
|
|
|
* Fri Mar 27 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-5.20081026svn
|
|
- Fix desktop entry categories
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.5-4.20081026svn
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Mon Dec 01 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-3.20081026svn
|
|
- Own /usr/share/skychart (#474037)
|
|
|
|
* Thu Nov 06 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-2.20081026svn
|
|
- Temporarily disable ppc64 build due to a compiler bug
|
|
|
|
* Wed Oct 29 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-1.20081026svn
|
|
- Rebase to later upstream, since we have more recent fpc and lazarus now
|
|
|
|
* Sun Oct 26 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.3-1.20071015svn
|
|
- Initial packaging attempt
|