From 672268c4cf32db45dcc76021118fed297030d3fa Mon Sep 17 00:00:00 2001 From: Eric H Christensen Date: Nov 29 2010 18:13:44 +0000 Subject: Initial import (#657040). --- 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 - 0.7-2 +- Added two patches to fix problems in the Makefile regarding the debugging RPM. +* Tue Nov 23 2010 Eric "Sparks" Christensen - 0.7-1 +- Initial RPM build.