File monotone.spec of Package monotone
#
# spec file for package monotone (Version 0.99.1)
#
# Copyright (c) 2010 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/
#
Summary: Distributed version control system
Name: monotone
Version: 0.99.1
Release: 1
License: GPL
Group: Development/Tools/Version Control
Url: http://www.monotone.ca
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel >= 1.33.0 lua-devel >= 5.1 sqlite3-devel >= 3.3.8
BuildRequires: libbotan-devel >= 1.6.3 pcre-devel >= 7.4 texinfo zlib-devel
BuildRequires: gcc-c++ libidn-devel pkg-config
PreReq: %install_info_prereq
%description
monotone is a free, distributed version control system. It provides
fully disconnected operation, manages complete tree versions, keeps
its state in a local transactional database, supports overlapping
branches and extensible metadata, exchanges work over plain network
protocols, performs history-sensitive merging, and delegates trust
functions to client-side RSA certificates.
%prep
%setup -q
%build
%configure --htmldir=%{_docdir}
make %{_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%check
DISABLE_NETWORK_TESTS=1 make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
ln -s mtn $RPM_BUILD_ROOT/%{_bindir}/monotone
# FIXME: monotone ignores --docdir and --htmldir, so
# documentation does not go into %%_docdir as it should
mv $RPM_BUILD_ROOT/%{_datadir}/doc/monotone upstreamdocs
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README README.changesets UPGRADE upstreamdocs/*
%{_bindir}/mtn*
%{_bindir}/monotone
%{_infodir}/*.info*.gz
%{_mandir}/man1/mtn.1.gz
%changelog