From 8af7253cdbe749cec85f6b4184894232ae5ebb84 Mon Sep 17 00:00:00 2001 From: zhangy1317 Date: Fri, 23 Jul 2021 15:02:10 +0800 Subject: [PATCH] add spec and tar --- infi.dtypes.wwn-0.1.1.tar.gz | Bin 0 -> 2655 bytes python-infi.dtypes.wwn.spec | 78 +++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 infi.dtypes.wwn-0.1.1.tar.gz create mode 100644 python-infi.dtypes.wwn.spec diff --git a/infi.dtypes.wwn-0.1.1.tar.gz b/infi.dtypes.wwn-0.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2e61c87b47ada3ba6400ef72d64822adfd90c845 GIT binary patch literal 2655 zcmV-l3ZV5LiwFpmSlm?t|72-%bT4UcW@#>Dba`-Pb1rvxZY?k_F)lGKbYXG;?Hm1X z+qN=4^RM9i@L;>JT}l3Gg=KG9n!E*TlVE9A3_&2s7HzYYC5@zK7pURezgS ze=s!qJ}%q$=?5uFGiJ)+Te8`Zi9K^drq!NQUS&9g~2=SmzhV=oR5(MkAr*l!7fY z!H(&Ou)~=f1jNVhL*{$vLJpK!J2Hwy;yQV=J>#ygWOy&SA-R^bP^Kz?BWC;L=g)Yzy+Sqm#_o@ zz6dAc+GPYEhj9RNhZ$y6B~E7`67&YsY*fV(w?tgl>|#R z?#t&!%`k1lvW>27^lW!zk3E}AY~w|h|X?Mt4stpc3EJ8db zf%M1(b0XrX6D?Jz<1CWn)N!DxgH8e*GLNtl1qj7S3r{FmBD9LiFgAj@U`$-TbZ7t@ z+4qwb%rOv>V*#50vpA3{k@L)^;ZdfrmMNp0413_%gGDk$q<#1QoBvOC>Uc8UMf?wq z-AepFG`iaV?*uN%bPB#>5?&$UP90_N;9%8*CtVPDQ1!qUfy2mxN|&V?wO9Do?LS)X zB>%U1gWk&i&4G&lwEgb}(8bZ)cju10>;bFx=vXvVC=fta3=Q?l{;0Q9ZyLHt1hrw( zW>+QavbB)Hm--x)$V-fMsXU-6+?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 b/python-infi.dtypes.wwn.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-infi.dtypes.wwn +Version: 0.1.1 +Release: 1 +Summary: Datatype for WWN +License: PSF +URL: https://github.com/Infinidat/infi.dtypes.wwn +Source0: https://files.pythonhosted.org/packages/41/5d/27caf6dbfa5c5be22ccc05882b7aefce752cec3173607ca2e3b13fbfa261/infi.dtypes.wwn-0.1.1.tar.gz +BuildArch: noarch +%description +Datatype for WWN + +%package -n python3-infi.dtypes.wwn +Summary: Datatype for WWN +Provides: python-infi.dtypes.wwn +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-infi.dtypes.wwn +Datatype for WWN + +%package help +Summary: Datatype for WWN +Provides: python3-infi.dtypes.wwn-doc +%description help +Datatype for WWN + +%prep +%autosetup -n infi.dtypes.wwn-0.1.1 -S git + +%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 . + +%check +%{__python3} setup.py test + +%files -n python3-infi.dtypes.wwn -f filelist.lst +%dir %{python3_sitelib}/* + + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jul 19 2021 OpenStack_SIG - 0.1.1-1 +- Package Spec generate