Files
rpms/centos/SPECS/pydf.spec

52 lines
1.3 KiB
RPMSpec
Raw Normal View History

Summary: Fully colorized df clone written in python
Name: pydf
Version: 12
Release: 01.tvd%{?dist}
License: Public Domain
Group: Applications/System
Source: https://pypi.python.org/packages/source/p/pydf/%{name}-%{version}.tar.gz
URL: https://pypi.python.org/pypi/pydf
2019-09-29 13:58:38 +02:00
%if 0%{?rhel} >= 8
Requires: python36
%else
Requires: python
%endif
BuildRequires: platform-python-devel
BuildArch: noarch
%description
pydf displays the amount of used and available space on your file systems,
just like df, but in colors. The output format is completely customizable.
%prep
%setup -q
2019-09-29 13:58:38 +02:00
pathfix.py -pni /usr/bin/python3 pydf
pathfix.py -pni /usr/bin/python3 pydfrc
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
install -p %{name} $RPM_BUILD_ROOT%{_bindir}
install -p %{name}rc $RPM_BUILD_ROOT%{_sysconfdir}
install -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 README
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.gz INSTALL COPYING
%attr(755,root,root) %{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_mandir}/man1/%{name}.1.gz
%changelog
* Fri Mar 25 2016 Daniel Steiner <elpito@bluewin.ch>
- Initial package for CentOS 7.