f85694
%global srcname borgbackup
f85694
f85694
Name:           %{srcname}
760460
Version:        1.0.10
962b74
Release:        1%{?dist}
11d629
Summary:        A deduplicating backup program with compression and authenticated encryption
f85694
f85694
License:        BSD
f85694
URL:            https://borgbackup.readthedocs.org
86b672
Source0:        https://files.pythonhosted.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz
f85694
86b672
Patch0:         0001-utf8-to-unicode-string-literal.patch
d8c34b
f85694
# build
f85694
BuildRequires:  python%{python3_pkgversion}-devel
f85694
BuildRequires:  python%{python3_pkgversion}-setuptools
f85694
BuildRequires:  python%{python3_pkgversion}-setuptools_scm
f85694
BuildRequires:  python%{python3_pkgversion}-Cython
f85694
BuildRequires:  python%{python3_pkgversion}-llfuse
f85694
f85694
# test
f85694
BuildRequires:  python%{python3_pkgversion}-pytest
11d629
BuildRequires:  python%{python3_pkgversion}-msgpack >= 0.4.6
f85694
f85694
# docs
d8c34b
%if 0%{?rhel}
d8c34b
# pyton3-sphinx packages are not available in epel
d8c34b
# so we use the old python2
d8c34b
BuildRequires:  python-sphinx
d8c34b
BuildRequires:  python-sphinx_rtd_theme
d8c34b
%else
f85694
BuildRequires:  python%{python3_pkgversion}-sphinx
f85694
BuildRequires:  python%{python3_pkgversion}-sphinx_rtd_theme
d8c34b
%endif
f85694
f85694
# no python deps
f85694
BuildRequires:  fuse
7b9bec
BuildRequires:  openssl-devel >= 1.0.0
f85694
BuildRequires:  lz4-devel
f85694
BuildRequires:  fuse-devel
f85694
BuildRequires:  libacl-devel
f85694
b28cac
Requires:       python%{python3_pkgversion}-setuptools
11d629
Requires:       python%{python3_pkgversion}-msgpack >= 0.4.6
7b9bec
Requires:       python%{python3_pkgversion}-llfuse
7b9bec
f85694
%description
f85694
BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it
f85694
supports compression and authenticated encryption.
f85694
f85694
%prep
d8c34b
%setup -n %{srcname}-%{version}
f85694
rm -rf %{srcname}.egg-info
f85694
2c5da3
%if 0%{?rhel}
2c5da3
# epel only has python2-sphinx and python2 has some problems
2c5da3
# with utf8 and it needs a patched docs until
2c5da3
# there is a python3 of sphinx
d8c34b
%patch0 -p1
2c5da3
%endif
d8c34b
f85694
%build
f85694
%py3_build
f85694
%{__python3} setup.py build_ext --inplace
f85694
f85694
# manpage
f85694
%{__python3} setup.py build_usage
f85694
%{__python3} setup.py build_api
d8c34b
d8c34b
d8c34b
%if 0%{?rhel}
d8c34b
make -C docs man
d8c34b
%else
f85694
make -C docs SPHINXBUILD=sphinx-build-3 man
d8c34b
%endif
f85694
f85694
%install
f85694
find . -name *.so -type f -exec chmod 0755 {} \;
f85694
f85694
%py3_install
11d629
install -D -m 0644 docs/_build/man/borg*.1* %{buildroot}%{_mandir}/man1/borg.1
f85694
f85694
%check
86b672
PYTHONPATH=$(pwd) py.test-3 --pyargs borg.testsuite -vk "not test_non_ascii_acl and not test_fuse and not benchmark"
f85694
f85694
%files 
f85694
%license LICENSE
f85694
%doc README.rst PKG-INFO AUTHORS
f85694
%doc docs/changes.rst
f85694
%{_mandir}/man1/*
f85694
f85694
%{python3_sitearch}/*
f85694
%{_bindir}/borg
f85694
f85694
f85694
%changelog
760460
* Mon Feb 13 2017 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.10-1
760460
- upstream version 1.0.10 (BZ#1421660)
760460
962b74
* Sun Dec 25 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.9-1
962b74
- upstream version 1.0.9 (BZ#1406277)
962b74
- fix manifest spoofing vulnerability - see docs for info
962b74
bd0d68
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.8-3
bd0d68
- Rebuild for Python 3.6
bd0d68
c3831b
* Mon Oct 31 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.8-2
52430a
- upstream version 1.0.8 (BZ#1389986)
52430a
c7493d
* Sun Aug 21 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.7-1
c7493d
- security fix with borg serve and restrict-to-path (BZ#1354371)
c7493d
e0be42
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
e0be42
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e0be42
86b672
* Wed Jul 13 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.6-1
86b672
- upstream version 1.0.6 (BZ#1354371)
86b672
- update source url (now pointing to files.pythonhosted.org)
86b672
- testsuite on XFS is patched upstream
86b672
42eaa6
* Fri Jul 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 1.0.3-2
42eaa6
- Fix testsuite on XFS (#1331820)
42eaa6
b28cac
* Sun May 22 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.3-1
b28cac
- Added requires for setuptools (BZ#1335325)
b28cac
- upstream version 1.0.3
b28cac
b28cac
* Thu Apr 28 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.2-2
b28cac
- rebuilt
b28cac
b28cac
* Thu Apr 28 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.2-2
b28cac
- Missing dependency python-setuptools
b28cac
2c5da3
* Sun Apr 17 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.2-1
d8c34b
- added epel7 specific parts
d8c34b
- make manpage generation work with epel7
95586c
- upstream version 1.0.2
d8c34b
11d629
* Sat Apr 16 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.1-2
11d629
- simplified specfile
11d629
- removed unneeded dependencies: python3-mock, python3-pytest-cov
11d629
b09601
* Sun Apr 10 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.1-1
b09601
- Upstream version 1.0.1. see changelog
b09601
7b9bec
* Thu Apr 07 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.0-2
7b9bec
- Added requires for python3-llfuse (#1324685)
7b9bec
- Added minversion for openssl
7b9bec
f85694
* Mon Apr 04 2016 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.0.0-1
f85694
- Upstream version 1.0.0
f85694
- Rewrote build requirements for EPEL7
f85694
f85694
* Thu Dec 17 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.29.0-3
f85694
- Specified correct project URL
f85694
- Added Buildrequires python3-sphinx_rtd_theme for f23
f85694
f85694
* Thu Dec 17 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.29.0-2
f85694
- Cleanup Spec
f85694
- Rename package to borgbackup
f85694
 
f85694
* Mon Dec 14 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.29.0-1
f85694
- New Upstream Version
f85694
- Added manpage from Upstream
f85694
- Testsuite now functional without benchmark
f85694
f85694
* Sat Dec 05 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-6
f85694
- Added correct testsuite to check
f85694
- Removed unnessesary statements
f85694
f85694
* Fri Dec 04 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-5
f85694
- Renamed Specfile to python3 only and remove pre-built egg-info
f85694
f85694
* Wed Dec 02 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-4
f85694
- Removed double package statement and sum macro
f85694
f85694
* Tue Dec 01 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-3
f85694
- Added dependency python3-msgpack to buildrequires
f85694
f85694
* Tue Dec 01 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-2
f85694
- Added dependency python3-msgpack
f85694
f85694
* Tue Dec 01 2015 Benjamin Pereto <benjamin@sandchaschte.ch> - 0.28.2-1
f85694
- Initial Packaging for the BorgBackup Project
f85694