File swac-get.spec of Package swac-get

#
# spec file for package swac-get
#
# Copyright (c) 2018 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/
#


Name:           swac-get
Version:        0.5.1
Release:        0
Summary:        Audio collections of words (SWAC) manager
License:        GPL-3.0
Group:          Productivity/Multimedia/Other
Url:            http://zmoo.fr/swac-tools
Source:         %{name}-%{version}.tar.gz
Patch1:         basic.cc.diff
Patch2:         posix.cc.diff
Patch3:         sqlite3++.cc.diff
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(sqlite3)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Swac-get is a simple command line program written in C++ which allows to
install audio collections of words (SWAC) in a SQLite3 database.
Audio collections can be imported from the hard drive or directly from the
Internet using the HTTP protocol.
Swac-get is designed to be used with swac-explore, a GTK+ interface which
allows to browse the created SQLite3 database.
An important set of free audio collections of words (SWAC) is available at:
http://swac-collections.org

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%configure
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
%{_bindir}/%{name}
%{_mandir}/man?/%{name}*%{ext_man}

%changelog
openSUSE Build Service is sponsored by