diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-adafruit-circuitpython-ssd1306.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -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 @@ -0,0 +1 @@ +e15cc355abcdf98523a8f0126e5d8648 adafruit-circuitpython-ssd1306-2.12.12.tar.gz |