%global owner smizrahi
#python2_sitelib is declared as python_sitelib in EL6
%if 0%{?rhel} && 0%{?rhel} <= 6
%global python2_sitelib %{python_sitelib}
%endif
Name: ioprocess
Version: 0.12.0
Release: 2%{?dist}
Summary: Slave process to perform risky IO
Group: System Environment/Base
License: GPLv2+
URL: https://github.com/ficoos/ioprocess
Source0: https://%{owner}.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: glib2-devel
BuildRequires: yajl-devel
Requires: yajl
%description
Slave process to perform risky IO.
%prep
%setup -q %{name}-%{commit}
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%{_libexecdir}/ioprocess
%doc README.md COPYING AUTHORS
%package -n python-ioprocess
Summary: Python bindings for ioprocess
BuildArch: noarch
Requires: python
Requires: python-cpopen
Requires: %{name} = %{version}-%{release}
%description -n python-ioprocess
Python bindings for ioprocess
%files -n python-ioprocess
%{python2_sitelib}/ioprocess-*.egg-info
%{python2_sitelib}/ioprocess/
%changelog
* Wed Sep 3 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.12.0-1
- Fixed memory leak due to forgetting to clear the pending requests queue in
the python bindings
* Mon Aug 4 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.10.0-1
- Fixed unsef strerror usage
- Fixed cases logging lines get mangled
* Tue Jul 29 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.8.1-1
- Fixed unsafe use of strerror
- Fixed races in queue limiting
* Sun Jul 20 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.6.1-1
- Reduced logging even for debug level
- Added support for block sizes other than 512
- Added the --max-queued-requests argument
* Sun Jun 15 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.5.0-1
- Fixed missing error check in readfile()
- Added flags arg to fetch()
- Added st_blocks to stat()
* Thu Jun 05 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.4.1-1
- Fixed missing dependcy for python bindings
* Mon Jun 02 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.4-1
- Added touch command
- Changed truncate to include setting file mode and creating a file only when
one doesn't exist
* Sun Jan 05 2014 Saggi Mizrahi <smizrahi@redhat.com> 0.3-1
Inital RPM release