diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:08:16 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:08:16 +0000 |
commit | d783460e4100d6e130fdbd04dda70729e13992ce (patch) | |
tree | 2d203182942cd6803b2e38791fb18a5a52f69b9b | |
parent | 9cb6197fe81d4df712501a91ba0b580ed1ab4ab7 (diff) |
automatic import of python-compdb
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-compdb.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/compdb-0.2.0.tar.gz diff --git a/python-compdb.spec b/python-compdb.spec new file mode 100644 index 0000000..7f27209 --- /dev/null +++ b/python-compdb.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-compdb +Version: 0.2.0 +Release: 1 +Summary: The compilation database Swiss army knife +License: MIT +URL: https://github.com/Sarcasm/compdb +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7a/14/979e6c597d5e5c106462f98c6373e7684f5a771a73e10cef59eb9fce3f93/compdb-0.2.0.tar.gz +BuildArch: noarch + +Requires: python3-configparser + +%description + + +%package -n python3-compdb +Summary: The compilation database Swiss army knife +Provides: python-compdb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-compdb + + +%package help +Summary: Development documents and examples for compdb +Provides: python3-compdb-doc +%description help + + +%prep +%autosetup -n compdb-0.2.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-compdb -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +28793b9df90a12c92bfc13e246824b71 compdb-0.2.0.tar.gz |