%global _empty_manifest_terminate_build 0 Name: python-libscrc Version: 1.8.1 Release: 1 Summary: Library for calculating CRC3/CRC4/CRC8/CRC16/CRC24/CRC32/CRC64/CRC82 License: GNU General Public License v3 or later (GPLv3+) URL: https://github.com/hex-in/libscrc Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/13/29a83d079607968de022555099a9de94d7428336afa6b8ec516e27c26a7a/libscrc-1.8.1.tar.gz Requires: python3-wheel %description libscrc is a library for calculating CRC3 CRC4 CRC5 CRC6 CRC7 CRC8 CRC16 CRC24 CRC32 CRC64 CRC82. +------------+------------+------------+-----------+-----------+-----------+ | CRCx | CRC8 | CRC16 | CRC24 | CRC32 | CRC64 | +============+============+============+===========+===========+===========+ | CRC3-GSM | INTEL | MODBUS | BLE | FSC | GO-ISO | +------------+------------+------------+-----------+-----------+-----------+ | CRC3-ROHC | BCC | IBM | OPENPGP | CRC32 | ECMA182 | +------------+------------+------------+-----------+-----------+-----------+ | CRC4-ITU | LRC | XMODEM | LTE-A | MPEG2 | WE | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-ITU | MAXIM8 | CCITT | LTE-B | ADLER32 | XZ64 | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-EPC | ROHC | KERMIT | OS9 | FLETCHER32| | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-USB | ITU8 | MCRF4XX | FLEXRAY-A | POSIX | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-ITU | CRC8 | SICK | FLEXRAY-B | BZIP2 | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-GSM | SUM8 | DNP | INTERLAKEN| JAMCRC | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-DARC | FLETCHER8 | X25 | CRC24 | AUTOSAR | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7 | SMBUS | USB | | C / ISCSI | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-MMC | AUTOSAR | MAXIM16 | | D/BASE91-D| | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-UMTS | LTE | DECT(R/X) | | Q / AIXM | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-ROHC | SAE-J1850 | TCP/UDP | | XFER | | +------------+------------+------------+-----------+-----------+-----------+ | | I-CODE | CDMA2000 | | CKSUM | | +------------+------------+------------+-----------+-----------+-----------+ | CAN15 | GSM-A | FLETCHER16 | | XZ32 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN17 | NRSC-5 | EPC16 | | AAL5 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN21 | WCDMA | PROFIBUS | | ISO-HDLC | | +------------+------------+------------+-----------+-----------+-----------+ | | BLUETOOTH | BUYPASS | | PKZIP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC10-ATM | DVB-S2 | GENIBUS | | ADCCP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC13-BBC | EBU | GSM16 | | V-42 | | +------------+------------+------------+-----------+-----------+-----------+ | MPT1327 | DARC | RIELLO | | STM32 | | +------------+------------+------------+-----------+-----------+-----------+ | CDMA2000 | MIFARE | OPENSAFETY | | ECMXF | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN1.3 | EN13757 | | | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN2.x | CMS | | CRC30-CDMA| | +------------+------------+------------+-----------+-----------+-----------+ | | ID8 | | | PHILIPS | DARC82 | +------------+------------+------------+-----------+-----------+-----------+ | | NMEA | | | | | +------------+------------+------------+-----------+-----------+-----------+ | | MODBUS-ASC | | | | | +------------+------------+------------+-----------+-----------+-----------+ %package -n python3-libscrc Summary: Library for calculating CRC3/CRC4/CRC8/CRC16/CRC24/CRC32/CRC64/CRC82 Provides: python-libscrc BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-cffi BuildRequires: gcc BuildRequires: gdb %description -n python3-libscrc libscrc is a library for calculating CRC3 CRC4 CRC5 CRC6 CRC7 CRC8 CRC16 CRC24 CRC32 CRC64 CRC82. +------------+------------+------------+-----------+-----------+-----------+ | CRCx | CRC8 | CRC16 | CRC24 | CRC32 | CRC64 | +============+============+============+===========+===========+===========+ | CRC3-GSM | INTEL | MODBUS | BLE | FSC | GO-ISO | +------------+------------+------------+-----------+-----------+-----------+ | CRC3-ROHC | BCC | IBM | OPENPGP | CRC32 | ECMA182 | +------------+------------+------------+-----------+-----------+-----------+ | CRC4-ITU | LRC | XMODEM | LTE-A | MPEG2 | WE | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-ITU | MAXIM8 | CCITT | LTE-B | ADLER32 | XZ64 | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-EPC | ROHC | KERMIT | OS9 | FLETCHER32| | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-USB | ITU8 | MCRF4XX | FLEXRAY-A | POSIX | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-ITU | CRC8 | SICK | FLEXRAY-B | BZIP2 | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-GSM | SUM8 | DNP | INTERLAKEN| JAMCRC | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-DARC | FLETCHER8 | X25 | CRC24 | AUTOSAR | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7 | SMBUS | USB | | C / ISCSI | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-MMC | AUTOSAR | MAXIM16 | | D/BASE91-D| | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-UMTS | LTE | DECT(R/X) | | Q / AIXM | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-ROHC | SAE-J1850 | TCP/UDP | | XFER | | +------------+------------+------------+-----------+-----------+-----------+ | | I-CODE | CDMA2000 | | CKSUM | | +------------+------------+------------+-----------+-----------+-----------+ | CAN15 | GSM-A | FLETCHER16 | | XZ32 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN17 | NRSC-5 | EPC16 | | AAL5 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN21 | WCDMA | PROFIBUS | | ISO-HDLC | | +------------+------------+------------+-----------+-----------+-----------+ | | BLUETOOTH | BUYPASS | | PKZIP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC10-ATM | DVB-S2 | GENIBUS | | ADCCP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC13-BBC | EBU | GSM16 | | V-42 | | +------------+------------+------------+-----------+-----------+-----------+ | MPT1327 | DARC | RIELLO | | STM32 | | +------------+------------+------------+-----------+-----------+-----------+ | CDMA2000 | MIFARE | OPENSAFETY | | ECMXF | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN1.3 | EN13757 | | | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN2.x | CMS | | CRC30-CDMA| | +------------+------------+------------+-----------+-----------+-----------+ | | ID8 | | | PHILIPS | DARC82 | +------------+------------+------------+-----------+-----------+-----------+ | | NMEA | | | | | +------------+------------+------------+-----------+-----------+-----------+ | | MODBUS-ASC | | | | | +------------+------------+------------+-----------+-----------+-----------+ %package help Summary: Development documents and examples for libscrc Provides: python3-libscrc-doc %description help libscrc is a library for calculating CRC3 CRC4 CRC5 CRC6 CRC7 CRC8 CRC16 CRC24 CRC32 CRC64 CRC82. +------------+------------+------------+-----------+-----------+-----------+ | CRCx | CRC8 | CRC16 | CRC24 | CRC32 | CRC64 | +============+============+============+===========+===========+===========+ | CRC3-GSM | INTEL | MODBUS | BLE | FSC | GO-ISO | +------------+------------+------------+-----------+-----------+-----------+ | CRC3-ROHC | BCC | IBM | OPENPGP | CRC32 | ECMA182 | +------------+------------+------------+-----------+-----------+-----------+ | CRC4-ITU | LRC | XMODEM | LTE-A | MPEG2 | WE | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-ITU | MAXIM8 | CCITT | LTE-B | ADLER32 | XZ64 | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-EPC | ROHC | KERMIT | OS9 | FLETCHER32| | +------------+------------+------------+-----------+-----------+-----------+ | CRC5-USB | ITU8 | MCRF4XX | FLEXRAY-A | POSIX | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-ITU | CRC8 | SICK | FLEXRAY-B | BZIP2 | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-GSM | SUM8 | DNP | INTERLAKEN| JAMCRC | | +------------+------------+------------+-----------+-----------+-----------+ | CRC6-DARC | FLETCHER8 | X25 | CRC24 | AUTOSAR | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7 | SMBUS | USB | | C / ISCSI | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-MMC | AUTOSAR | MAXIM16 | | D/BASE91-D| | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-UMTS | LTE | DECT(R/X) | | Q / AIXM | | +------------+------------+------------+-----------+-----------+-----------+ | CRC7-ROHC | SAE-J1850 | TCP/UDP | | XFER | | +------------+------------+------------+-----------+-----------+-----------+ | | I-CODE | CDMA2000 | | CKSUM | | +------------+------------+------------+-----------+-----------+-----------+ | CAN15 | GSM-A | FLETCHER16 | | XZ32 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN17 | NRSC-5 | EPC16 | | AAL5 | | +------------+------------+------------+-----------+-----------+-----------+ | CAN21 | WCDMA | PROFIBUS | | ISO-HDLC | | +------------+------------+------------+-----------+-----------+-----------+ | | BLUETOOTH | BUYPASS | | PKZIP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC10-ATM | DVB-S2 | GENIBUS | | ADCCP | | +------------+------------+------------+-----------+-----------+-----------+ | CRC13-BBC | EBU | GSM16 | | V-42 | | +------------+------------+------------+-----------+-----------+-----------+ | MPT1327 | DARC | RIELLO | | STM32 | | +------------+------------+------------+-----------+-----------+-----------+ | CDMA2000 | MIFARE | OPENSAFETY | | ECMXF | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN1.3 | EN13757 | | | | +------------+------------+------------+-----------+-----------+-----------+ | | LIN2.x | CMS | | CRC30-CDMA| | +------------+------------+------------+-----------+-----------+-----------+ | | ID8 | | | PHILIPS | DARC82 | +------------+------------+------------+-----------+-----------+-----------+ | | NMEA | | | | | +------------+------------+------------+-----------+-----------+-----------+ | | MODBUS-ASC | | | | | +------------+------------+------------+-----------+-----------+-----------+ %prep %autosetup -n libscrc-1.8.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-libscrc -f filelist.lst %dir %{python3_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.8.1-1 - Package Spec generated