File twister.spec of Package twister

#
# spec file for package twister
#
# Copyright (c) 2013 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/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines


Name:           twister
Version:        0.9.34
Release:        0
Summary:        Peer-to-peer microblogging client
License:        MIT
Group:          Productivity/Networking/Other
Url:            http://twister.net.co
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
%if 0%{?suse_version} >= 1330
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libboost_chrono-devel
BuildRequires:  libboost_locale-devel
BuildRequires:  libboost_regex-devel
%else
BuildRequires:  boost-devel
%endif
BuildRequires:  gcc-c++
%if 0%{?suse_version}
BuildRequires:  db-devel
%else
BuildRequires:  libdb-cxx-devel
%endif
BuildRequires:  openssl-devel
%if 0%{?suse_version}
Requires:       python-tk
%else
Requires:       tkinter
%endif
Requires:       twister-html

%description
twister is the fully decentralized P2P microblogging platform 
leveraging from the free software implementations of Bitcoin 
and BitTorrent protocols.


%prep
%setup -q

%build
./autotool.sh
%configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}

%post
update-desktop-database &> /dev/null ||:

%postun
update-desktop-database &> /dev/null ||:

%files
%defattr(-,root,root)
%doc README.md TODO.md INSTALL CONTRIBUTING.md
%license COPYING
%{_bindir}/*
%{_datadir}/applications/twister*
%{_datadir}/pixmaps/twister*
%{_datadir}/doc/twister

%changelog