From d053afb5fb6c66d8c7232387546aa543b04c082f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 07:27:11 +0000 Subject: automatic import of python-reckit --- python-reckit.spec | 245 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 python-reckit.spec (limited to 'python-reckit.spec') diff --git a/python-reckit.spec b/python-reckit.spec new file mode 100644 index 0000000..132a18a --- /dev/null +++ b/python-reckit.spec @@ -0,0 +1,245 @@ +%global _empty_manifest_terminate_build 0 +Name: python-reckit +Version: 0.2.4 +Release: 1 +Summary: A toolkit for recommender systems +License: MIT License +URL: https://github.com/ZhongchuanSun/reckit +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/1b/0658312c5931a01bdf4a1b707e1999593922ba7d93174a1f6e409d7e8bf5/reckit-0.2.4.tar.gz + + +%description + + +# RecKit + +![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/ZhongchuanSun/reckit?include_prereleases) +![PyPI](https://img.shields.io/pypi/v/reckit) +![Travis (.com)](https://img.shields.io/travis/com/ZhongchuanSun/reckit?label=Travis%20CI&logo=Travis) +![AppVeyor](https://img.shields.io/appveyor/build/ZhongchuanSun/reckit?label=AppVeyor&logo=AppVeyor) + + +RecKit is a collection of recommender utility codes. + +# Feature + +- Parse arguments from command line and ini-style files +- Diverse data preprocessing +- Fast negative sampling +- Fast model evaluating +- Convenient records logging +- Flexible batch data iterator + +# Installation + +## Installation from binary + +Binary installers are available at the [Python package index](https://pypi.org/project/reckit/) + +```sh +# PyPI +pip install reckit +``` + +## Build from sources + +To install reckit from source you need Cython: + +```sh +pip install cython +``` + +In the reckit directory, execute: + +```sh +python setup.py bdist_wheel +``` + +Then, you can find a `*.whl` file in `./dist/`, and install it: + +```sh +pip install ./dist/*.whl +``` + +# Usage + +You can find examples in [NeuRec](https://github.com/wubinzzu/NeuRec/tree/v3.x). + + + + +%package -n python3-reckit +Summary: A toolkit for recommender systems +Provides: python-reckit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-reckit + + +# RecKit + +![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/ZhongchuanSun/reckit?include_prereleases) +![PyPI](https://img.shields.io/pypi/v/reckit) +![Travis (.com)](https://img.shields.io/travis/com/ZhongchuanSun/reckit?label=Travis%20CI&logo=Travis) +![AppVeyor](https://img.shields.io/appveyor/build/ZhongchuanSun/reckit?label=AppVeyor&logo=AppVeyor) + + +RecKit is a collection of recommender utility codes. + +# Feature + +- Parse arguments from command line and ini-style files +- Diverse data preprocessing +- Fast negative sampling +- Fast model evaluating +- Convenient records logging +- Flexible batch data iterator + +# Installation + +## Installation from binary + +Binary installers are available at the [Python package index](https://pypi.org/project/reckit/) + +```sh +# PyPI +pip install reckit +``` + +## Build from sources + +To install reckit from source you need Cython: + +```sh +pip install cython +``` + +In the reckit directory, execute: + +```sh +python setup.py bdist_wheel +``` + +Then, you can find a `*.whl` file in `./dist/`, and install it: + +```sh +pip install ./dist/*.whl +``` + +# Usage + +You can find examples in [NeuRec](https://github.com/wubinzzu/NeuRec/tree/v3.x). + + + + +%package help +Summary: Development documents and examples for reckit +Provides: python3-reckit-doc +%description help + + +# RecKit + +![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/ZhongchuanSun/reckit?include_prereleases) +![PyPI](https://img.shields.io/pypi/v/reckit) +![Travis (.com)](https://img.shields.io/travis/com/ZhongchuanSun/reckit?label=Travis%20CI&logo=Travis) +![AppVeyor](https://img.shields.io/appveyor/build/ZhongchuanSun/reckit?label=AppVeyor&logo=AppVeyor) + + +RecKit is a collection of recommender utility codes. + +# Feature + +- Parse arguments from command line and ini-style files +- Diverse data preprocessing +- Fast negative sampling +- Fast model evaluating +- Convenient records logging +- Flexible batch data iterator + +# Installation + +## Installation from binary + +Binary installers are available at the [Python package index](https://pypi.org/project/reckit/) + +```sh +# PyPI +pip install reckit +``` + +## Build from sources + +To install reckit from source you need Cython: + +```sh +pip install cython +``` + +In the reckit directory, execute: + +```sh +python setup.py bdist_wheel +``` + +Then, you can find a `*.whl` file in `./dist/`, and install it: + +```sh +pip install ./dist/*.whl +``` + +# Usage + +You can find examples in [NeuRec](https://github.com/wubinzzu/NeuRec/tree/v3.x). + + + + +%prep +%autosetup -n reckit-0.2.4 + +%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-reckit -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 0.2.4-1 +- Package Spec generated -- cgit v1.2.3