forked from pool/libcrc32c
Accepting request 898060 from home:mcepl:work
Required for python-google-crc32c package. OBS-URL: https://build.opensuse.org/request/show/898060 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcrc32c?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
crc32c-1.1.1.tar.gz
Normal file
3
crc32c-1.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6533f45b1670b5d59b38a514d82b09c6fb70cc1050467220216335e873074e8
|
||||
size 29829
|
9
libcrc32c.changes
Normal file
9
libcrc32c.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 4 09:34:49 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging effort for Google crc32c library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 24 12:00:00 UTC 2020 - Danilo Chang <ray2501@gmail.com>
|
||||
- Initial
|
||||
|
72
libcrc32c.spec
Normal file
72
libcrc32c.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package libcrc32c
|
||||
#
|
||||
|
||||
%define packagename crc32c
|
||||
%define soname 1
|
||||
Name: libcrc32c
|
||||
Version: 1.1.1
|
||||
Release: 0
|
||||
Summary: CRC32C implementation with support for CPU-specific acceleration instructions
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/google/crc32c
|
||||
Source0: %{packagename}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%description
|
||||
This project collects a few CRC32C implementations under an umbrella
|
||||
that dispatches to a suitable implementation based on the host computer's
|
||||
hardware capabilities.
|
||||
|
||||
CRC32C is specified as the CRC that uses the iSCSI polynomial in RFC 3720.
|
||||
The polynomial was introduced by G. Castagnoli, S. Braeuer and M. Herrmann.
|
||||
|
||||
%package -n %{name}%{soname}
|
||||
Summary: CRC32C implementation with support for CPU-specific acceleration instructions
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{name}%{soname}
|
||||
This project collects a few CRC32C implementations under an umbrella
|
||||
that dispatches to a suitable implementation based on the host computer's
|
||||
hardware capabilities.
|
||||
|
||||
CRC32C is specified as the CRC that uses the iSCSI polynomial in RFC 3720.
|
||||
The polynomial was introduced by G. Castagnoli, S. Braeuer and M. Herrmann.
|
||||
|
||||
%package -n %{name}-devel
|
||||
Summary: C++ header files and library symbolic links for %{packagename}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
|
||||
%description -n %{name}-devel
|
||||
This package contains the C++ header files and symbolic links to the shared
|
||||
libraries for %{name}. If you would like to develop programs using %{name},
|
||||
you will need to install %{name}-devel.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{packagename}-%{version}
|
||||
|
||||
%build
|
||||
%cmake -DCRC32C_BUILD_TESTS=0 -DCRC32C_BUILD_BENCHMARKS=0 -DCRC32C_USE_GLOG=0
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{name}%{soname}
|
||||
%license LICENSE
|
||||
%doc AUTHORS CONTRIBUTING.md README.md
|
||||
%{_libdir}/%{name}.so.1.1.0
|
||||
%{_libdir}/%{name}.so.1
|
||||
|
||||
%files -n %{name}-devel
|
||||
%{_includedir}/%{packagename}
|
||||
%{_libdir}/%{name}.so
|
||||
%{_libdir}/cmake/Crc32c
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user