## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec #%%global gittag 4.1.0 %global commit a2da14bfc6727b1255df6f31ac4ce89d4bd881c8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20240205 Name: xephem %if "%{?gittag}" Version: 4.1.0 %else Version: 4.1.0^3%{date}.git%{shortcommit} %endif Release: %autorelease Summary: Scientific-grade interactive astronomical ephemeris software License: MIT-advertising and LGPL-2.1-or-later URL: https://%{name}.github.io %if "%{?gittag}" Source0: https://github.com/XEphem/XEphem/archive/%{gittag}/XEphem-%{version}.tar.gz %else Source0: https://github.com/XEphem/XEphem/archive/%{commit}/XEphem-%{commit}.tar.gz %endif # Desktop and appstream metadata files are not provided in upstream sources Source1: io.github.xephem.desktop Source2: io.github.xephem.metainfo.xml # Patch to use system libraries and not override CFLAGS # Proposed upstream: https://github.com/XEphem/XEphem/pull/58 Patch: xephem_makefile.patch # Patch to use cmake to build and install # Proposed upstream: https://github.com/XEphem/XEphem/pull/60 Patch: xephem_with_cmake.patch # Define _GNU_SOURCE, so that declares strptime, an X/Open # extension that is not available by default in the glibc headers. # Submitted upstream: Patch: xephem-c99.patch ExcludeArch: %{ix86} BuildRequires: desktop-file-utils BuildRequires: cmake BuildRequires: gcc BuildRequires: groff-base BuildRequires: libappstream-glib BuildRequires: make BuildRequires: motif-devel BuildRequires: ImageMagick BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libssl) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(zlib) Requires: %{name}-data = %{version}-%{release} Requires: curl Requires: gzip %description XEphem is a scientific-grade interactive astronomical ephemeris software. It can calculate ephemeris for astronomical objects and display the results in tabular or graphical output. XEphem can also be used to control telescopes, generate sky maps, perform image analysis and much more. %package data Summary: Data files for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description data The %{name}-data package contains data files for %{name} functionality. %prep %if "%{?gittag}" %autosetup -p1 -n XEphem-%{version} %else %autosetup -p1 -n XEphem-%{commit} %endif # Remove libraries sources for which we want to use system libraries rm -rf libpng/ rm -rf libjpegd/ rm -rf libz/ rm -rf libXm/ # Rename liblilxml license files cp liblilxml/LICENSE LICENSE.liblilxml %build %if 0%{?epel} %set_build_flags %endif %cmake %cmake_build # Create standard size icons for d in 32 48 64 128 ; do convert GUI/xephem/XEphem.png -geometry ${d}x${d} -depth 8 -background none xephem-${d}.png done # Old manual build method #pushd GUI/xephem #%%make_build #popd %install %cmake_install # Old manual install method # There's no automated install #mkdir -p %%{buildroot}%%{_bindir} #mkdir -p %%{buildroot}%%{_mandir}/man1/ #mkdir -p %%{buildroot}%%{_datadir}/%%{name} #pushd GUI/xephem #install -p -m0755 %%{name} %%{buildroot}/%%{_bindir} #install -p -m0644 %%{name}.1 %%{buildroot}/%%{_mandir}/man1/ #cp -pR auxil %%{buildroot}%%{_datadir}/%%{name} #cp -pR catalogs %%{buildroot}%%{_datadir}/%%{name} #cp -pR fifos %%{buildroot}%%{_datadir}/%%{name} #cp -pR fits %%{buildroot}%%{_datadir}/%%{name} #cp -pR gallery %%{buildroot}%%{_datadir}/%%{name} #cp -pR help %%{buildroot}%%{_datadir}/%%{name} #cp -pR lo %%{buildroot}%%{_datadir}/%%{name} #popd # Create file to tell xephem where to find resources mkdir -p %{buildroot}%{_sysconfdir} cat >%{buildroot}%{_sysconfdir}/XEphem < - 4.1.0^320240205.gita2da14b-1 - Uncommitted changes * Sat Jan 27 2024 Fedora Release Engineering - 4.1.0^202301140a1b505-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 4.1.0^202301140a1b505-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Feb 11 2023 Mattia Verga - 4.1.0^202301140a1b505-5 - Add missing cmake BuildRequires * Sat Feb 11 2023 Mattia Verga - 4.1.0^202301140a1b505-4 - Fix patch for new sources * Sat Feb 11 2023 Mattia Verga - 4.1.0^202301140a1b505-1 - Patch sources to use cmake for build and install * Thu Jan 19 2023 Florian Weimer - 4.1.0^20221006b7bfc6e-4 - C99 compatibility fix * Mon Oct 10 2022 Mattia Verga - 4.1.0^20221006b7bfc6e-3 - Add libxml2 to BR and fix patch - Add gzip and curl to runtime dependencies * Fri Oct 07 2022 Mattia Verga - 4.1.0^20221006b7bfc6e-2 - Set build flags for EPEL * Fri Oct 07 2022 Mattia Verga - 4.1.0^20221006b7bfc6e-1 - Initial import (fedora#2123242) ## END: Generated by rpmautospec