Mattia Verga 986c730
%global svnversion 2268
Mattia Verga 53a73b4
Sergio Pascual 115af30
Name: skychart
Mattia Verga 986c730
Version: 3.7
Mattia Verga 986c730
Release: 0.1.%{svnversion}svn%{?dist}
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/
Mattia Verga abcd859
Source0: %{name}-%{version}-%{svnversion}-src-nopatents.tar.bz2
Mattia Verga 53a73b4
# Skychart contains iridflare.exe
Mattia Verga 53a73b4
# Since it is pre-built code and the license is not clear
Mattia Verga 53a73b4
# we remove it from sources.
Mattia Verga 53a73b4
# Download upstream tarball and invoke this script
Mattia Verga 53a73b4
# while in tarballs directory:
Mattia Verga 986c730
# ./generate-tarball.sh 3.7-2268
Mattia Verga 53a73b4
Source1: generate-tarball.sh
Mattia Verga 53a73b4
Patch1: skychart-3.6-strip.patch
Mattia Verga 53a73b4
Patch2: skychart-wgetdata.patch
Mattia Verga 53a73b4
Mattia Verga 53a73b4
# no fpc and lazarus on s390(x)
Mattia Verga 53a73b4
# no lazarus on sparc(64)
Mattia Verga 53a73b4
ExcludeArch:    s390 s390x sparc sparc64
Mattia Verga 53a73b4
Mattia Verga ade2067
# Skychart fails to compile on ppc and ppc64
Mattia Verga ade2067
ExcludeArch:    ppc ppc64
Mattia Verga ade2067
Mattia Verga 53a73b4
BuildRequires: fpc >= 2.4.4
Mattia Verga 53a73b4
BuildRequires: lazarus >= 0.9.30.4
Sergio Pascual 115af30
BuildRequires: ImageMagick desktop-file-utils dos2unix gtk2-devel
Sergio Pascual 115af30
BuildRequires: prelink
Mattia Verga 53a73b4
Requires: xdg-utils tzdata xplanet
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
Mattia Verga 53a73b4
%setup -q -n %{name}-%{version}-%{svnversion}-src
Mattia Verga 02be837
Sergio Pascual 115af30
%patch1 -p1
Mattia Verga 02be837
Mattia Verga 02be837
# Disable wget for documentation and ephemeris data
Mattia Verga 53a73b4
%patch2 -p1
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 53a73b4
# Remove pre-compiled software quicksat.exe
Mattia Verga b33e42d
rm -R --force tools/data/quicksat
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
Mattia Verga 53a73b4
make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/wcs
5a32971
8400dfe
make # not concurrency-safe
5a32971
5a32971
%install
Sergio Pascual 04885c3
rm -rf %{buildroot}
5a32971
Mattia Verga 53a73b4
# Install main program
Sergio Pascual 9c175f7
make install PREFIX=%{buildroot}%{_prefix}
Mattia Verga 53a73b4
Mattia Verga 53a73b4
# Install catalogs, translations and data files
Sergio Pascual 04885c3
make install install_data PREFIX=%{buildroot}%{_prefix}
5a32971
Mattia Verga 53a73b4
# Install wiki documentation
Mattia Verga 53a73b4
make install install_doc PREFIX=%{buildroot}%{_prefix}
Mattia Verga 53a73b4
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/*
Mattia Verga 53a73b4
%{_datadir}/icons/*
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
Mattia Verga 53a73b4
%post
Mattia Verga 53a73b4
/sbin/ldconfig
Mattia Verga 53a73b4
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Mattia Verga 53a73b4
Mattia Verga 53a73b4
%postun
Mattia Verga 53a73b4
/sbin/ldconfig
Mattia Verga 53a73b4
if [ $1 -eq 0 ] ; then
Mattia Verga 53a73b4
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Mattia Verga 53a73b4
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Mattia Verga 53a73b4
fi
5a32971
Mattia Verga 53a73b4
%posttrans
Mattia Verga 53a73b4
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
5a32971
5a32971
5a32971
%changelog
Mattia Verga 986c730
* Sat Oct 06 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.7-0.1.2268svn
Mattia Verga 986c730
- Update to 3.7 testing version
Mattia Verga 986c730
d666b2c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-5
d666b2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d666b2c
Mattia Verga 006c5c2
* Fri Apr 20 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.6-3
Mattia Verga 2e37b2f
- Rebuild with lazarus 0.9.30.4 fix bug #799711
Mattia Verga 006c5c2
- Correct patch
Mattia Verga 2e37b2f
Mattia Verga 53a73b4
* Sat Mar 17 2012 Mattia Verga <mattia.verga@tiscali.it> - 3.6-1
Mattia Verga 53a73b4
- Update to 3.6 version
Mattia Verga 53a73b4
- Modify sources to remove iridflar.exe
Mattia Verga 53a73b4
- Remove patches merged upstream
Mattia Verga 53a73b4
- Make sure fpc >= 2.4.4 to avoid execstack errors
Mattia Verga 53a73b4
- Add scriptlets for icon cache
Mattia Verga 53a73b4
- Make sure lazarus >= 0.9.30.4 to work with F17 and higher
Mattia Verga 53a73b4
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