Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37517342
en ru br
ALT Linux repositórios
S:0.9.2-alt1
5.0: 0.6.6-alt2
4.1: 0.6.3-alt1
4.0: 0.3-alt0.1

Group :: Desenvolvimento/Python
RPM: pycrc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: pycrc
Version: 0.9.2
Release: alt1

Summary: A parametrizable Cyclic Redundancy Check (CRC) calculation utility and C source code generator written in Python

Url: https://pycrc.org/
License: BSD like
Group: Development/Python

BuildArch: noarch

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-url: https://github.com/tpircher/pycrc/archive/v%version.tar.gz

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3

%description
Pycrc provides a CRC reference implementation in Python and a source
code generator for C. The used CRC variant can be chosen from a fast
but space-consuming implementation to slower but smaller implementations
suitable especially for embedded applications. The following functions
are implemented:
* generate the checksum of a string  
* generate the C header and source files for a client implementation. The
  algorithm can be chosen from fast but big implementation to slower but
  smaller implementations suitable especially for embedded applications.

%prep
%setup
%__subst "s|^#!/usr/bin/env python$|#!/usr/bin/python3|" *.py

%build
%python3_build
# TODO: need saxon-xslt
#make -C doc

%install
#python3_install
install -m755 -D %name.py %buildroot%_bindir/%name
#install -m644 -D doc/%name.1 %buildroot%_man1dir/%name.1
mkdir -p %buildroot%python3_sitelibdir/pycrc/
install -m644 pycrc/*.py %buildroot%python3_sitelibdir/pycrc/

%files
#doc doc/pycrc.html
%doc CHANGELOG.md README.md COPYING
%_bindir/%name
#_man1dir/*
%python3_sitelibdir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009