Name: skychart Version: 3.4 Release: 4%{?dist}.1 Summary: Planetarium software for the advanced amateur astronomer Group: Amusements/Graphics License: GPLv2+ URL: http://www.ap-i.net/skychart/ Source0: http://download.origo.ethz.ch/skychart/3239/skychart-%{version}-source.tgz Source1: http://download.origo.ethz.ch/skychart/2443/data_jpleph.tgz Source2: gpl.txt Source3: getdoc.sh # Source built using the following commands : ./getdoc.sh Source4: documentation.tar.gz Patch1: skychart-desktop.patch #Patch2: skychart-strip.patch Patch3: skychart-wgetdata.patch Patch4: gcc47.patch # FIXME: http://koji.fedoraproject.org/koji/taskinfo?taskID=918916 # no lazarus on s390(x) and lazarus < 0.9.30 on ppc(64) ExcludeArch: ppc ppc64 s390 s390x BuildRequires: lazarus >= 0.9.30 BuildRequires: ImageMagick desktop-file-utils dos2unix gtk2-devel BuildRequires: prelink Requires: xdg-utils tzdata %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 Group: Documentation Requires: %{name}%{?_isa} = %{version}-%{release} %description doc Documentation files from the official Skychart wiki provided within the program as an offline copy. %prep %setup -q -n %{name}-%{version}-source # Fix old FSF address in license file # See upstream bug at http://www.ap-i.net/mantis/view.php?id=910 cp -p %SOURCE2 skychart/ # Fix .desktop file # See upstream bug at http://www.ap-i.net/mantis/view.php?id=911 %patch1 -p1 #%%patch2 -p1 # Disable wget for documentation and ephemeris data %patch3 -p1 # Fix compilation with gcc 4.7 # See upstream bug at http://www.ap-i.net/mantis/view.php?id=935 %patch4 -p1 # Use ephemeris data provided as source cp -p %SOURCE1 BaseData # Extract documentation provided as source %setup -q -T -D -a 4 -n %{name}-%{version}-source 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 binary files quicksat.exe and IRIDFLAR.EXE rm -R --force tools/data/quicksat rm -R --force tools/data/iridflar %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 # not concurrency-safe # Remove executable-stack to fix rpmlint warnings due to old Freepascal compiler # See upstream bug at http://www.ap-i.net/mantis/view.php?id=926 # See Fedora bug at https://bugzilla.redhat.com/show_bug.cgi?id=771057 execstack -c varobs/varobs execstack -c varobs/varobs_lpv_bulletin execstack -c skychart/cdc execstack -c skychart/cdcicon %install rm -rf %{buildroot} make install PREFIX=%{buildroot}%{_prefix} make install install_data 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 %defattr(-,root,root,-) %doc skychart/gpl.txt %{_bindir}/* %{_libdir}/*.so %{_datadir}/applications/* %{_datadir}/pixmaps/* %dir %{_datadir}/skychart %{_datadir}/skychart/data %{_datadir}/skychart/cat %{_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 %defattr(-,root,root,-) %doc %{_datadir}/skychart/doc/wiki_doc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * 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