diff options
Diffstat (limited to 'python-gename.spec')
| -rw-r--r-- | python-gename.spec | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/python-gename.spec b/python-gename.spec new file mode 100644 index 0000000..d2ca46c --- /dev/null +++ b/python-gename.spec @@ -0,0 +1,126 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gename +Version: 0.0.7 +Release: 1 +Summary: Guess gender from first name. +License: ICS +URL: http://github.com/sorl/gename +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f0/94/e751bb316fcdde3fc632b61289ced78e43f1adc5688dc8a9aa7021645210/gename-0.0.7.tar.gz +BuildArch: noarch + + +%description +## Summary +This package is for anyone who wants to speculate the gender given a first +name. There is no magic involved, the speculate method simply does a local +database lookup. + + +## Usage +~~~ +>>> from gename import Gender +>>> gender = Gender() +>>> gender.speculate('Bertrand') +'M' +>>> gender.speculate('Simone') +'F' +>>> gender.speculate('Unicorn') +'U' +~~~ + +U is for Unknown. + +%package -n python3-gename +Summary: Guess gender from first name. +Provides: python-gename +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gename +## Summary +This package is for anyone who wants to speculate the gender given a first +name. There is no magic involved, the speculate method simply does a local +database lookup. + + +## Usage +~~~ +>>> from gename import Gender +>>> gender = Gender() +>>> gender.speculate('Bertrand') +'M' +>>> gender.speculate('Simone') +'F' +>>> gender.speculate('Unicorn') +'U' +~~~ + +U is for Unknown. + +%package help +Summary: Development documents and examples for gename +Provides: python3-gename-doc +%description help +## Summary +This package is for anyone who wants to speculate the gender given a first +name. There is no magic involved, the speculate method simply does a local +database lookup. + + +## Usage +~~~ +>>> from gename import Gender +>>> gender = Gender() +>>> gender.speculate('Bertrand') +'M' +>>> gender.speculate('Simone') +'F' +>>> gender.speculate('Unicorn') +'U' +~~~ + +U is for Unknown. + +%prep +%autosetup -n gename-0.0.7 + +%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-gename -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1 +- Package Spec generated |
