summaryrefslogtreecommitdiff
path: root/python-dlib.spec
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 07:12:32 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 07:12:32 +0000
commitb7a8d2b6a7384bc613af2ff5be057a884e92f237 (patch)
tree06eac0e0666ce5c1da2c837bc53ba487bfef9e8a /python-dlib.spec
parent8d3ee0b810333a1007c1d8389cb6c3fd6d87694b (diff)
automatic import of python-dlib
Diffstat (limited to 'python-dlib.spec')
-rw-r--r--python-dlib.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-dlib.spec b/python-dlib.spec
new file mode 100644
index 0000000..7793ab6
--- /dev/null
+++ b/python-dlib.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dlib
+Version: 19.24.0
+Release: 1
+Summary: A toolkit for making real world machine learning and data analysis applications
+License: Boost Software License
+URL: https://github.com/davisking/dlib
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/3b/7a8522a5c2ef6ff6252e46b0788b3d2c2280198c49d6ecf3b576b171045f/dlib-19.24.0.tar.gz
+BuildArch: noarch
+
+
+%description
+See http://dlib.net for documentation.
+
+%package -n python3-dlib
+Summary: A toolkit for making real world machine learning and data analysis applications
+Provides: python-dlib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dlib
+See http://dlib.net for documentation.
+
+%package help
+Summary: Development documents and examples for dlib
+Provides: python3-dlib-doc
+%description help
+See http://dlib.net for documentation.
+
+%prep
+%autosetup -n dlib-19.24.0
+
+%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-dlib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 19.24.0-1
+- Package Spec generated