%global commit ca9d4d97af4ee62461de6f13e0c85d1dc6000040 %global short %(c=%{commit}; echo ${c:0:10}) %global date 20210304 Name: sgp4 Version: 0.0.0+git.20221311 Release: 1.2 Summary: Simplified perturbations models for satellites License: GPL-2 Group: Productivity/Hamradio/Other URL: https://github.com/dnwrnr/sgp4 Source: https://github.com/dnwrnr/sgp4/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ %description Simplified perturbations models for satellites %package devel Summary: Development files for sgp4 Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Simplified perturbations models for satellites %package doc Summary: Documentation for sgp4. %description doc Documentation for sgp4. %prep %autosetup %build %cmake %cmake_build %install %cmake_install prefix=%{_prefix} exec_prefix=\${prefix} includedir=\${prefix}/include/%{name} libdir=\${exec_prefix}/%{_lib} %ifarch %{ix86} mv %{buildroot}/usr/lib %{buildroot}/usr/lib64 %endif mv %{buildroot}/usr/lib %{buildroot}/usr/lib64 %files #%license COPYING %doc README* %{_libdir}/libsgp4s.so %files devel %{_includedir}/* %files doc %doc README* %changelog * Wed Dec 09 2020 lu3vea@gmail.com - 1.0 - First Fedora spec