File devtodo.spec of Package devtodo
#
# spec file for package devtodo (Version 0.1.20)
#
# Copyright 2008 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.
Summary: Command line application for maintaining lists of tasks
Name: devtodo
Version: 0.1.20
Release: 1
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-gcc4x.patch
Vendor: %{_vendor}
URL: http://swapoff.org/DevTodo
License: GPL
Group: Productivity/Other
BuildRequires: gcc-c++ ncurses-devel readline-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
Dev Todo is small command line application for
maintaining lists of tasks. It stores tasks
hierarchically, with each task given one of five
priority levels.
Data is stored as XML, so various XSLT templates
can be executed on the XML to convert it into
different formats (eg. HTML).
TODOs per directory:
Data is stored in a file named .todo in the
current directory. Depending on the setting of
backup in your configuration file, there may also
be files named .todo.1, .todo.2, etc.
%prep
%setup -q
%patch0 -p1
%build
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--disable-dependency-tracking \
--disable-static
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
%{__make} %{?jobs:-j%jobs}
%debug_package
%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/devtodo
%attr(0755,root,root)%{_bindir}/tda
%attr(0755,root,root)%{_bindir}/tdd
%attr(0755,root,root)%{_bindir}/tde
%attr(0755,root,root)%{_bindir}/tdl
%attr(0755,root,root)%{_bindir}/tdr
%attr(0755,root,root)%{_bindir}/todo
%config %attr(0644,root,root)%{_sysconfdir}/todorc
%{_mandir}/man1/devtodo.1.gz
%{_mandir}/man1/tda.1.gz
%{_mandir}/man1/tdd.1.gz
%{_mandir}/man1/tde.1.gz
%{_mandir}/man1/tdl.1.gz
%{_mandir}/man1/tdr.1.gz
%{_mandir}/man1/todo.1.gz
%changelog
* Sat Jun 7 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.1.20
- Initial package.