1 Star 0 Fork 14

nan/python-btrfs

forked from src-openEuler/python-btrfs
关闭
 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-btrfs.spec 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
sqfu 提交于 2024-12-02 10:22 +08:00 . update to 14.1
Name: python-btrfs
Version: 14.1
Release: 1
Summary: Python module to inspect btrfs filesystems
License: LGPLv3 and GPLv3
URL: https://github.com/knorrie/python-btrfs
Source0: https://github.com/knorrie/python-btrfs/archive/refs/tags/v14.1.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-sphinx
%description
The primary goal of this module is to be able to inspect the internals of an existing filesystem for educational purposes.
%package -n python3-btrfs
Summary: %{summary}
%{?python_provide:%python_provide python3-btrfs}
Suggests: %{name}-doc
%description -n python3-btrfs
The primary goal of this module is to be able to inspect the internals of an existing filesystem for educational purposes.
%package help
Summary: %{summary}
%description help
The primary goal of this module is to be able to inspect the internals of an\
existing filesystem for educational purposes.\
The python module acts as a wrapper around the low level kernel calls and btrfs\
data structures, presenting them as python objects with interesting attributes\
and references to other objects.
%prep
%autosetup -p1
# Remove dangling symlink
rm -f examples/btrfs
# Don't pull additional dependencies in doc
find examples -type f -print0 | xargs -0 chmod 644
%build
%py3_build
pushd docs
%make_build html
%make_build text
find build -name .buildinfo -delete
popd
%install
%py3_install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0755 bin/btrfs-balance-least-used %{buildroot}%{_bindir}
install -m 0755 bin/btrfs-orphan-cleaner-progress %{buildroot}%{_bindir}
install -m 0755 bin/btrfs-space-calculator %{buildroot}%{_bindir}
install -m 0755 bin/btrfs-usage-report %{buildroot}%{_bindir}
install -m 0644 man/* %{buildroot}%{_mandir}/man1
%files -n python3-btrfs
%license COPYING.LESSER
%{python3_sitelib}/btrfs
%{python3_sitelib}/btrfs-%{version}-py*.egg-info
%{_bindir}/*
%{_mandir}/man1/*
%files help
%doc CHANGES README.md examples
%doc docs/build/html docs/build/text
%license COPYING.LESSER
%changelog
* Sun Dec 01 2024 sqfu <dev01203@linx-info.com> - 14.1-1
- Upgrade package to version 14.1
- Prevent a "SyntaxWarning: invalid escape sequence" from being displayed when using recent Python versions.
- Actually use long_description_content_type in setup.py
* Thu May 09 2024 zhangxianting <zhangxianting@uniontech.com> - 13-2
- fix: error in parameter of the function, make_field in sphinx 4 and above
* Wed Jun 30 2021 liliang <liliang@kylinos.cn> - 13-1
- Init project
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nan1024/python-btrfs.git
git@gitee.com:nan1024/python-btrfs.git
nan1024
python-btrfs
python-btrfs
master

搜索帮助