Accepting request 199705 from home:matejcik:branches:devel:languages:python

- fixed %fdupes creating dangling symlinks (bnc#835687)
- changed the %doc filelist to appease SLE

OBS-URL: https://build.opensuse.org/request/show/199705
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=15
This commit is contained in:
Todd R 2013-09-19 11:56:14 +00:00 committed by Git OBS Bridge
parent 5bc030d4cb
commit 8fce54cc48
2 changed files with 18 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 13 14:52:08 UTC 2013 - jmatejek@suse.com
- fixed %fdupes creating dangling symlinks (bnc#835687)
-------------------------------------------------------------------
Fri Apr 5 13:41:54 UTC 2013 - idonmez@suse.com

View File

@ -62,15 +62,23 @@ original M2Crypto homepage is at http://sandbox.rulemaker.net/ngps/m2/.
CFLAGS="%{optflags}" python setup.py build
%install
chmod 0644 demo/{https.howto/get_https,ssl/twistedsslclient,ssl/twistedsslserver,tinderbox/slave,x509/certdata2pem}.py # Fix executable bit for documentation:
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version} > 1010
%fdupes -s demo
%endif
# install demo files manually
# (otherwise we can't perform %%fdupes on them the right way)
#chmod 0644 demo/{https.howto/get_https,ssl/twistedsslclient,ssl/twistedsslserver,tinderbox/slave,x509/certdata2pem}.py
export DOCDIR=%{buildroot}%{_docdir}/%{name}
chmod -R -x+X demo
mkdir -p $DOCDIR
cp -r demo $DOCDIR
%fdupes $DOCDIR
install -m 644 CHANGES LICENCE README $DOCDIR
%files
%defattr(-,root,root)
%doc CHANGES LICENCE README demo
%doc %{_docdir}/%{name}
%{python_sitearch}/*
%changelog