[tudu] Initial import (#657040).
sparks
sparks at fedoraproject.org
Mon Nov 29 18:00:40 UTC 2010
commit 11ef9b4c69822bf5913998d717e594d25b0e61c7
Author: Eric H Christensen <eric at christensenplace.us>
Date: Mon Nov 29 13:00:20 2010 -0500
Initial import (#657040).
.gitignore | 1 +
Makefile-tudu.patch | 13 +++++++++++
Makefile-tudu2.patch | 13 +++++++++++
sources | 1 +
tudu.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5376baf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tudu-0.7.tar.gz
diff --git a/Makefile-tudu.patch b/Makefile-tudu.patch
new file mode 100644
index 0000000..6f94cd4
--- /dev/null
+++ b/Makefile-tudu.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 260c8f1..5267ecc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+-DESTDIR=/usr/local
++DESTDIR=/usr
+ BIN_DIR=$(DESTDIR)/bin
+-ETC_DIR=$(DESTDIR)/etc
++ETC_DIR=/etc
+ SHARE_DIR=$(DESTDIR)/share/tudu
+ MAN_DIR=$(DESTDIR)/share/man
+
diff --git a/Makefile-tudu2.patch b/Makefile-tudu2.patch
new file mode 100644
index 0000000..5a38111
--- /dev/null
+++ b/Makefile-tudu2.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 4a139fc..504854c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@ PROG=tudu
+ SRCS=tudu.cc data.cc editor.cc interface.cc window.cc text.cc parser.cc
+ SRCS+= config.cc date.cc screen.cc sched.cc cmd.cc
+ CXX=g++
+-CFLAGS=-Wall -O2 -DSHARE_DIR=\"$(SHARE_DIR)\" -DETC_DIR=\"$(ETC_DIR)\"
++CFLAGS+= -DSHARE_DIR=\"$(SHARE_DIR)\" -DETC_DIR=\"$(ETC_DIR)\"
+
+ OBJS=$(SRCS:.cc=.o)
+
diff --git a/sources b/sources
index e69de29..c83f6b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+30c2a568ce9e0e5a0fe30746caa3c290 tudu-0.7.tar.gz
diff --git a/tudu.spec b/tudu.spec
new file mode 100644
index 0000000..bee6ba7
--- /dev/null
+++ b/tudu.spec
@@ -0,0 +1,57 @@
+Name: tudu
+Version: 0.7
+Release: 2%{?dist}
+Summary: A simple, command line interface to do list application
+
+Group: Applications/Productivity
+License: GPLv3
+URL: http://cauterized.net/~meskio/tudu/
+Source0: http://cauterized.net/~meskio/tudu/tudu-0.7.tar.gz
+Patch0: Makefile-tudu.patch
+Patch1: Makefile-tudu2.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gcc-c++
+BuildRequires: ncurses-devel
+
+%description
+A command line interface to manage hierarchical to dos. Each task has a title, a
+long text description, a deadline (tudu warns you when the date is close), and
+a scheduled date. There are categories and priorities.
+
+%prep
+%setup -q
+%patch0 -p1
+pushd src
+%patch1 -p1
+sed -i -e "1 i \
+CFLAGS=%{optflags}
+" Makefile
+popd
+
+%build
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT BIN_DIR=$RPM_BUILD_ROOT%{_bindir} SHARE_DIR=$RPM_BUILD_ROOT/usr/share/tudu MAN_DIR=$RPM_BUILD_ROOT/usr/share/man ETC_DIR=$RPM_BUILD_ROOT/etc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING CONTRIBUTORS ChangeLog AUTHORS todo.xml
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}*
+%{_datadir}/%{name}
+%{_sysconfdir}/*
+%config(noreplace) /etc/tudurc
+
+%changelog
+* Fri Nov 26 2010 Eric "Sparks" Christensen <sparks at fedoraproject.org> - 0.7-2
+- Added two patches to fix problems in the Makefile regarding the debugging RPM.
+* Tue Nov 23 2010 Eric "Sparks" Christensen <sparks at fedoraproject.org> - 0.7-1
+- Initial RPM build.
More information about the scm-commits
mailing list