File libcalceph1.spec of Package libcalceph

#
# spec file for package libcalceph
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%global debug_package %{nil}

%define realname libcalceph

Name:           libcalceph1
Version:        3.5.1
Release:        0
Summary:        Shared library to access SPICE and JPL files
License:        CECILL-2.1
Group:          System/Libraries
URL:            https://github.com/pchev/libcalceph
Source:         https://github.com/pchev/libcalceph/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
Patch0:         set-custom-libdir.patch
BuildRequires:  gcc
BuildRequires:  gcc-c++

%description
Shared library to access SPICE and JPL files.
This library is used by Skychart

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
mkdir -p plan404/obj
make

%install
make install PREFIX="%{buildroot}%{_usr}" LIBDIR=%{_lib}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/changelog
%license %{_datadir}/doc/%{name}/copyright
%{_libdir}/libcalceph.so.1
%{_libdir}/libcalceph.so.1.1

%changelog
openSUSE Build Service is sponsored by