Mattia Verga ebfff30
# Disable debuginfo package in F15 and F16 because stab debuginfo not supported cause failing build
Mattia Verga ebfff30
%global debug_package %{nil}
Mattia Verga ebfff30
Sergio Pascual 115af30
Name: skychart
Sergio Pascual 115af30
Version: 3.4
Mattia Verga ebfff30
Release: 4%{?dist}.2
Sergio Pascual 115af30
Summary: Planetarium software for the advanced amateur astronomer
Sergio Pascual 115af30
Sergio Pascual 115af30
Group: Amusements/Graphics
Sergio Pascual 115af30
License: GPLv2+
Sergio Pascual 115af30
URL: http://www.ap-i.net/skychart/
Sergio Pascual 115af30
Source0: http://download.origo.ethz.ch/skychart/3239/skychart-%{version}-source.tgz
Sergio Pascual 115af30
Source1: http://download.origo.ethz.ch/skychart/2443/data_jpleph.tgz
Mattia Verga 02be837
Source2: gpl.txt
Mattia Verga be6ddea
Source3: getdoc.sh
Mattia Verga be6ddea
# Source built using the following commands : ./getdoc.sh
Mattia Verga be6ddea
Source4: documentation.tar.gz
Mattia Verga 02be837
Sergio Pascual 57a5f6c
Patch1: skychart-desktop.patch
Mattia Verga ebfff30
Patch2: skychart-strip.patch
Sergio Pascual 115af30
Patch3: skychart-wgetdata.patch
Mattia Verga cf1c9ee
Patch4: gcc47.patch
5a32971
c6ad3cd
# FIXME: http://koji.fedoraproject.org/koji/taskinfo?taskID=918916
Mattia Verga ec98955
# no lazarus on s390(x) and lazarus < 0.9.30 on ppc(64)
Mattia Verga ec98955
ExcludeArch:    ppc ppc64 s390 s390x
c6ad3cd
Sergio Pascual 686732f
BuildRequires:  lazarus >= 0.9.30
Sergio Pascual 115af30
BuildRequires: ImageMagick desktop-file-utils dos2unix gtk2-devel
Sergio Pascual 115af30
BuildRequires: prelink
Sergio Pascual 115af30
Requires: xdg-utils tzdata
5a32971
5a32971
%description
5a32971
This program enables you to draw sky charts, making use of the data in 16
5a32971
catalogs of stars and nebulae. In addition the position of planets,
5a32971
asteroids and comets are shown.
5a32971
5a32971
The purpose of this program is to prepare different sky maps for a
5a32971
particular observation. A large number of parameters help you to choose
5a32971
specifically or automatically which catalogs to use, the colour and the
5a32971
dimension of stars and nebulae, the representation of planets, the display
5a32971
of labels and coordinate grids, the superposition of pictures, the
5a32971
condition of visibility and more. All these features make this celestial
5a32971
atlas more complete than a conventional planetarium.
5a32971
Mattia Verga be6ddea
%package doc
Mattia Verga be6ddea
Summary:        Documentation files for Skychart
Mattia Verga be6ddea
Group:          Documentation
Mattia Verga b8f2e95
License:        CC-BY-SA or GFDL
Mattia Verga be6ddea
Requires:       %{name}%{?_isa} = %{version}-%{release}
Mattia Verga be6ddea
Mattia Verga be6ddea
%description doc
Mattia Verga be6ddea
Documentation files from the official Skychart wiki provided
Mattia Verga be6ddea
within the program as an offline copy.
Mattia Verga be6ddea
Mattia Verga be6ddea
5a32971
%prep
Sergio Pascual 115af30
%setup -q -n %{name}-%{version}-source
Mattia Verga 02be837
Mattia Verga 02be837
# Fix old FSF address in license file
Mattia Verga 02be837
# See upstream bug at http://www.ap-i.net/mantis/view.php?id=910
Mattia Verga 02be837
cp -p %SOURCE2 skychart/
Mattia Verga 02be837
Mattia Verga 02be837
# Fix .desktop file
Mattia Verga 02be837
# See upstream bug at http://www.ap-i.net/mantis/view.php?id=911
Sergio Pascual 115af30
%patch1 -p1
Mattia Verga 02be837
Mattia Verga ebfff30
%patch2 -p1
Mattia Verga 02be837
Mattia Verga 02be837
# Disable wget for documentation and ephemeris data
Sergio Pascual 9c175f7
%patch3 -p1
Mattia Verga 02be837
Mattia Verga 02be837
# Fix compilation with gcc 4.7
Mattia Verga 02be837
# See upstream bug at http://www.ap-i.net/mantis/view.php?id=935
Mattia Verga cf1c9ee
%patch4 -p1
Mattia Verga 02be837
Mattia Verga be6ddea
# Use ephemeris data provided as source
Sergio Pascual 115af30
cp -p %SOURCE1 BaseData
Sergio Pascual 115af30
Mattia Verga be6ddea
# Extract documentation provided as source
Mattia Verga be6ddea
%setup -q -T -D -a 4 -n %{name}-%{version}-source
Mattia Verga be6ddea
8400dfe
find skychart -type f -print0 |xargs -0 chmod 644
5a32971
Mattia Verga b33e42d
# Fix exotic EOL encodings
Mattia Verga b33e42d
dos2unix -q -k tools/doc/html_doc/en/feature_class_fichiers/common.css
Mattia Verga b33e42d
dos2unix -q -k tools/doc/html_doc/en/feature_class_fichiers/custom.css
Mattia Verga b33e42d
dos2unix -q -k tools/doc/releasenotes*.txt
Mattia Verga b33e42d
Mattia Verga b33e42d
# Remove binary files quicksat.exe and IRIDFLAR.EXE
Mattia Verga b33e42d
rm -R --force tools/data/quicksat
Mattia Verga b33e42d
rm -R --force tools/data/iridflar
Mattia Verga b33e42d
5a32971
%build
8400dfe
./configure lazarus=%{_libdir}/lazarus prefix=%{_prefix}
5a32971
8400dfe
# We build these separately so that we can apply optflags
8400dfe
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/getdss
8400dfe
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/plan404
5a32971
8400dfe
make # not concurrency-safe
5a32971
Sergio Pascual 115af30
# Remove executable-stack to fix rpmlint warnings due to old Freepascal compiler
Sergio Pascual 115af30
# See upstream bug at http://www.ap-i.net/mantis/view.php?id=926
Sergio Pascual 115af30
# See Fedora bug at https://bugzilla.redhat.com/show_bug.cgi?id=771057
Sergio Pascual 115af30
execstack -c varobs/varobs
Sergio Pascual 115af30
execstack -c varobs/varobs_lpv_bulletin
Sergio Pascual 115af30
execstack -c skychart/cdc
Sergio Pascual 115af30
execstack -c skychart/cdcicon
5a32971
5a32971
5a32971
%install
Sergio Pascual 04885c3
rm -rf %{buildroot}
5a32971
Sergio Pascual 9c175f7
make install PREFIX=%{buildroot}%{_prefix}
Sergio Pascual 04885c3
make install install_data PREFIX=%{buildroot}%{_prefix}
5a32971
8400dfe
# Fix multilib path
Sergio Pascual 04885c3
[ %{_lib} = lib ] || mv %{buildroot}%{_prefix}/{lib,%{_lib}}
5a32971
8400dfe
# Fix debuginfo
Sergio Pascual 04885c3
chmod +x %{buildroot}%{_libdir}/*
5a32971
5a32971
# Menu entry
Sergio Pascual 04885c3
desktop-file-validate %{buildroot}%{_datadir}/applications/skychart.desktop
5a32971
5a32971
5a32971
%files
Mattia Verga be6ddea
%defattr(-,root,root,-)
Sergio Pascual 44b1a5f
%doc skychart/gpl.txt
5a32971
%{_bindir}/*
5a32971
%{_libdir}/*.so
5a32971
%{_datadir}/applications/*
5a32971
%{_datadir}/pixmaps/*
6306b44
%dir %{_datadir}/skychart
5a32971
%{_datadir}/skychart/data
5a32971
%{_datadir}/skychart/cat
Mattia Verga be6ddea
%{_datadir}/skychart/doc/html_doc
Mattia Verga be6ddea
%{_datadir}/skychart/doc/releasenotes*.txt
Mattia Verga be6ddea
%{_datadir}/skychart/doc/varobs
Sergio Pascual 9c175f7
%exclude /usr/share/doc/skychart/changelog
Sergio Pascual 9c175f7
%exclude /usr/share/doc/skychart/copyright
5a32971
Mattia Verga be6ddea
%files doc
Mattia Verga be6ddea
%defattr(-,root,root,-)
Mattia Verga be6ddea
%doc %{_datadir}/skychart/doc/wiki_doc
Mattia Verga be6ddea
5a32971
%post -p /sbin/ldconfig
5a32971
5a32971
%postun -p /sbin/ldconfig
5a32971
5a32971
5a32971
%changelog
Mattia Verga 02be837
* Sun Jan 22 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.4-4
Mattia Verga be6ddea
- Added wiki documentation as subpackage
Mattia Verga 02be837
- Fix old FSF address in license file
Mattia Verga b33e42d
- Remove binary software quicksat.exe and IRIDFLAR.EXE
Mattia Verga ec98955
- Excluded ppc architecture, since lazarus < 0.9.30
Mattia Verga 02be837
Mattia Verga cf1c9ee
* Sat Jan 21 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.4-3
Mattia Verga cf1c9ee
- Patch to make it compile with gcc 4.7
Mattia Verga cf1c9ee
Sergio Pascual 57a5f6c
* Fri Jan 20 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.4-2
Sergio Pascual 57a5f6c
- Added missing source tarball
Sergio Pascual 57a5f6c
- Renamed patches
Sergio Pascual 57a5f6c
Sergio Pascual 4413073
* Thu Jan 19 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.4-1
Sergio Pascual 115af30
- New upstream source
Sergio Pascual 115af30
- New source with ephemeris
Sergio Pascual 115af30
13d147b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-6
13d147b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
13d147b
b276d36
* Tue May 03 2011 Dan HorĂ¡k <dan[at]danny.cz> - 3.2-5
b276d36
- no lazarus on s390(x)
b276d36
Sergio Pascual 686732f
* Thu Apr 28 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-4
Sergio Pascual 686732f
- Rebuilding with lazarus 0.9.30
Sergio Pascual 686732f
Sergio Pascual 44b1a5f
* Wed Mar 09 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-3
Sergio Pascual 44b1a5f
- Patch from upstream to make skychart work with lazarus 0.9.28
Sergio Pascual 44b1a5f
Sergio Pascual 44b1a5f
* Wed Feb 16 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-2
Sergio Pascual 8bd2aac
- Missing patch added
Sergio Pascual 8bd2aac
Sergio Pascual 44b1a5f
* Sat Feb 12 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.2-1
Sergio Pascual 9c175f7
- New upstream source
Sergio Pascual 9c175f7
b8343a1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.6-5.20100724svn
b8343a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b8343a1
Sergio Pascual 04885c3
* Thu Jan 13 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.0.1.6-4.20100724svn
Sergio Pascual 04885c3
- Using d-f-validate instead od d-f-install (Fixes bz #662472)
Sergio Pascual 04885c3
- Changed RPM_BUILD_ROOT macro to lower case form
Sergio Pascual 04885c3
8400dfe
* Sat Jul 24 2010 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.6-3.20100724svn
8400dfe
- Update to a later snapshot
8400dfe
758ab3f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.6-2.20090408svn
758ab3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
758ab3f
5e741d8
* Wed Apr 08 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.6-1.20090408svn
5e741d8
- Update to post latest beta
5e741d8
- Drop the unzip patch
5e741d8
- Upstream did the datadir and xdg-open chage as well, drop patches
5e741d8
9166a53
* Wed Apr 08 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-6.20081026svn
9166a53
- Enable GTK2 UI
9166a53
5295675
* Fri Mar 27 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-5.20081026svn
5295675
- Fix desktop entry categories
5295675
ced62a7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1.5-4.20081026svn
ced62a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ced62a7
6306b44
* Mon Dec 01 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-3.20081026svn
6306b44
- Own /usr/share/skychart (#474037)
6306b44
662b6b4
* Thu Nov 06 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-2.20081026svn
662b6b4
- Temporarily disable ppc64 build due to a compiler bug
662b6b4
5a32971
* Wed Oct 29 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.5-1.20081026svn
5a32971
- Rebase to later upstream, since we have more recent fpc and lazarus now
5a32971
5a32971
* Sun Oct 26 2008 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 3.0.1.3-1.20071015svn
5a32971
- Initial packaging attempt