diff --git a/0.9.tar.gz b/0.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f2e592f5beaf3daecd770324c3c03dcc8363fd4a Binary files /dev/null and b/0.9.tar.gz differ diff --git a/python-libmount.spec b/python-libmount.spec new file mode 100644 index 0000000000000000000000000000000000000000..047d6b7dca565a1eeb8bc54c155e2f9aff1b1e84 --- /dev/null +++ b/python-libmount.spec @@ -0,0 +1,53 @@ +%global pypi_name libmount + +Name: python-%{pypi_name} +Version: 0.9 +Release: 1 +Summary: A wrapper around libmount, for reading and manipulating filesystem tables + +License: BSD +URL: https://github.com/ox-it/python-libmount +Source0: https://github.com/ox-it/python-libmount/archive/refs/tags/%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel + +%description +python-libmount A library for reading and manipulating filesystem tables, such +as /etc/fstab.It uses ctypes to wrap libmount, part of util-linux < reading and +manipulation of the filesystem table should take place in a with block to take +the lock:: from libmount import FilesystemTable with FilesystemTable() as +fstab: print fstab[0].targetA FilesystemTable acts like a list, so you can +slice and ... + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +python-libmount A library for reading and manipulating filesystem tables, such +as /etc/fstab.It uses ctypes to wrap libmount, part of util-linux < reading and +manipulation of the filesystem table should take place in a with block to take +the lock:: from libmount import FilesystemTable with FilesystemTable() as +fstab: print fstab[0].targetA FilesystemTable acts like a list, so you can +slice and ... + + +%prep +%autosetup -n %{name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Mon Dec 27 2021 Lv Genggeng - 0.9-1 +- Package init +