File tasksh.spec of Package tasksh
#
# spec file for package tasksh
#
# Copyright (c) 2015 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/
#
Name: tasksh
Version: 1.2.0
Release: 0
Summary: Interactive taskwarrior shell
License: MIT
Group: Productivity/Office/Organizers
Url: http://taskwarrior.org
Source0: http://www.taskwarrior.org/download/tasksh-%{version}.tar.gz
BuildRequires: cmake >= 2.8
BuildRequires: gcc-c++
BuildRequires: readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The shell for taskwarrior, old task shell command now as external project.
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
rm -f %{buildroot}/%{_datadir}/doc/%{name}/INSTALL
mkdir -p %{buildroot}%{_datadir}/doc/packages/
mv %{buildroot}/%{_datadir}/doc/%{name} \
%{buildroot}/%{_datadir}/doc/packages
%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/man/man1/%{name}*
%changelog