2dbd11
%global srcname pydf
2dbd11
c56a48
Summary:        Fully colorized df clone written in python
c56a48
Name:           pydf
2dbd11
Version:        12
ba0a81
Release:        2%{?dist}
c56a48
License:        Public Domain
c56a48
Group:          Applications/System
2dbd11
URL:            https://pypi.python.org/pypi/%{srcname}/%{version}
2dbd11
Source0:        http://kassiopeia.juls.savba.sk/~garabik/software/%{srcname}/%{name}_%{version}.tar.gz
c56a48
BuildArch:      noarch
2dbd11
BuildRequires:  python3-devel
c56a48
c56a48
%description
c56a48
pydf displays the amount of used and available space on your file systems,
c56a48
just like df, but in colors. The output format is completely customizable.
c56a48
c56a48
%prep
2dbd11
%autosetup -n %{srcname}-%{version}
2dbd11
2dbd11
# Change shebang in individual files
2dbd11
sed -i '1s=^#!\s*/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' pydf
c56a48
c56a48
%build
c56a48
c56a48
%install
2dbd11
mkdir -p %{buildroot}/%{_bindir}
2dbd11
mkdir -p %{buildroot}/%{_mandir}/man1
2dbd11
mkdir -p %{buildroot}/%{_sysconfdir}/man1
2dbd11
install -p -m 755 pydf %{buildroot}/%{_bindir}
2dbd11
install -p -m 644 pydf.1 %{buildroot}/%{_mandir}/man1
2dbd11
install -p -m 644 pydfrc %{buildroot}/%{_sysconfdir}
c56a48
c56a48
%files
2dbd11
%license COPYING
2dbd11
%doc README COPYING
2dbd11
%{_bindir}/pydf
2dbd11
%{_mandir}/man1/pydf.1*
c56a48
%config(noreplace) %{_sysconfdir}/pydfrc
c56a48
c56a48
%changelog
ba0a81
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12-2
ba0a81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ba0a81
2dbd11
* Wed Mar 15 2017 Artem Goncharov <artem.goncharov@gmail.com> 12-1
2dbd11
- Update to version 12
2dbd11
- Switch to Python3
2dbd11
b76c7e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-11
b76c7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b76c7e
5a9856
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9-10
5a9856
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5a9856
97fe1b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-9
97fe1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
97fe1b
1099ca
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-8
1099ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1099ca
410ad8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-7
410ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
410ad8
a43253
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-6
a43253
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a43253
ecc773
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-5
ecc773
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ecc773
35c6d1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-4
35c6d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
35c6d1
c56a48
c56a48
* Mon May 2 2011 Clint Savage <herlo@fedoraproject.org> 9-3
c56a48
- Removing define and properly adding other docs
c56a48
c56a48
* Sun May 1 2011 Clint Savage <herlo@fedoraproject.org> 9-2
c56a48
- Fixing minor packaging issues
c56a48
c56a48
* Fri Apr 29 2011 Clint Savage <herlo@fedoraproject.org> 9-1
c56a48
- Initial package build