summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 03:11:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 03:11:08 +0000
commitb9282555fb492ad20ccb045ffa0da508f54271e8 (patch)
tree0c9bafa93dd1aefc8e889e396ab6a32bbc6ed561
parent26206a6b312cd164c350fc85b5209159ebfc5092 (diff)
automatic import of python-addrmatcher
-rw-r--r--.gitignore1
-rw-r--r--python-addrmatcher.spec101
-rw-r--r--sources1
3 files changed, 103 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0423e21 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/addrmatcher-0.0.2.5.10.tar.gz
diff --git a/python-addrmatcher.spec b/python-addrmatcher.spec
new file mode 100644
index 0000000..73e582f
--- /dev/null
+++ b/python-addrmatcher.spec
@@ -0,0 +1,101 @@
+%global _empty_manifest_terminate_build 0
+Name: python-addrmatcher
+Version: 0.0.2.5.10
+Release: 1
+Summary: Australian Address Matcher to Regions
+License: MIT License
+URL: https://github.com/uts-mdsi-ilab2-synergy/addrmatcher
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/01/83/b5f379f51c45c2827c24cb6b11c6b9774f688f99dfd6a22611556867fb81/addrmatcher-0.0.2.5.10.tar.gz
+BuildArch: noarch
+
+Requires: python3-rapidfuzz
+Requires: python3-scikit-learn
+Requires: python3-pyarrow
+Requires: python3-numpy
+Requires: python3-pandas
+Requires: python3-colorama
+Requires: python3-requests
+Requires: python3-Pillow
+
+%description
+Addrmatcher is an open-source Python software for matching input string addresses to the most similar street addresses and the geo coordinates inputs to the nearest street addresses. The result provides not only the matched addresses, but also the respective country’s different levels of regions for instance - in Australia, government administrative regions, statistical areas and suburb in which the address belongs to.
+The Addrmatcher library is built to work with rapidfuzz, scikit-learn, pandas, numpy and provides user-friendly output. It supports python version 3.6 and above. It runs on all popular operating systems, and quick to install and is free of charge.
+In this initial release, the scope of input data and matching capability are limited to Australian addresses only. The Addrmatcher library will see the opportunity to scale the matching beyond Australia in future.
+The package offers two matching capabilities -
+* __address-based matching__ accepts string address as argument.
+* __coordinate-based matching__ takes geo coordinate (latitude and longititude) as input.
+The development team achieved the optimal speed of matching less than one second for each address and each pair of coordinate input.
+The reference dataset is built upon GNAF(Geocoded National Address File) and ASGS(Australian Statistical Geography Standard) for the Australian addresses. The package users will require to download the optimised format of reference dataset into the working direcory once the package has been installed.
+
+%package -n python3-addrmatcher
+Summary: Australian Address Matcher to Regions
+Provides: python-addrmatcher
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-addrmatcher
+Addrmatcher is an open-source Python software for matching input string addresses to the most similar street addresses and the geo coordinates inputs to the nearest street addresses. The result provides not only the matched addresses, but also the respective country’s different levels of regions for instance - in Australia, government administrative regions, statistical areas and suburb in which the address belongs to.
+The Addrmatcher library is built to work with rapidfuzz, scikit-learn, pandas, numpy and provides user-friendly output. It supports python version 3.6 and above. It runs on all popular operating systems, and quick to install and is free of charge.
+In this initial release, the scope of input data and matching capability are limited to Australian addresses only. The Addrmatcher library will see the opportunity to scale the matching beyond Australia in future.
+The package offers two matching capabilities -
+* __address-based matching__ accepts string address as argument.
+* __coordinate-based matching__ takes geo coordinate (latitude and longititude) as input.
+The development team achieved the optimal speed of matching less than one second for each address and each pair of coordinate input.
+The reference dataset is built upon GNAF(Geocoded National Address File) and ASGS(Australian Statistical Geography Standard) for the Australian addresses. The package users will require to download the optimised format of reference dataset into the working direcory once the package has been installed.
+
+%package help
+Summary: Development documents and examples for addrmatcher
+Provides: python3-addrmatcher-doc
+%description help
+Addrmatcher is an open-source Python software for matching input string addresses to the most similar street addresses and the geo coordinates inputs to the nearest street addresses. The result provides not only the matched addresses, but also the respective country’s different levels of regions for instance - in Australia, government administrative regions, statistical areas and suburb in which the address belongs to.
+The Addrmatcher library is built to work with rapidfuzz, scikit-learn, pandas, numpy and provides user-friendly output. It supports python version 3.6 and above. It runs on all popular operating systems, and quick to install and is free of charge.
+In this initial release, the scope of input data and matching capability are limited to Australian addresses only. The Addrmatcher library will see the opportunity to scale the matching beyond Australia in future.
+The package offers two matching capabilities -
+* __address-based matching__ accepts string address as argument.
+* __coordinate-based matching__ takes geo coordinate (latitude and longititude) as input.
+The development team achieved the optimal speed of matching less than one second for each address and each pair of coordinate input.
+The reference dataset is built upon GNAF(Geocoded National Address File) and ASGS(Australian Statistical Geography Standard) for the Australian addresses. The package users will require to download the optimised format of reference dataset into the working direcory once the package has been installed.
+
+%prep
+%autosetup -n addrmatcher-0.0.2.5.10
+
+%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-addrmatcher -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.2.5.10-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6045c9e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cc27cea70bb55f1ea1aa7bc5002849ea addrmatcher-0.0.2.5.10.tar.gz