File libcolumbus.spec of Package libcolumbus
#
# spec file for package libcolumbus
#
# Copyright (c) 2015 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 sover 1
%define _version 1.1.0+15.10.20150806
Name: libcolumbus
Version: 1.1.0+bzr20150806
Release: 0
Summary: A small, fast, error tolerant matcher
License: LGPL-3.0
Group: System/Libraries
Url: https://launchpad.net/libcolumbus
Source: http://archive.ubuntu.com/ubuntu/pool/main/libc/%{name}/%{name}_%{_version}.orig.tar.gz
Source1: baselibs.conf
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(icu-uc)
%description
libcolumbus is a small, easily embeddable library that provides
error tolerant matching and is especially suited for online queries.
%package -n %{name}%{sover}
Summary: A small, fast, error tolerant matcher
Group: System/Libraries
Requires: %{name}-data >= %{version}
%description -n %{name}%{sover}
libcolumbus is a small, easily embeddable library that provides
error tolerant matching and is especially suited for online queries.
%package data
Summary: Common data for a error tolerant matching engine
Group: System/Libraries
%description data
libcolumbus is a small, easily embeddable library that provides
error tolerant matching and is especially suited for online queries.
%package devel
Summary: Development headers for libcolumbus
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
%description devel
libcolumbus is a small, easily embeddable library that provides
error tolerant matching and is especially suited for online queries.
This package provides development headers for libcolumbus.
%prep
%setup -q -n %{name}-%{_version}
%build
%cmake \
-Denable_tests=OFF
make %{?_smp_mflags}
%install
%cmake_install
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%defattr(-,root,root)
%doc COPYING readme.txt
%{_libdir}/%{name}.so.%{sover}*
%files data
%defattr(-,root,root)
%{_datadir}/columbus%{sover}/
%files devel
%defattr(-,root,root)
%{_includedir}/columbus%{sover}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog