2024-06-01 20:33:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package CRCpp
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: CRCpp
|
|
|
|
Version: 1.2.0.0
|
|
|
|
Release: 0
|
2024-06-01 20:36:12 +00:00
|
|
|
Summary: A C++ CRC library
|
2024-06-01 20:33:40 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/d-bahr/CRCpp
|
|
|
|
Source0: https://github.com/d-bahr/CRCpp/archive/release-%{version}.tar.gz#/CRCpp-%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
%description
|
2024-06-01 20:36:12 +00:00
|
|
|
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
|
|
|
|
multipart CRCs.
|
2024-06-01 20:33:40 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for CRCpp
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
2024-06-01 20:36:12 +00:00
|
|
|
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
|
|
|
|
multipart CRCs. CRC++ consists of a single header file.
|
2024-06-01 20:33:40 +00:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for CRCpp
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2024-06-01 20:36:12 +00:00
|
|
|
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
|
|
|
|
multipart CRCs.
|
|
|
|
This subpackage contains the API documentation.
|
2024-06-01 20:33:40 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n CRCpp-release-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DBUILD_TEST:BOOL=On -DBUILD_DOC:BOOL=On
|
|
|
|
%cmake_build
|
|
|
|
%cmake_build doxygen
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%fdupes -s doxygen/html
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%{_includedir}/CRC.h
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc README.md
|
|
|
|
%doc doxygen/html
|
|
|
|
|
|
|
|
%changelog
|