diff --git a/expandvars-1.0.0.tar.gz b/expandvars-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb4dafa1b744a913fecb8a91cf9d91fb332ce182 Binary files /dev/null and b/expandvars-1.0.0.tar.gz differ diff --git a/python-expandvars.spec b/python-expandvars.spec new file mode 100644 index 0000000000000000000000000000000000000000..3e111dc321c079b16589b1c97bd2c8ce3eb7a041 --- /dev/null +++ b/python-expandvars.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-expandvars +Version: 1.0.0 +Release: 1 +Summary: Expand system variables Unix style +License: MIT License +URL: https://github.com/sayanarijit/expandvars +Source0: https://files.pythonhosted.org/packages/93/a7/997a548c9ed679d7b93c87e091eba591e7cd9fd82ca727136b4b5b9e24cd/expandvars-1.0.0.tar.gz +BuildArch: noarch + +Requires: (python3-black) +Requires: (python3-pytest) +Requires: (python3-pytest-cov) +Requires: (python3-tox) + +%description +# expandvars + +Expand system variables Unix style + +%package -n python3-expandvars +Summary: Expand system variables Unix style +Provides: python-expandvars +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +%description -n python3-expandvars +# expandvars +Expand system variables Unix style + +%prep +%autosetup -n expandvars-1.0.0 + +%build +%pyproject_build + +%install +%pyproject_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} +touch filelist.lst +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-expandvars -f filelist.lst +%{python3_sitelib}/* +%{_docdir}/* + +%changelog +* Sun Apr 27 2025 Python_Bot - 1.0.0-1 +- Package Spec generated