Package xplanet: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | Group: Toys # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/perl # END SourceDeps(oneline) %define fedora 29 # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Summary: Render a planetary image into an X window Name: xplanet Version: 1.3.1 Release: alt2 License: GPLv2+ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/xplanet/files/xplanet-1.3.1-giflib.patch URL: http://%{name}.sourceforge.net BuildRequires: gcc-c++ BuildRequires: libexpat-devel BuildRequires: glib2-devel libgio libgio-devel BuildRequires: libXScrnSaver-devel BuildRequires: libXt-devel BuildRequires: libjpeg-devel BuildRequires: libgif-devel BuildRequires: libtiff-devel libtiffxx-devel BuildRequires: libnetpbm-devel BuildRequires: libpango-devel libpango-gir-devel #Requires: fonts-ttf-gnu-freefont-mono Requires: fonts-ttf-core Source44: import.info %description Xplanet is similar to Xearth, where an image of the earth is rendered into an X window. Azimuthal, Mercator, Mollweide, orthographic, or rectangular projections can be displayed as well as a window with a globe the user can rotate interactively. The other terrestrial planets may also be displayed. The Xplanet home page has links to locations with map files. %prep %setup -q %patch0 -p1 -b .gif %if 0%{?fedora} >= 24 LANG=C grep -rl "inFile\.getline" . | \ xargs sed -i.c++11 \ -e '\@inFile\.getline@s|\(inFile\.getline[ \t]*\)\((.*)\)[ \t]*!= NULL|static_cast<bool> (\1\2)|' \ -e '\@inFile\.getline@s|\(inFile\.getline[ \t]*\)\((.*)\)[ \t]*== NULL|(!(static_cast<bool> (\1\2)))|' %endif %build %add_optflags -I%_includedir/netpbm %configure --with-pnm %make_build -k %install CPPROG="cp -p" make DESTDIR=%{buildroot} install ln -sf ../fonts/ttf/gnu-free/FreeMonoBold.ttf \ %{buildroot}%{_datadir}/%{name}/FreeMonoBold.ttf %files %doc AUTHORS ChangeLog NEWS README TODO %doc --no-dereference COPYING %{_bindir}/* %{_mandir}/man1/* %{_datadir}/xplanet %changelog * Mon Mar 08 2021 Ilya Mashkin <oddity@altlinux.ru> 1.3.1-alt2 - Req: fonts-ttf-core (Closes: #39760) * Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 1.3.1-alt1_10.1 - NMU: rebuild with libnetpbm.so.11 * Fri Mar 15 2019 Igor Vlasenko <viy@altlinux.ru> 1.3.1-alt1_10 - update to new release by fcimport * Mon Nov 20 2017 Igor Vlasenko <viy@altlinux.ru> 1.3.1-alt1_5 - new version by request of oddity@ * Fri Mar 20 2015 Ilya Mashkin <oddity@altlinux.ru> 1.2.2-alt2 - fix build, thanks Eugeny Rostovtsev * Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1.2.2-alt1.qa1 - NMU: rebuilt for libtiff.so.5. * Sat Oct 08 2011 Michael Shigorin <mike@altlinux.org> 1.2.2-alt1 - 1.2.2 (thx fedorawatch) - patch1 merged upstream * Mon Nov 08 2010 Vladimir Lettiev <crux@altlinux.ru> 1.2.1-alt1.1.1 - rebuilt with perl 5.12 * Sat Aug 08 2009 Ilya Mashkin <oddity@altlinux.ru> 1.2.1-alt1.1 - rebuild with gcc4.3 * Fri Jul 10 2009 Ilya Mashkin <oddity@altlinux.ru> 1.2.1-alt1 - 1.2.1 * Fri Nov 13 2008 Ilya Mashkin <oddity@altlinux.ru> 1.2.0-alt3 - fix build with gcc4.3 * Tue Oct 06 2008 Ilya Mashkin <oddity@altlinux.ru> 1.2.0-alt2.1 - rebuild * Tue Feb 14 2006 Vladimir V Kamarzin <vvk@altlinux.ru> 1.2.0-alt2 - Enabled pnm support - Removed xorg-x11-devel-static from buildrequires - Added libXt-devel to buildrequires * Fri Sep 09 2005 Vladimir V Kamarzin <vvk@altlinux.ru> 1.2.0-alt1 - Initial build for Sisyphus |