diff options
Diffstat (limited to 'python-addok.spec')
-rw-r--r-- | python-addok.spec | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/python-addok.spec b/python-addok.spec new file mode 100644 index 0000000..5a3e539 --- /dev/null +++ b/python-addok.spec @@ -0,0 +1,153 @@ +%global _empty_manifest_terminate_build 0 +Name: python-addok +Version: 1.1.1 +Release: 1 +Summary: Search engine for address. Only address. +License: MIT +URL: https://github.com/addok/addok +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/05/6f/fbfb3b1f74e51db165e8267b95d73ef7887345043c516307abd6ddf399d4/addok-1.1.1.tar.gz +BuildArch: noarch + +Requires: python3-falcon +Requires: python3-hashids +Requires: python3-hiredis +Requires: python3-editdistance +Requires: python3-ngram +Requires: python3-progressist +Requires: python3-geohash +Requires: python3-redis +Requires: python3-Unidecode +Requires: python3-gnureadline +Requires: python3-mkdocs +Requires: python3-pytest + +%description +# Addok + +Search engine for address. Only address. + +Addok will index your address data and provide an HTTP API for full text search. + +It is extensible with [plugins](http://addok.readthedocs.io/en/latest/plugins/), +for example for geocoding CSV files. + +Used in production by France administration, with around 26 millions addresses. +In those servers, full France data is imported in about 15 min and it scales +to around 2000 searches per second. + +Check the [documentation](http://addok.readthedocs.org/en/latest/) and a +[demo](http://adresse.data.gouv.fr/map) with French data. + +For discussions, please use the [discourse Geocommun forum](https://forum.geocommuns.fr/c/adresses/addok-le-geocodeur/17). Discussions are mostly French, but English is very welcome. + +Powered by Python and Redis. + +[](https://pypi.python.org/pypi/addok/) + +[](https://coveralls.io/github/addok/addok?branch=master) + + +%package -n python3-addok +Summary: Search engine for address. Only address. +Provides: python-addok +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-addok +# Addok + +Search engine for address. Only address. + +Addok will index your address data and provide an HTTP API for full text search. + +It is extensible with [plugins](http://addok.readthedocs.io/en/latest/plugins/), +for example for geocoding CSV files. + +Used in production by France administration, with around 26 millions addresses. +In those servers, full France data is imported in about 15 min and it scales +to around 2000 searches per second. + +Check the [documentation](http://addok.readthedocs.org/en/latest/) and a +[demo](http://adresse.data.gouv.fr/map) with French data. + +For discussions, please use the [discourse Geocommun forum](https://forum.geocommuns.fr/c/adresses/addok-le-geocodeur/17). Discussions are mostly French, but English is very welcome. + +Powered by Python and Redis. + +[](https://pypi.python.org/pypi/addok/) + +[](https://coveralls.io/github/addok/addok?branch=master) + + +%package help +Summary: Development documents and examples for addok +Provides: python3-addok-doc +%description help +# Addok + +Search engine for address. Only address. + +Addok will index your address data and provide an HTTP API for full text search. + +It is extensible with [plugins](http://addok.readthedocs.io/en/latest/plugins/), +for example for geocoding CSV files. + +Used in production by France administration, with around 26 millions addresses. +In those servers, full France data is imported in about 15 min and it scales +to around 2000 searches per second. + +Check the [documentation](http://addok.readthedocs.org/en/latest/) and a +[demo](http://adresse.data.gouv.fr/map) with French data. + +For discussions, please use the [discourse Geocommun forum](https://forum.geocommuns.fr/c/adresses/addok-le-geocodeur/17). Discussions are mostly French, but English is very welcome. + +Powered by Python and Redis. + +[](https://pypi.python.org/pypi/addok/) + +[](https://coveralls.io/github/addok/addok?branch=master) + + +%prep +%autosetup -n addok-1.1.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-addok -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1 +- Package Spec generated |