summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:15:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:15:53 +0000
commit1655aa491ad08f019c37b1039a53a81150d18ff3 (patch)
tree29f9329d5fb6236b1d7571c6f5f2d1531f8f129e
parentf387c43434bcf6aa219d0eaa557d4fcf8dd2bed5 (diff)
automatic import of python-adafruit-circuitpython-ssd1306
-rw-r--r--.gitignore1
-rw-r--r--python-adafruit-circuitpython-ssd1306.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2bdf961 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/adafruit-circuitpython-ssd1306-2.12.12.tar.gz
diff --git a/python-adafruit-circuitpython-ssd1306.spec b/python-adafruit-circuitpython-ssd1306.spec
new file mode 100644
index 0000000..746d26b
--- /dev/null
+++ b/python-adafruit-circuitpython-ssd1306.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-adafruit-circuitpython-ssd1306
+Version: 2.12.12
+Release: 1
+Summary: CircuitPython library for SSD1306 OLED displays.
+License: MIT
+URL: https://github.com/adafruit/Adafruit_CircuitPython_SSD1306
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a5/06/6e90cdfcd3d5aa847dd204954dec945b90b3f3f428097b1f95744d5618ab/adafruit-circuitpython-ssd1306-2.12.12.tar.gz
+BuildArch: noarch
+
+Requires: python3-Adafruit-Blinka
+Requires: python3-adafruit-circuitpython-busdevice
+Requires: python3-adafruit-circuitpython-framebuf
+
+%description
+Adafruit CircuitPython driver for SSD1306 or SSD1305 OLED displays. Note that SSD1305 displays are back compatible so they can be used in-place of SSD1306 with the same code and commands.
+This driver implements the `adafruit_framebuf interface <https://docs.circuitpython.org/projects/framebuf/en/latest/>`__. It is **not** the `displayio` driver for the SSD1306. See the `Adafruit CircuitPython DisplayIO SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306/>`_ driver for `displayio` support.
+
+%package -n python3-adafruit-circuitpython-ssd1306
+Summary: CircuitPython library for SSD1306 OLED displays.
+Provides: python-adafruit-circuitpython-ssd1306
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-adafruit-circuitpython-ssd1306
+Adafruit CircuitPython driver for SSD1306 or SSD1305 OLED displays. Note that SSD1305 displays are back compatible so they can be used in-place of SSD1306 with the same code and commands.
+This driver implements the `adafruit_framebuf interface <https://docs.circuitpython.org/projects/framebuf/en/latest/>`__. It is **not** the `displayio` driver for the SSD1306. See the `Adafruit CircuitPython DisplayIO SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306/>`_ driver for `displayio` support.
+
+%package help
+Summary: Development documents and examples for adafruit-circuitpython-ssd1306
+Provides: python3-adafruit-circuitpython-ssd1306-doc
+%description help
+Adafruit CircuitPython driver for SSD1306 or SSD1305 OLED displays. Note that SSD1305 displays are back compatible so they can be used in-place of SSD1306 with the same code and commands.
+This driver implements the `adafruit_framebuf interface <https://docs.circuitpython.org/projects/framebuf/en/latest/>`__. It is **not** the `displayio` driver for the SSD1306. See the `Adafruit CircuitPython DisplayIO SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306/>`_ driver for `displayio` support.
+
+%prep
+%autosetup -n adafruit-circuitpython-ssd1306-2.12.12
+
+%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-adafruit-circuitpython-ssd1306 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 2.12.12-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6ba3e91
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e15cc355abcdf98523a8f0126e5d8648 adafruit-circuitpython-ssd1306-2.12.12.tar.gz