diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:09:26 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:09:26 +0000 |
| commit | 1d35aa717f15232410ad239031dc00571a01997e (patch) | |
| tree | 6c6891dd2a18a1539838c4be2058d4124f7d7672 /python-cased.spec | |
| parent | bf63ca8d54495d89b9b2b6697404d1ea8e237479 (diff) | |
automatic import of python-cased
Diffstat (limited to 'python-cased.spec')
| -rw-r--r-- | python-cased.spec | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/python-cased.spec b/python-cased.spec new file mode 100644 index 0000000..c31ab3e --- /dev/null +++ b/python-cased.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cased +Version: 0.6.6 +Release: 1 +Summary: Cased CLI adds security and visibility features to the command line tools you and your team love. +License: BSL 1.1 +URL: https://github.com/cased/cli +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/84/03/4f13363146b1c0f85f2f0ee88ba8dd338436ee20fc5bdf2f0c51879695d5/cased-0.6.6.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-packaging +Requires: python3-GitPython + +%description +Cased CLI adds security and visibility features to the command line tools you and your team love. https://cased.com/guard + + + + +%package -n python3-cased +Summary: Cased CLI adds security and visibility features to the command line tools you and your team love. +Provides: python-cased +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cased +Cased CLI adds security and visibility features to the command line tools you and your team love. https://cased.com/guard + + + + +%package help +Summary: Development documents and examples for cased +Provides: python3-cased-doc +%description help +Cased CLI adds security and visibility features to the command line tools you and your team love. https://cased.com/guard + + + + +%prep +%autosetup -n cased-0.6.6 + +%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-cased -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.6-1 +- Package Spec generated |
