]> git.pld-linux.org Git - SPECS.git/blob - git-core-hg.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / git-core-hg.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # functional tests (require some setup before?)
4
5 Summary:        Git tools for working with Mercurial repositories
6 Summary(pl.UTF-8):      Narzędzia Gita do pracy z repozytoriami Mercuriala
7 Name:           git-core-hg
8 Version:        0.6
9 Release:        1
10 Epoch:          1
11 License:        GPL v2
12 Group:          Development/Tools
13 #Source0Download: https://github.com/felipec/git-remote-hg/tags
14 # TODO use:
15 #Source0:       https://github.com/felipec/git-remote-hg/archive/v%{version}/git-remote-hg-%{version}.tar.gz
16 Source0:        https://github.com/felipec/git-remote-hg/archive/v%{version}.tar.gz
17 # Source0-md5:  8a1acaba6d5f2acd453870b136695eba
18 URL:            https://github.com/felipec/git-remote-hg
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.680
21 BuildRequires:  ruby-asciidoctor
22 Requires:       git-core
23 Requires:       mercurial >= 1.8
24 %if %{with tests}
25 BuildRequires:  git-core
26 BuildRequires:  mercurial >= 1.8
27 %endif
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Git tools for working with Mercurial repositories.
33
34 %description -l pl.UTF-8
35 Narzędzia Gita do pracy z repozytoriami Mercuriala.
36
37 %define         gitcoredir      %{_libexecdir}/git-core
38
39 %prep
40 %setup -q -n git-remote-hg-%{version}
41
42 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' git-remote-hg
43
44 %build
45 %{__make} \
46         V=1
47
48 %if %{with tests}
49 %{__make} test
50 %endif
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{gitcoredir},%{_mandir}/man1}
55
56 cp -p git-remote-hg $RPM_BUILD_ROOT%{gitcoredir}
57 cp -p doc/git-remote-hg.1 $RPM_BUILD_ROOT%{_mandir}/man1
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README.asciidoc
65 %attr(755,root,root) %{gitcoredir}/git-remote-hg
66 %{_mandir}/man1/git-remote-hg.1*
This page took 1.133469 seconds and 3 git commands to generate.