commit af24a0d18448f12302277ae5fc2b16e021bfe829 Author: Mikhail Novosyolov Date: Sun Sep 26 23:23:19 2021 +0300 init (openssh -> libfido2 -> libcbor) diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..aef8564 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + libcbor-0.8.0.tar.gz: 7ef8ab1d41973da933b27516b3398cbdeade6cb1 diff --git a/libcbor.spec b/libcbor.spec new file mode 100644 index 0000000..19bcd99 --- /dev/null +++ b/libcbor.spec @@ -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