Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37042829
en ru br
ALT Linux repos
S:1.0-alt1.1

Group :: System/Libraries
RPM: crcutil

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: crcutil
Version: 1.0
Release: alt1.1

Summary: Fast CRC library
License: Apache-2.0
Group: System/Libraries
Url: https://github.com/cloudera/crcutil
Vcs: https://github.com/cloudera/crcutil.git

Source: %name-%version.tar
Source1: lib%name.pc.in

ExcludeArch: armh

BuildRequires: gcc-c++

%description
%summary.

%package -n lib%name
Group: System/Libraries
Summary: %name library
Requires: %name = %EVR

%description -n lib%name
Shared library for %name.

%package -n lib%name-devel
Group: System/Libraries
Summary: %name development files
Requires: lib%name = %EVR

%description -n lib%name-devel
Development files for %name.

%prep
%setup
%ifarch %e2k
sed -i "s/-DCRCUTIL_USE_MM_CRC32=1/-DHAVE_AARCH64/;s/-mcrc32/-mno-sse4.2/" autogen.sh
%endif
./autogen.sh
./configure --prefix=%_prefix --libdir=%_libdir

%build
%make_build

%install
%makeinstall_std INSTALLDIR="%buildroot%prefix"
rm -f %buildroot%_libdir/*.a
sed -e 's| at VERSION at |%version|g' -e 's| at LIBDIR at |%_libdir|g' -e 's| at INCLUDEDIR at |%_includedir/%name|' %SOURCE1 > lib%name.pc
install -d -m755 %buildroot%_pkgconfigdir
install -m644 lib%name.pc %buildroot%_pkgconfigdir

%check
./usage

%files
%doc AUTHORS ChangeLog COPYING NEWS README

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%_pkgconfigdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin