From 65bc6dfd716ae76fa63226951833fdfd01c70732 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 09:36:24 +0000 Subject: automatic import of python-imreg-dft --- .gitignore | 1 + python-imreg-dft.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 104 insertions(+) create mode 100644 python-imreg-dft.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..fc8ba80 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/imreg_dft-2.0.0.tar.gz diff --git a/python-imreg-dft.spec b/python-imreg-dft.spec new file mode 100644 index 0000000..078fb71 --- /dev/null +++ b/python-imreg-dft.spec @@ -0,0 +1,102 @@ +%global _empty_manifest_terminate_build 0 +Name: python-imreg_dft +Version: 2.0.0 +Release: 1 +Summary: Image registration utility using algorithms based on discrete Fourier transform (DFT, FFT) +License: BSD +URL: https://github.com/matejak/imreg_dft +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c3/68/57cf1e086e8cc8f75a647e8815d7cb5f9dc4686031687aad5e8e30980ce4/imreg_dft-2.0.0.tar.gz +BuildArch: noarch + + +%description +``imreg_dft`` is your first-choice Python image registration utility. +In plain language, it implements means of guessing translation, rotation and scale variation between two images. +The name comes from the fact that it doesn't work with those images directly, but it works with their spectrum (DFT using FFT), and its log-polar transformation [1]_, hence the ``_dft`` after ``imreg``. +Basically, if you want to align two images that have different scale and are rotated and shifted against each other, ``imreg_dft`` is the tool you want to check out. +`Get started `_ in five minutes and see how it works for you! + - `Matěj Týč `_ `PGP public key `_ + - `Christoph Gohlke `_ + - Brno University of Technology, Brno, Czech Republic + - Laboratory for Fluorescence Dynamics, University of California, Irvine + - 2014-2015, Matěj Týč + - 2011-2014, Christoph Gohlke + +%package -n python3-imreg_dft +Summary: Image registration utility using algorithms based on discrete Fourier transform (DFT, FFT) +Provides: python-imreg_dft +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-imreg_dft +``imreg_dft`` is your first-choice Python image registration utility. +In plain language, it implements means of guessing translation, rotation and scale variation between two images. +The name comes from the fact that it doesn't work with those images directly, but it works with their spectrum (DFT using FFT), and its log-polar transformation [1]_, hence the ``_dft`` after ``imreg``. +Basically, if you want to align two images that have different scale and are rotated and shifted against each other, ``imreg_dft`` is the tool you want to check out. +`Get started `_ in five minutes and see how it works for you! + - `Matěj Týč `_ `PGP public key `_ + - `Christoph Gohlke `_ + - Brno University of Technology, Brno, Czech Republic + - Laboratory for Fluorescence Dynamics, University of California, Irvine + - 2014-2015, Matěj Týč + - 2011-2014, Christoph Gohlke + +%package help +Summary: Development documents and examples for imreg_dft +Provides: python3-imreg_dft-doc +%description help +``imreg_dft`` is your first-choice Python image registration utility. +In plain language, it implements means of guessing translation, rotation and scale variation between two images. +The name comes from the fact that it doesn't work with those images directly, but it works with their spectrum (DFT using FFT), and its log-polar transformation [1]_, hence the ``_dft`` after ``imreg``. +Basically, if you want to align two images that have different scale and are rotated and shifted against each other, ``imreg_dft`` is the tool you want to check out. +`Get started `_ in five minutes and see how it works for you! + - `Matěj Týč `_ `PGP public key `_ + - `Christoph Gohlke `_ + - Brno University of Technology, Brno, Czech Republic + - Laboratory for Fluorescence Dynamics, University of California, Irvine + - 2014-2015, Matěj Týč + - 2011-2014, Christoph Gohlke + +%prep +%autosetup -n imreg_dft-2.0.0 + +%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-imreg_dft -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 2.0.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..2aa49b8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +2473b3f99de6159b5b43b2355c05558a imreg_dft-2.0.0.tar.gz -- cgit v1.2.3