From c9c82423d4325786316cb98bc0f14f3f9f239a70 Mon Sep 17 00:00:00 2001 From: Marek Tamaskovic Date: Thu, 5 Oct 2017 09:11:32 +0200 Subject: [PATCH] Import srpm --- .gitignore | 1 + libcbor.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 libcbor.spec diff --git a/.gitignore b/.gitignore index e69de29..ad2f8b9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libcbor-0.5.0.tar.gz diff --git a/libcbor.spec b/libcbor.spec new file mode 100644 index 0000000..96e1ab5 --- /dev/null +++ b/libcbor.spec @@ -0,0 +1,62 @@ +Name: libcbor +Version: 0.5.0 +Release: 1%{?dist} +Summary: A CBOR parsing library + +Group: System Environment/Libraries +License: MIT +URL: http://libcbor.org +Source0: libcbor-%{version}.tar.gz + +BuildRequires: cmake, gcc, gcc-c++, python3-sphinx, python3-breathe + +%description +libcbor is a C library for parsing and generating CBOR. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel contains libraries and header files for %{name}. + +%prep +%setup -q + +%cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFFIX="/usr" ./ + + +%build +%make_build cbor_shared +cd doc +make man + + +%install +%make_install +mkdir -p %{buildroot}%{_mandir}/man1 +cp doc/build/man/* %{buildroot}%{_mandir}/man1 + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%{_libdir}/libcbor.so.? +%{_libdir}/libcbor.so.?.?.? + +%doc README.md +%{_mandir}/man1/libcbor.1.gz +%license LICENSE.md + +%files devel +%{_includedir}/cbor.h +%{_includedir}/cbor/*.h +%{_includedir}/cbor/internal/*.h +%{_libdir}/libcbor.so +%{_libdir}/pkgconfig/libcbor.pc + +%changelog +* Wed Jul 19 2017 Marek Tamaskovic 0.5.0-1 +- Init package. + diff --git a/sources b/sources index e69de29..5c4a571 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (libcbor-0.5.0.tar.gz) = 5c2e9610d9fbb0bfc59f89a180f70b58539a1760fd39cad696af372c164a87828a23bb4d3a54d8e9d846be5271204800f0ad63656ef830f06a0ccdd10edfdb2c