2019-09-30 11:04:26 -04:00
|
|
|
Name: mercurial
|
2024-02-19 18:24:04 +08:00
|
|
|
Version: 6.6.1
|
2020-06-17 03:46:28 +00:00
|
|
|
Release: 1
|
2019-09-30 11:04:26 -04:00
|
|
|
Summary: Source control management tool
|
2023-02-07 09:56:54 +08:00
|
|
|
License: GPL-2.0-or-later
|
2019-09-30 11:04:26 -04:00
|
|
|
URL: http://www.selenic.com/mercurial/
|
|
|
|
|
Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
|
|
|
|
|
|
2020-06-17 03:46:28 +00:00
|
|
|
BuildRequires: gcc python3 python3-devel bash-completion emacs-nox emacs-el pkgconfig gettext python3-docutils
|
|
|
|
|
Requires: python3 emacs-filesystem tk
|
2019-09-30 11:04:26 -04:00
|
|
|
Provides: hg = %{version}-%{release} emacs-mercurial <= 3.4.1 emacs-mercurial-el <= 3.4.1
|
|
|
|
|
Provides: mercurial-hgk mercurial-chg
|
|
|
|
|
Obsoletes: emacs-mercurial <= 3.4.1 emacs-mercurial-el <= 3.4.1
|
|
|
|
|
Obsoletes: mercurial-hgk mercurial-chg
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mercurial is a free, distributed source control management tool.
|
|
|
|
|
It efficiently handles projects of any size and offers an easy and intuitive interface.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
#Build sections
|
|
|
|
|
%prep
|
2020-04-23 16:26:51 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:04:26 -04:00
|
|
|
|
2022-02-21 15:06:40 +08:00
|
|
|
sed -i 's|python|python3|' %{_builddir}/%{name}-%{version}/Makefile
|
2019-09-30 11:04:26 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
pushd contrib/chg
|
|
|
|
|
make
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
2020-06-17 03:46:28 +00:00
|
|
|
%{__python3} setup.py install -O1 --root %{buildroot} --prefix %{_prefix} --record=%{name}.files
|
2019-09-30 11:04:26 -04:00
|
|
|
make install-doc DESTDIR=%{buildroot} MANDIR=%{_mandir}
|
|
|
|
|
|
2020-06-17 03:46:28 +00:00
|
|
|
grep -v -e 'hgk.py*' -e %{python3_sitearch}/mercurial/ -e %{python3_sitearch}/hgext/ < %{name}.files > %{name}-base.files
|
2019-09-30 11:04:26 -04:00
|
|
|
grep 'hgk.py*' < %{name}.files > %{name}-hgk.files
|
|
|
|
|
|
|
|
|
|
install -D -m 755 contrib/hgk %{buildroot}%{_libexecdir}/mercurial/hgk
|
|
|
|
|
install -m 755 contrib/hg-ssh %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
bash_completion_dir=%{buildroot}$(pkg-config --variable=completionsdir bash-completion)
|
|
|
|
|
mkdir -p $bash_completion_dir
|
|
|
|
|
install -m 644 contrib/bash_completion $bash_completion_dir/hg
|
|
|
|
|
|
|
|
|
|
zsh_completion_dir=%{buildroot}%{_datadir}/zsh/site-functions
|
|
|
|
|
mkdir -p $zsh_completion_dir
|
|
|
|
|
install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_emacs_sitelispdir}/mercurial
|
|
|
|
|
|
|
|
|
|
pushd contrib
|
|
|
|
|
for file in mercurial.el mq.el; do
|
|
|
|
|
#emacs -batch -l mercurial.el --no-site-file -f batch-byte-compile $file
|
|
|
|
|
%{_emacs_bytecompile} $file
|
|
|
|
|
install -p -m 644 $file ${file}c %{buildroot}%{_emacs_sitelispdir}/mercurial
|
|
|
|
|
rm ${file}c
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd contrib/chg
|
|
|
|
|
make install DESTDIR=%{buildroot} PREFIX=%{_usr} MANDIR=%{_mandir}/man1
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/mercurial/hgrc.d
|
|
|
|
|
|
2020-01-09 15:21:12 +08:00
|
|
|
touch mercurial-site-start.el
|
|
|
|
|
mkdir -p %{buildroot}%{_emacs_sitestartdir} && install -m644 mercurial-site-start.el %{buildroot}%{_emacs_sitestartdir}
|
2019-09-30 11:04:26 -04:00
|
|
|
|
|
|
|
|
cat >hgk.rc <<EOF
|
|
|
|
|
[extensions]
|
|
|
|
|
# enable hgk extension ('hg help' shows 'view' as a command)
|
|
|
|
|
hgk=
|
|
|
|
|
|
|
|
|
|
[hgk]
|
|
|
|
|
path=%{_libexecdir}/mercurial/hgk
|
|
|
|
|
EOF
|
|
|
|
|
install -m 644 hgk.rc %{buildroot}/%{_sysconfdir}/mercurial/hgrc.d
|
|
|
|
|
|
|
|
|
|
cat > certs.rc <<EOF
|
|
|
|
|
# see: http://mercurial.selenic.com/wiki/CACertificates
|
|
|
|
|
[web]
|
|
|
|
|
cacerts = /etc/pki/tls/certs/ca-bundle.crt
|
|
|
|
|
EOF
|
|
|
|
|
install -m 644 certs.rc %{buildroot}/%{_sysconfdir}/mercurial/hgrc.d
|
|
|
|
|
|
2020-06-17 03:46:28 +00:00
|
|
|
mv %{buildroot}%{python3_sitearch}/mercurial/locale %{buildroot}%{_datadir}/locale
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
|
2019-09-30 11:04:26 -04:00
|
|
|
|
|
|
|
|
%find_lang hg
|
|
|
|
|
|
|
|
|
|
grep -v locale %{name}-base.files > %{name}-base-filtered.files
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files -f %{name}-base-filtered.files -f hg.lang
|
|
|
|
|
%doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi contrib/*.wsgi contrib/*.svg
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/certs.rc
|
|
|
|
|
%{_sysconfdir}/mercurial/hgrc.d/hgk.rc
|
|
|
|
|
%dir %{_sysconfdir}/mercurial
|
|
|
|
|
%dir %{_sysconfdir}/mercurial/hgrc.d
|
|
|
|
|
%{_bindir}/hg-ssh
|
|
|
|
|
%{_bindir}/chg
|
|
|
|
|
%dir %{_datadir}/zsh/
|
|
|
|
|
%{_datadir}/bash-completion/
|
|
|
|
|
%{_datadir}/zsh/site-functions/
|
|
|
|
|
%{_libexecdir}/mercurial/
|
2020-06-17 03:46:28 +00:00
|
|
|
%{python3_sitearch}/mercurial
|
|
|
|
|
%{python3_sitearch}/hgext
|
2019-09-30 11:04:26 -04:00
|
|
|
%{_emacs_sitelispdir}/mercurial
|
|
|
|
|
%{_emacs_sitestartdir}/*.el
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%attr(644,root,root)
|
|
|
|
|
%{_mandir}/man?/hg*.gz
|
|
|
|
|
%{_mandir}/man?/chg.*.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-19 18:24:04 +08:00
|
|
|
* Tue Feb 19 2024 maqi <maqi@uniontech.com> - 6.6.1-1
|
|
|
|
|
- update to 6.6.1
|
|
|
|
|
|
2023-07-12 15:20:17 +08:00
|
|
|
* Wed Jul 12 2023 dillon chen <dillon.chen@gmail.com> - 6.5-1
|
|
|
|
|
- update to 6.5
|
|
|
|
|
|
2023-02-07 09:56:54 +08:00
|
|
|
* Tue Feb 07 2023 wangjunqi <wangjunqi@kylinos.cn> - 6.3.2-1
|
|
|
|
|
- update to 6.3.2
|
|
|
|
|
|
2022-06-27 15:13:30 +08:00
|
|
|
* Mon Jun 27 2022 dillon chen <dillon.chen@gmail.com> - 6.1.3-1
|
|
|
|
|
- update to 6.1.3
|
|
|
|
|
|
2022-02-21 15:06:40 +08:00
|
|
|
* Mon Feb 21 2022 panxiaohe <panxh.life@foxmail.com> - 6.0.3-1
|
|
|
|
|
- Upgrade to 6.0.3
|
|
|
|
|
|
2021-01-23 14:38:18 +08:00
|
|
|
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 5.6.1-1
|
|
|
|
|
- Upgrade to 5.6.1
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2020 Shinwell Hu <huxinwei@huawei.com> - 5.4.1-1
|
2020-06-17 03:50:03 +00:00
|
|
|
- Upgrade to 5.4.1
|
|
|
|
|
|
2020-04-23 16:26:51 +08:00
|
|
|
* Thu Apr 23 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.1-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix the problems detected by oss-fuzz
|
|
|
|
|
|
2020-01-09 15:21:12 +08:00
|
|
|
* Thu Jan 9 2020 JeanLeo <liujianliu.liu@huawei.com> - 5.1-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update software package
|
|
|
|
|
|
2019-09-30 11:04:26 -04:00
|
|
|
* Wed Sep 04 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.1-1
|
|
|
|
|
- Package init
|