Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
mercurial
mercurial.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mercurial.spec of Package mercurial
# # spec file for package mercurial # # Copyright (c) 2013 SUSE LINUX Products 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.4.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 # require rcs for 3-way "merge" command. Requires: rcs BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?fedora_version} || 0%{?suse_version} || 0%{?rhel_version} BuildRequires: docutils %else BuildRequires: python-docutils %endif %if 0%{?suse_version} BuildRequires: python-xml Requires: python-xml %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif %if 0%{?suse_version} > 1210 BuildRequires: python-roman %endif %if 0%{?suse_version} >= 1130 Requires: ca-certificates %endif %py_requires Recommends: %{name}-lang %endif Provides: hg = {version} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %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. %if 0%{?suse_version} > 1100 %lang_package %endif %prep %setup -q %patch0 %patch1 -p1 %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %patch2 -p0 %endif %patch3 -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} sed -i "1i #!/usr/bin/python" contrib/shrink-revlog.py # Add a she-bang line to executable script install -m0755 contrib/shrink-revlog.py %{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 install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/mercurial/hgrc.d/cacerts.rc %endif %if 0%{?suse_version} > 1020 %fdupes -s %{buildroot}%{_prefix} %endif %if 0%{?with_tests} %check make tests TESTFLAGS="-v --blacklist=%{SOURCE90}" %endif %clean rm -rf %{buildroot} %if 0%{?suse_version} > 1100 %files lang -f hg.lang %files %defattr(-, root, root) %else %files -f hg.lang %defattr(-, root, root) %endif %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