# TODO # split the tools from main package ? # split the doc ? %define url_ver %(echo %{version}|cut -d. -f1,2) # we don't want to provide private python extension libs %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so %global __provides_exclude perl\\( Name: bzr Epoch: 0 Version: 2.7.0 Release: %mkrel 1 Summary: Next-generation distributed version control Group: Development/Tools License: GPLv2+ URL: http://www.bazaar-vcs.org/ Source0: https://launchpad.net/bzr/%{url_ver}/%{version}/+download/bzr-%{version}.tar.gz Source1: https://launchpad.net/bzr/%{url_ver}/%{version}/+download/bzr-%{version}.tar.gz.sig Source2: bzr-icon-64.png BuildRequires: python-devel BuildRequires: python-paramiko BuildRequires: zlib-devel # For building documents BuildRequires: python-sphinx BuildRequires: gettext BuildRequires: python-cython Requires: python-pycurl Requires: python-lzma %description Bazaar is a distributed revision control system. It allows team members to branch and merge upstream code very easily. Distributed revision control systems allow multiple people to have their own branch of a project, and merge code efficiently between them. This enables new contributors to immediately have access to the full tools that previously have been limited to just the committers to a project. %prep %setup -q sed -i '1{/#![[:space:]]*\/usr\/bin\/\(python\|env\)/d}' bzrlib/_patiencediff_py.py sed -i '1{/#![[:space:]]*\/usr\/bin\/\(python\|env\)/d}' bzrlib/weave.py # Remove Cython generated .c files find . -name '*_pyx.c' -exec rm \{\} \; %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build # Build documents make docs-sphinx %install %{__python} setup.py install --skip-build --install-data %{_datadir} --root $RPM_BUILD_ROOT chmod -R a+rX contrib chmod 0644 contrib/debian/init.d chmod 0644 contrib/bzr_ssh_path_limiter chmod 0644 contrib/bzr_access chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/bzrlib/*.so install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ install -m 0644 contrib/bash/bzr $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ rm contrib/bash/bzr # This is included in %doc, remove redundancy here rm -rf $RPM_BUILD_ROOT%{python_sitearch}/bzrlib/doc/ # Use independently packaged python-elementtree instead rm -rf $RPM_BUILD_ROOT%{python_sitearch}/bzrlib/util/elementtree/ # Install documents install -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/pdf cp -pr NEWS README TODO COPYING.txt contrib/ $RPM_BUILD_ROOT/%{_docdir}/%{name}/ cd doc for dir in *; do if [ -d $dir/_build/html ]; then cp -R $dir/_build/html $RPM_BUILD_ROOT%{_docdir}/%{name}/$dir rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/$dir/.buildinfo rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/$dir/_static/$dir/Makefile find $RPM_BUILD_ROOT%{_docdir}/%{name}/$dir -name '*.pdf' | while read pdf; do ln $pdf $RPM_BUILD_ROOT%{_docdir}/%{name}/pdf/ done fi done cd .. install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/bzr.png %find_lang %{name} %files -f %{name}.lang %doc %{_docdir}/%{name}/* %{_bindir}/bzr %{_datadir}/pixmaps/bzr.png %{python_sitearch}/bzrlib/ %{python_sitearch}/*egg-info %{_mandir}/man1/* %config(noreplace) %{_sysconfdir}/bash_completion.d/bzr %changelog * Fri Mar 25 2016 shlomif <shlomif> 0:2.7.0-1.mga6 + Revision: 995405 - New version 2.7.0 * Mon Feb 01 2016 umeabot <umeabot> 0:2.6.0-12.mga6 + Revision: 930221 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 0:2.6.0-11.mga5 + Revision: 747961 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 0:2.6.0-10.mga5 + Revision: 725989 - rebuild for missing pythoneggs deps * Thu Sep 18 2014 umeabot <umeabot> 0:2.6.0-9.mga5 + Revision: 693545 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 0:2.6.0-8.mga5 + Revision: 678265 - Mageia 5 Mass Rebuild + tv <tv> - use %%global for req/prov exclude - autoconvert to new prov/req excludes * Fri Jun 20 2014 wally <wally> 0:2.6.0-7.mga5 + Revision: 638188 - require python-lzma for XZ compressed exports * Sat May 31 2014 pterjan <pterjan> 0:2.6.0-6.mga5 + Revision: 628121 - Rebuild for new Python * Sat Jan 18 2014 philippem <philippem> 0:2.6.0-5.mga4 + Revision: 566804 - fix mga#12333 , apply correct patch for cve2013-2099 * Sun Dec 01 2013 philippem <philippem> 0:2.6.0-4.mga4 + Revision: 554510 - change-match_hostname-to-follow-RFC-6125 (mga#11785) * Tue Oct 22 2013 umeabot <umeabot> 0:2.6.0-3.1.mga4 + Revision: 542482 - Mageia 4 Mass Rebuild * Mon Oct 14 2013 pterjan <pterjan> 0:2.6.0-2.1.mga4 + Revision: 497669 - Rebuild to add different pythonegg provides for python 2 and 3 * Fri Aug 02 2013 dams <dams> 0:2.6.0-1.1.mga4 + Revision: 462547 - new version 2.6.0 - remove merged patches * Sat Jun 08 2013 philippem <philippem> 0:2.5.1-3.1.mga4 + Revision: 440529 - fix CVE-2013-2099 (ssl.match_hostname DOS) * Fri Jan 11 2013 umeabot <umeabot> 0:2.5.1-3.mga3 + Revision: 347273 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Oct 03 2012 malo <malo> 0:2.5.1-2.mga3 + Revision: 302703 - update RPM group * Wed May 30 2012 kharec <kharec> 0:2.5.1-1.mga3 + Revision: 250062 - new version 2.5.1 * Wed Nov 02 2011 kharec <kharec> 0:2.4.2-1.mga2 + Revision: 161599 - New version, bugfix release. - new version * Sat Apr 16 2011 misc <misc> 0:2.3.1-1.mga1 + Revision: 86163 - use more standard macros - upgrade to 2.3.1 - remove patch, already applied upstream * Tue Feb 01 2011 dmorgan <dmorgan> 0:2.2.3-1.mga1 + Revision: 45785 - imported package bzr