diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 14:29:44 +0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 14:29:44 +0700 |
| commit | d3c726b16eef5a685717137df0adae4b3fb84ae4 (patch) | |
| tree | ed3b478989f63d7d3978aa1abe2a757ed1398741 /admin | |
| parent | bcff82938a0f80858137aa9f84d1d4d9ac22bf36 (diff) | |
Fix _obnam.so's private provide and permission
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/obnam.spec | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/admin/obnam.spec b/admin/obnam.spec index ed71c3a..e8ef2ed 100644 --- a/admin/obnam.spec +++ b/admin/obnam.spec @@ -13,7 +13,7 @@ URL: http://liw.fi/obnam/ Source0: http://code.liw.fi/debian/pool/main/o/obnam/obnam_%{version}.orig.tar.gz # build-time -BuildRequires: genbackupdata +BuildRequires: genbackupdata BuildRequires: python-devel BuildRequires: libattr-devel # build- and run-time dependencies @@ -26,6 +26,13 @@ Requires: python-larch Requires: python-paramiko Requires: python-tracing +# 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}/obnamlib/_obnam.so +%filter_setup +} + %description Obnam is an easy, secure backup program. Backups can be stored on local hard disks, or online via the SSH SFTP protocol. The backup @@ -62,6 +69,8 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} +# fix permission +chmod 755 %{buildroot}%{python_sitearch}/obnamlib/_obnam.so %check |
