summaryrefslogtreecommitdiff
path: root/python-bestpix.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:21:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:21:11 +0000
commita2560c0e5d187c055ba951597a6bdaf1daf8ed44 (patch)
treefd52aafe445abd5f428f6e5936220ef8c56fb465 /python-bestpix.spec
parentc1eaf6ce8283942a6e435ec8e02f2c749647065e (diff)
automatic import of python-bestpix
Diffstat (limited to 'python-bestpix.spec')
-rw-r--r--python-bestpix.spec282
1 files changed, 282 insertions, 0 deletions
diff --git a/python-bestpix.spec b/python-bestpix.spec
new file mode 100644
index 0000000..894902c
--- /dev/null
+++ b/python-bestpix.spec
@@ -0,0 +1,282 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bestpix
+Version: 1.5.8
+Release: 1
+Summary: please add a summary manually as the author left a blank one
+License: GNU GPLv3
+URL: https://github.com/mkchuprin/BestPix
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a0/ed/3588a8cfb69c9d35b5f4493e8b287ee5dd0cd81dbc64c9679efa75466b45/bestpix-1.5.8.tar.gz
+BuildArch: noarch
+
+
+%description
+# BestPix
+
+View your best photos by seeing what Apple's machine learning models rate them.
+Inspired by Simon Willison's [Pelican post](https://simonwillison.net/2020/May/21/dogsheep-photos/)!
+
+
+### Description
+
+All of the photos on your iPhone are put through Apple's machine learning models to produce "beautifulness" scores. These scores are stored on your iPhone and can be imported to your MacBook. This package allows you to see the 10 most beautiful photos in your browser.
+
+
+### Supported Platforms
+
+ * Mac only
+
+### Privacy
+
+No data leaves your computer
+
+# Up and Running
+
+### Installing
+
+1. You'll need **Docker Desktop**
+
+ * Check if you have it by running `docker --version`
+
+ ![](gifs/checkdocker.gif)
+
+ **Note**: The exact version might change.
+
+ * You can get it from [docker.com](https://www.docker.com/products/docker-desktop)
+
+2. You'll need **Python 3** from [python.org](https://www.python.org/downloads/)
+
+ * To check if you have it by running `python3 --version`
+
+ ![](gifs/checkpython3.gif)
+
+ **Note**: The exact version might change
+
+ * You can get it from [python.org](https://www.python.org/downloads/)
+
+3. Download **BestPix** by running `pip3 install bestpix`.
+
+ ![](gifs/pip3installbestpix.gif)
+
+ **Note**: The exact version might change
+
+### Using
+
+1. Import your iPhone's photos to your Mac. Official instructions [here](https://support.apple.com/en-us/HT201302#importmac)
+2. To start Docker Desktop, run `open -a Docker`
+
+ ![](gifs/openadocker.gif)
+
+3. To start package, run `reveal`
+
+ ![](gifs/reveal.gif)
+
+4. View the results by opening your web browser and going to the url `localhost:8442`
+
+ ![](gifs/localhost.gif)
+
+### Uninstalling
+
+1. Open your terminal and run the command `cleanup`, then the command `pip3 uninstall bestpix`
+ ![](gifs/cleanup.gif)
+2. Uninstall Docker Desktop as you would any Application. Official instructions [here](https://support.apple.com/en-us/HT202235)
+
+
+
+%package -n python3-bestpix
+Summary: please add a summary manually as the author left a blank one
+Provides: python-bestpix
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-bestpix
+# BestPix
+
+View your best photos by seeing what Apple's machine learning models rate them.
+Inspired by Simon Willison's [Pelican post](https://simonwillison.net/2020/May/21/dogsheep-photos/)!
+
+
+### Description
+
+All of the photos on your iPhone are put through Apple's machine learning models to produce "beautifulness" scores. These scores are stored on your iPhone and can be imported to your MacBook. This package allows you to see the 10 most beautiful photos in your browser.
+
+
+### Supported Platforms
+
+ * Mac only
+
+### Privacy
+
+No data leaves your computer
+
+# Up and Running
+
+### Installing
+
+1. You'll need **Docker Desktop**
+
+ * Check if you have it by running `docker --version`
+
+ ![](gifs/checkdocker.gif)
+
+ **Note**: The exact version might change.
+
+ * You can get it from [docker.com](https://www.docker.com/products/docker-desktop)
+
+2. You'll need **Python 3** from [python.org](https://www.python.org/downloads/)
+
+ * To check if you have it by running `python3 --version`
+
+ ![](gifs/checkpython3.gif)
+
+ **Note**: The exact version might change
+
+ * You can get it from [python.org](https://www.python.org/downloads/)
+
+3. Download **BestPix** by running `pip3 install bestpix`.
+
+ ![](gifs/pip3installbestpix.gif)
+
+ **Note**: The exact version might change
+
+### Using
+
+1. Import your iPhone's photos to your Mac. Official instructions [here](https://support.apple.com/en-us/HT201302#importmac)
+2. To start Docker Desktop, run `open -a Docker`
+
+ ![](gifs/openadocker.gif)
+
+3. To start package, run `reveal`
+
+ ![](gifs/reveal.gif)
+
+4. View the results by opening your web browser and going to the url `localhost:8442`
+
+ ![](gifs/localhost.gif)
+
+### Uninstalling
+
+1. Open your terminal and run the command `cleanup`, then the command `pip3 uninstall bestpix`
+ ![](gifs/cleanup.gif)
+2. Uninstall Docker Desktop as you would any Application. Official instructions [here](https://support.apple.com/en-us/HT202235)
+
+
+
+%package help
+Summary: Development documents and examples for bestpix
+Provides: python3-bestpix-doc
+%description help
+# BestPix
+
+View your best photos by seeing what Apple's machine learning models rate them.
+Inspired by Simon Willison's [Pelican post](https://simonwillison.net/2020/May/21/dogsheep-photos/)!
+
+
+### Description
+
+All of the photos on your iPhone are put through Apple's machine learning models to produce "beautifulness" scores. These scores are stored on your iPhone and can be imported to your MacBook. This package allows you to see the 10 most beautiful photos in your browser.
+
+
+### Supported Platforms
+
+ * Mac only
+
+### Privacy
+
+No data leaves your computer
+
+# Up and Running
+
+### Installing
+
+1. You'll need **Docker Desktop**
+
+ * Check if you have it by running `docker --version`
+
+ ![](gifs/checkdocker.gif)
+
+ **Note**: The exact version might change.
+
+ * You can get it from [docker.com](https://www.docker.com/products/docker-desktop)
+
+2. You'll need **Python 3** from [python.org](https://www.python.org/downloads/)
+
+ * To check if you have it by running `python3 --version`
+
+ ![](gifs/checkpython3.gif)
+
+ **Note**: The exact version might change
+
+ * You can get it from [python.org](https://www.python.org/downloads/)
+
+3. Download **BestPix** by running `pip3 install bestpix`.
+
+ ![](gifs/pip3installbestpix.gif)
+
+ **Note**: The exact version might change
+
+### Using
+
+1. Import your iPhone's photos to your Mac. Official instructions [here](https://support.apple.com/en-us/HT201302#importmac)
+2. To start Docker Desktop, run `open -a Docker`
+
+ ![](gifs/openadocker.gif)
+
+3. To start package, run `reveal`
+
+ ![](gifs/reveal.gif)
+
+4. View the results by opening your web browser and going to the url `localhost:8442`
+
+ ![](gifs/localhost.gif)
+
+### Uninstalling
+
+1. Open your terminal and run the command `cleanup`, then the command `pip3 uninstall bestpix`
+ ![](gifs/cleanup.gif)
+2. Uninstall Docker Desktop as you would any Application. Official instructions [here](https://support.apple.com/en-us/HT202235)
+
+
+
+%prep
+%autosetup -n bestpix-1.5.8
+
+%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-bestpix -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.8-1
+- Package Spec generated