Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
mercurial.508
mercurial.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mercurial.spec of Package mercurial.508
# # spec file for package mercurial # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mercurial Version: 2.8.2 Release: 0 Summary: Scalable Distributed SCM License: GPL-2.0+ Group: Development/Tools/Version Control Url: http://mercurial.selenic.com/ Source: http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz Source1: cacerts.rc Source99: rpmlintrc Patch0: mercurial-hgk-path-fix.diff # PATCH-FIX_SLE mercurial-sle10-inotify-fixes.diff -- Patch1: mercurial-sle10-inotify-fixes.diff # PATCH-FIX-OPENSUSE mercurial-docutils-compat.diff -- Fix for new docutils options not available on 11.1 and older Patch2: mercurial-docutils-compat.diff # PATCH-FIX-OPENSUSE mercurial-locale-path-fix.patch saschpe@suse.de -- locales are found in /usr/share/locale Patch3: mercurial-locale-path-fix.patch # PATCH-FIX-OPENSUSE mercurial-2.6.3-ssl.diff lnussel@suse.de -- fallback to system default ca path Patch4: mercurial-2.8-ssl.diff # PATCH-FIX-UPSTREAM mercurial-CVE-2014-9462.patch tiwai@suse.de - CVE-2014-9462, bnc#923070 Patch5: mercurial-CVE-2014-9462.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-devel %if %suse_version < 1210 BuildRequires: docutils %else BuildRequires: python-docutils %endif BuildRequires: python-xml Requires: python-xml %if 0%{?sles_version} Requires: openssl-certs %else Requires: ca-certificates %endif Recommends: %{name}-lang Provides: hg = %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %if 0%{?with_tests} Source90: tests.blacklist BuildRequires: bzr BuildRequires: git BuildRequires: gpg BuildRequires: ncurses-devel BuildRequires: python-Pygments BuildRequires: python-openssl BuildRequires: subversion-python BuildRequires: unzip #BuildRequires: python-pyflakes %endif %description Mercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects. %lang_package %prep %setup -q %patch0 %patch1 -p1 %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %patch2 -p0 %endif %patch3 -p1 %if 0%{?suse_version} > 1230 %patch4 -p1 %endif %patch5 -p1 chmod 644 hgweb.cgi %build make all %install make install PREFIX="%{_prefix}" DESTDIR=%{buildroot} # Move locales to proper location mkdir -p %{buildroot}%{_datadir}/locale mv %{buildroot}%{python_sitearch}/mercurial/locale/* %{buildroot}%{_datadir}/locale %find_lang hg # Install stuff in contrib install -m0755 contrib/hgk %{buildroot}%{_bindir} install -m0755 contrib/convert-repo %{buildroot}%{_bindir} install -Dm0644 contrib/bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/mercurial.sh install -Dm0644 contrib/zsh_completion %{buildroot}%{_datadir}/zsh/site-functions/_mercurial mkdir -p %{buildroot}%{_datadir}/{x,}emacs/site-lisp install -m0644 contrib/*.el %{buildroot}%{_datadir}/emacs/site-lisp install -m0644 contrib/*.el %{buildroot}%{_datadir}/xemacs/site-lisp install -Dm0644 contrib/mergetools.hgrc %{buildroot}%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc %if 0%{?suse_version} >= 1130 && 0%{?suse_version} <= 1230 install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/mercurial/hgrc.d/cacerts.rc %endif %fdupes -s %{buildroot}%{_prefix} %if 0%{?with_tests} %check make tests TESTFLAGS="-v --blacklist=%{SOURCE90}" %endif %files lang -f hg.lang %files %defattr(-, root, root) %doc README CONTRIBUTORS COPYING hgweb.cgi contrib/sample.hgrc %{_bindir}/* %{_sysconfdir}/bash_completion.d/* %{_datadir}/zsh/ %dir %{_sysconfdir}/mercurial %dir %{_sysconfdir}/mercurial/hgrc.d %config %{_sysconfdir}/mercurial/hgrc.d/* %{_datadir}/emacs %{_datadir}/xemacs %{_mandir}/man1/hg.1* %{_mandir}/man5/hgignore.5* %{_mandir}/man5/hgrc.5* %{python_sitearch}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor