mirror of
https://abf.rosa.ru/djam/libcbor.git
synced 2025-02-24 00:02:51 +00:00
init (openssh -> libfido2 -> libcbor)
This commit is contained in:
commit
af24a0d184
2 changed files with 78 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
libcbor-0.8.0.tar.gz: 7ef8ab1d41973da933b27516b3398cbdeade6cb1
|
76
libcbor.spec
Normal file
76
libcbor.spec
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
%define major 0.8
|
||||||
|
%define libname %mklibname cbor %{major}
|
||||||
|
%define devname %mklibname cbor -d
|
||||||
|
|
||||||
|
Summary: A CBOR parsing library
|
||||||
|
Name: libcbor
|
||||||
|
License: MIT
|
||||||
|
Group: System/Libraries
|
||||||
|
Version: 0.8.0
|
||||||
|
Release: 1
|
||||||
|
URL: http://libcbor.org
|
||||||
|
Source0: https://github.com/PJK/libcbor/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: python3-breathe
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: python3-sphinx_rtd_theme
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
|
%description
|
||||||
|
libcbor is a C library for parsing and generating CBOR
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n %{libname}
|
||||||
|
Summary: A CBOR parsing library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{libname}
|
||||||
|
libcbor is a C library for parsing and generating CBOR
|
||||||
|
|
||||||
|
%files -n %{libname}
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
%{_libdir}/libcbor.so.%{major}*
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n %{devname}
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/C
|
||||||
|
Requires: %{libname} = %{EVRD}
|
||||||
|
|
||||||
|
%description -n %{devname}
|
||||||
|
The %{name}-devel contains libraries and header files for %{name}
|
||||||
|
|
||||||
|
%files -n %{devname}
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
%{_includedir}/cbor.h
|
||||||
|
%{_includedir}/cbor
|
||||||
|
%{_libdir}/libcbor.so
|
||||||
|
%{_libdir}/pkgconfig/libcbor.pc
|
||||||
|
%{_mandir}/man3/libcbor.3*
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
dir0="$PWD"
|
||||||
|
%cmake
|
||||||
|
%make
|
||||||
|
%make -C "$dir0"/doc man
|
||||||
|
|
||||||
|
%install
|
||||||
|
%makeinstall_std -C build
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man3
|
||||||
|
cp doc/build/man/* %{buildroot}%{_mandir}/man3
|
||||||
|
|
||||||
|
# /usr/usr/lib64/pkgconfig
|
||||||
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||||
|
mv -v %{buildroot}/usr/%{_libdir}/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig
|
||||||
|
rm -fvr %{buildroot}/usr/usr
|
Loading…
Add table
Reference in a new issue