##// END OF EJS Templates
hgfixes: add a fixer to convert plain strings to bytestrings...
hgfixes: add a fixer to convert plain strings to bytestrings This patch implements a 2to3 fixer that converts all plain strings in a python source file to byte strings syntax. Example: foo = 'Normal string' would become foo = b'Normal string' The motivation behind this fixer can be found in http://selenic.com/pipermail/mercurial-devel/2010-June/022363.html or, in other words: the current hg source assumes that _most_ strings are "meant" to be byte sequences, so it makes sense to make the convertion implemented by this patch. As mentioned above, not all mercurial modules want to use strings as bytes, examples include i18n (which uses unicode), and demandimport (in py3k, module names are normal strings, thus unicode, and there's no need for a convertion). Therefore, these modules are blacklisted in the fixer. There are also a few functions that can take only unicode arguments, thus the convertion shouldn't be done for those.

File last commit:

r11512:488a80c8 stable
r11747:40d56338 default
Show More
mercurial.spec
85 lines | 2.8 KiB | text/x-rpm-spec | RPMSpecLexer
mpm@selenic.com
Add an RPM spec file...
r459 Summary: Mercurial -- a distributed SCM
Name: mercurial
Matt Mackall
Remove hard-coded version numbers and release notes from packaging
r3863 Version: snapshot
Thomas Arendsen Hein
New version/release in mercurial.spec, patchbomb is now in hgext.
r1891 Release: 0
Matt Mackall
Update license to GPLv2+
r10263 License: GPLv2+
mpm@selenic.com
Add an RPM spec file...
r459 Group: Development/Tools
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 URL: http://mercurial.selenic.com/
Source0: http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz
Mads Kiilerich
Fix rpmlint warnings...
r7424 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
mpm@selenic.com
Add an RPM spec file...
r459
julian@lava.net
mercurial.spec: add BuildRequires...
r4751 # From the README:
#
# Note: some distributions fails to include bits of distutils by
# default, you'll need python-dev to install. You'll also need a C
# compiler and a 3-way merge tool like merge, tkdiff, or kdiff3.
#
# python-devel provides an adequate python-dev. The merge tool is a
# run-time dependency.
#
Julian Cowley
mercurial.spec: rename docutils to python-docutils in BuildRequires...
r11512 BuildRequires: python >= 2.4, python-devel, make, gcc, python-docutils >= 0.5
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 Provides: hg = %{version}-%{release}
Mads Kiilerich
mercurial.spec: Alignment with AIX spec by Jim Hague...
r10255 Requires: python >= 2.4
# The hgk extension uses the wish tcl interpreter, but we don't enforce it
#Requires: tk
julian@lava.net
mercurial.spec: add BuildRequires...
r4751
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 %define emacs_lispdir %{_datadir}/emacs/site-lisp
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563
mpm@selenic.com
Add an RPM spec file...
r459 %description
Mercurial is a fast, lightweight source control management system designed
for efficient handling of very large distributed projects.
%prep
Florian La Roche
Clean up RPM spec file
r1273 %setup -q
mpm@selenic.com
Add an RPM spec file...
r459
%build
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753 make all
mpm@selenic.com
Add an RPM spec file...
r459
%install
Mads Kiilerich
Fix rpmlint warnings...
r7424 rm -rf $RPM_BUILD_ROOT
Mads Kiilerich
contrib/mercurial.spec: Use DESTDIR variable and 'make install'
r11062 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 install contrib/hgk $RPM_BUILD_ROOT%{_bindir}
install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}
bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
mkdir -p $bash_completion_dir
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752
zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
mkdir -p $zsh_completion_dir
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
install contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}
Mads Kiilerich
mercurial.spec: Alignment with AIX spec by Jim Hague...
r10255 install contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
mpm@selenic.com
Add an RPM spec file...
r459
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %clean
rm -rf $RPM_BUILD_ROOT
mpm@selenic.com
Add an RPM spec file...
r459
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %files
%defattr(-,root,root,-)
Greg Lindahl
mercurial.spec: remove reference to doc/ja
r10664 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
Mads Kiilerich
mercurial.spec: Alignment with AIX spec by Jim Hague...
r10255 %doc %attr(644,root,root) %{_mandir}/man?/hg*
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 %{_sysconfdir}/bash_completion.d/mercurial.sh
%{_datadir}/zsh/site-functions/_mercurial
%{_datadir}/emacs/site-lisp/mercurial.el
Mads Kiilerich
mercurial.spec: Alignment with AIX spec by Jim Hague...
r10255 %{_datadir}/emacs/site-lisp/mq.el
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 %{_bindir}/hg
%{_bindir}/hgk
%{_bindir}/hg-ssh
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 %dir %{_sysconfdir}/bash_completion.d/
%dir %{_datadir}/zsh/site-functions/
%dir %{_sysconfdir}/mercurial
%dir %{_sysconfdir}/mercurial/hgrc.d
%config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
Mads Kiilerich
contrib/buildrpm: Support python 2.4 and 2.6
r8867 %if "%{?pythonver}" != "2.4"
%{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
%endif
Mads Kiilerich
Make RPM spec in contrib more aligned with the one from Fedora...
r8942 %{_libdir}/python%{pythonver}/site-packages/%{name}
%{_libdir}/python%{pythonver}/site-packages/hgext