Files
CRCpp/CRCpp.spec

79 lines
1.9 KiB
RPMSpec

#
# 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
Summary: A C++ CRC library
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
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
multipart CRCs.
%package devel
Summary: Development files for CRCpp
BuildArch: noarch
%description devel
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
multipart CRCs. CRC++ consists of a single header file.
%package doc
Summary: Documentation for CRCpp
Group: Documentation/HTML
BuildArch: noarch
%description doc
CRC++ supports bit-by-bit and byte-by-byte calculation of full and
multipart CRCs.
This subpackage contains the API documentation.
%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