Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9
cspice
cspice.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cspice.spec of Package cspice
# # spec file for package cspice # # copyright (c) 2023 munix9@googlemail.com # %define sover 0 %bcond_with static_libs Name: cspice Version: N0067 Release: 0 Summary: Observation geometry system for planetary science missions License: SUSE-Public-Domain URL: https://naif.jpl.nasa.gov/naif/ Source0: https://naif.jpl.nasa.gov/pub/naif/misc/toolkit_%{version}/C/PC_Linux_GCC_64bit/packages/%{name}.tar.Z Source1: CMakeLists.txt Source2: baselibs.conf Patch0: fix-call-to-mktemp.patch Patch1: fix-Wlto-type-mismatch.patch BuildRequires: cmake BuildRequires: ninja BuildRequires: pkgconfig #%%{?suse_build_hwcaps_libs} %description SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary information system used to compute geometric and event information in analyzing and planning science observations obtained from spacecraft. It is also used in planning missions and conducting numerous engineering functions needed to carry out those missions. %package -n lib%{name}%{sover} Summary: CSPICE shared library %description -n lib%{name}%{sover} SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary information system used to compute geometric and event information in analyzing and planning science observations obtained from spacecraft. It is also used in planning missions and conducting numerous engineering functions needed to carry out those missions. This package provides the shared libraries comprising the CSPICE library. %package devel Summary: Development files for the CSPICE library Requires: lib%{name}%{sover} = %{version} %description devel This package provides development files for the CSPICE library. %if %{with static_libs} %package devel-static Summary: Development files for the CSPICE library Requires: %{name}-devel = %{version} %description devel-static This package provides the CSPICE library in static form. %endif %prep %autosetup -n %{name} -p1 install -m 0644 %{SOURCE1} . %build %define __builder ninja %cmake -DBUILD_STATIC_LIBS=%{?with_static_libs:ON}%{!?with_static_libs:OFF} %cmake_build %install %cmake_install # pkgconfig file install -d %{buildroot}%{_libdir}/pkgconfig cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc prefix=%{_prefix} exec_prefix=\${prefix} libdir=\${prefix}/%{_lib} includedir=\${prefix}/include/%{name} Name: %{name} Description: Observation geometry system for planetary science missions Version: %{version} Libs: -L\${libdir} -l%{name} Cflags: -I\${includedir} EOF %if 0%{?suse_version} > 1500 %ldconfig_scriptlets -n lib%{name}%{sover} %else %post -n lib%{name}%{sover} -p /sbin/ldconfig %postun -n lib%{name}%{sover} -p /sbin/ldconfig %endif %files -n lib%{name}%{sover} %doc doc/dscriptn.txt doc/version.txt doc/whats.new %{_libdir}/lib%{name}.so.* %files devel %{_includedir}/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %if %{with static_libs} %files devel-static %{_libdir}/lib%{name}.a %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor