File fossil.spec of Package fossil.7111
#
# spec file for package fossil
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define with_system_sqlite 0%{?suse_version} > 1320
Name: fossil
Version: 2.3
Release: 0
Summary: Distributed software configuration management
License: BSD-2-Clause
Group: Development/Tools/Version Control
Url: https://www.fossil-scm.org/
Source: https://www.fossil-scm.org/index.html/uv/%{name}-src-%{version}.tar.gz
Patch1: fossil-1.37-remove_date_time.patch
BuildRequires: fuse-devel
BuildRequires: gcc
BuildRequires: tcl
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{with_system_sqlite}
BuildRequires: sqlite3-devel >= 3.8.7
%endif
BuildRequires: openssl-devel
%description
Fossil is a distributed software configuration management system with
these features:
* integrated bug tracking and wiki
* built-in web-interface
* uses HTTP, with proxy support
* everything is in a single executable and CGI-enabled
* sqlite-backed database
%prep
%setup -q
# test package version and source version match
grep -qFx %{version} VERSION
%patch1 -p1
%build
export CFLAGS="%{optflags}"
# FIXME: you should use the %%configure macro
./configure \
--prefix=%{_prefix} \
--with-openssl=auto \
%if 0%{with_system_sqlite}
--disable-internal-sqlite
%endif
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%doc COPYRIGHT-BSD2.txt
%{_bindir}/fossil
%changelog