diff options
Diffstat (limited to 'python-skelvis.spec')
-rw-r--r-- | python-skelvis.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/python-skelvis.spec b/python-skelvis.spec new file mode 100644 index 0000000..e5e6f62 --- /dev/null +++ b/python-skelvis.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-skelvis +Version: 0.165 +Release: 1 +Summary: 3D skeleton visualizer package +License: MIT License +URL: https://github.com/ScarryBear77/skelvis +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/76/a9/5bbf321c32ba1e6618708b3eb8ddb9e15cbff8be1127e122b6414a614053/skelvis-0.165.tar.gz +BuildArch: noarch + +Requires: python3-k3d + +%description +## Edit a file +You’ll start by editing this README file to learn how to edit a file in Bitbucket. +1. Click **Source** on the left side. +2. Click the README.md link from the list of files. +3. Click the **Edit** button. +4. Delete the following text: *Delete this line to make a change to the README from Bitbucket.* +5. After making your change, click **Commit** and then **Commit** again in the dialog. The commit page will open and you’ll see the change you just made. + +%package -n python3-skelvis +Summary: 3D skeleton visualizer package +Provides: python-skelvis +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-skelvis +## Edit a file +You’ll start by editing this README file to learn how to edit a file in Bitbucket. +1. Click **Source** on the left side. +2. Click the README.md link from the list of files. +3. Click the **Edit** button. +4. Delete the following text: *Delete this line to make a change to the README from Bitbucket.* +5. After making your change, click **Commit** and then **Commit** again in the dialog. The commit page will open and you’ll see the change you just made. + +%package help +Summary: Development documents and examples for skelvis +Provides: python3-skelvis-doc +%description help +## Edit a file +You’ll start by editing this README file to learn how to edit a file in Bitbucket. +1. Click **Source** on the left side. +2. Click the README.md link from the list of files. +3. Click the **Edit** button. +4. Delete the following text: *Delete this line to make a change to the README from Bitbucket.* +5. After making your change, click **Commit** and then **Commit** again in the dialog. The commit page will open and you’ll see the change you just made. + +%prep +%autosetup -n skelvis-0.165 + +%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-skelvis -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.165-1 +- Package Spec generated |