diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 14:30:26 +0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 14:30:26 +0700 |
| commit | 1148350349b0fba1196a4e2c7b74035d8a536809 (patch) | |
| tree | 1195066209c3571e9e3a1b3ab4f00fce0a3c125f /admin | |
| parent | d3c726b16eef5a685717137df0adae4b3fb84ae4 (diff) | |
seivot & summain
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/seivot.spec | 53 | ||||
| -rw-r--r-- | admin/summain.spec | 64 |
2 files changed, 117 insertions, 0 deletions
diff --git a/admin/seivot.spec b/admin/seivot.spec new file mode 100644 index 0000000..494776f --- /dev/null +++ b/admin/seivot.spec @@ -0,0 +1,53 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: seivot +Version: 1.16 +Release: 1%{?dist} +Summary: Benchmarking tool for backup programs + +License: GPLv3+ +URL: http://liw.fi/%{name}/ +Source0: http://code.liw.fi/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz + +BuildArch: noarch +BuildRequires: python-cliapp +Requires: python-cliapp + +%description +Seivot is a program for benchmarking backup software. It was written +for developing Obnam, but it should be possible to adapt it to also +support other on-disk backup solutions, such as rsync or rdiff-backup. + + +%prep +%setup -q + + +%build +%{__python} setup.py build +# Generate manpages +make + + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} +# install manpages +%{__mkdir_p} %{buildroot}%{_mandir}/man1 +%{__cp} -pr seivot*.1 %{buildroot}%{_mandir}/man1/ + + +%check +# doesn't actually do anything at the moment +%{__python} setup.py check + + +%files +%doc COPYING NEWS README +%{_mandir}/man1/seivot*.1* +%{_bindir}/seivot* +%{python_sitelib}/* + + +%changelog +* Sun Jun 3 2012 Michel Salim <salimma@fedoraproject.org> - 1.16-1 +- Initial package diff --git a/admin/summain.spec b/admin/summain.spec new file mode 100644 index 0000000..a9dca9e --- /dev/null +++ b/admin/summain.spec @@ -0,0 +1,64 @@ +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +Name: summain +Version: 0.13 +Release: 1%{?dist} +Summary: File manifest generator + +# ask upstream to include license text +License: GPLv3+ +URL: http://liw.fi/%{name}/ +Source0: http://code.liw.fi/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz + +# build-time +BuildRequires: python-coverage-test-runner +BuildRequires: libattr-devel +BuildRequires: python-devel +# build- and run-time +BuildRequires: python-cliapp +Requires: python-cliapp + +# we don't want to provide private python extension libs +# http://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Arch-specific_extensions_to_scripting_languages +%{?filter_setup: +%filter_provides_in %{python_sitearch}/_summain.so +%filter_setup +} + +%description +Summain generates file manifests, which contain metadata about the +files, and a checksum of their content for regular files. The manifest +can be generated for a directory tree at different points in time and +compared (with diff) to see if something has changed. + + +%prep +%setup -q + + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +# Generate manpages +make summain.1 + + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} +# fix permission +chmod 755 %{buildroot}%{python_sitearch}/_summain.so + + +%check +%{__python} setup.py check + + +%files +%doc NEWS README +%{_mandir}/man1/summain.1* +%{_bindir}/summain +%{python_sitearch}/* + + +%changelog +* Sun Jun 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.13-1 +- Initial package |
