diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bimmer-connected.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/bimmer_connected-0.13.1.tar.gz diff --git a/python-bimmer-connected.spec b/python-bimmer-connected.spec new file mode 100644 index 0000000..b78bea9 --- /dev/null +++ b/python-bimmer-connected.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bimmer-connected +Version: 0.13.1 +Release: 1 +Summary: Library to read data from the BMW Connected Drive portal +License: Apache-2 +URL: https://github.com/bimmerconnected/bimmer_connected +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/cc/bb1272d6bcdd234b45b1324a5715ba3d9a65aaebe11dcd0df7cc8a961013/bimmer_connected-0.13.1.tar.gz +BuildArch: noarch + +Requires: python3-httpx +Requires: python3-pycryptodome +Requires: python3-pyjwt + +%description +This is a simple library to query and control the status of your BMW or Mini vehicle from +the MyBMW portal. + +%package -n python3-bimmer-connected +Summary: Library to read data from the BMW Connected Drive portal +Provides: python-bimmer-connected +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bimmer-connected +This is a simple library to query and control the status of your BMW or Mini vehicle from +the MyBMW portal. + +%package help +Summary: Development documents and examples for bimmer-connected +Provides: python3-bimmer-connected-doc +%description help +This is a simple library to query and control the status of your BMW or Mini vehicle from +the MyBMW portal. + +%prep +%autosetup -n bimmer-connected-0.13.1 + +%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-bimmer-connected -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.1-1 +- Package Spec generated @@ -0,0 +1 @@ +3c1fcfa1162a44090553985a18ecadbe bimmer_connected-0.13.1.tar.gz |