1 |
%define name monotone |
2 |
%define version 1.0 |
3 |
%define release %mkrel 6 |
4 |
%define summary A distributed version control tool |
5 |
|
6 |
|
7 |
Summary: %{summary} |
8 |
Name: %{name} |
9 |
Version: %{version} |
10 |
Release: %{release} |
11 |
License: GPLv2 |
12 |
Group: Development/Other |
13 |
Source: http://monotone.ca/downloads/%{version}/%{name}-%{version}.tar.bz2 |
14 |
Url: http://monotone.ca |
15 |
# Patches from upstream |
16 |
Patch0: monotone-1.0-fix-fprint.patch |
17 |
Patch1: monotone-1.0-fix-rcs-file-function-naming.patch |
18 |
Patch2: monotone-1.0-fix-xdelta-test.patch |
19 |
Patch3: monotone-1.0-pcre.patch |
20 |
Patch4: monotone-1.0-mga-boost-1.53.patch |
21 |
BuildRequires: boost-devel |
22 |
BuildRequires: zlib-devel |
23 |
BuildRequires: texinfo |
24 |
BuildRequires: botan-devel |
25 |
BuildRequires: pcre-devel |
26 |
BuildRequires: sqlite3-devel |
27 |
BuildRequires: lua5.1-devel |
28 |
BuildRequires: libidn-devel |
29 |
|
30 |
%description |
31 |
monotone is a free, distributed version control system. it provides |
32 |
fully disconnected operation, manages complete tree versions, keeps |
33 |
its state in a local transactional database, supports overlapping |
34 |
branches and extensible metadata, exchanges work over plain network |
35 |
protocols, performs history-sensitive merging, and delegates trust |
36 |
functions to client-side RSA certificates. |
37 |
|
38 |
%prep |
39 |
%setup -q |
40 |
%apply_patches |
41 |
|
42 |
%build |
43 |
%configure2_5x |
44 |
%make |
45 |
make html |
46 |
|
47 |
%check |
48 |
# Remove a test which fails (to investigate with upstream) syntax_errors_in_.mtn-ignore |
49 |
rm -rf test/func/syntax_errors_in_.mtn-ignore |
50 |
# Remove a test which fails due to patch change (upstream issue 173) |
51 |
# https://code.monotone.ca/p/monotone/issues/173/ |
52 |
rm -rf test/func/diff_patch_drop/ |
53 |
make check |
54 |
|
55 |
%install |
56 |
%makeinstall |
57 |
%__rm -fr %{buildroot}%{_docdir}/%{name} |
58 |
|
59 |
%find_lang %{name} |
60 |
|
61 |
|
62 |
%files -f %{name}.lang |
63 |
%{_bindir}/mtn* |
64 |
%dir %{_datadir}/%{name} |
65 |
%{_datadir}/%{name}/hooks |
66 |
%{_datadir}/%{name}/scripts |
67 |
%{_sysconfdir}/bash_completion.d/* |
68 |
%{_infodir}/%{name}* |
69 |
%{_mandir}/man1/* |
70 |
%doc AUTHORS COPYING NEWS README UPGRADE doc/monotone.html contrib |