-
Notifications
You must be signed in to change notification settings - Fork 0
/
tdl.spec
41 lines (34 loc) · 1 KB
/
tdl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Summary: A to-do list manager
Name: tdl
Version: 1.6-pre1
Release: 1
Copyright: GPL
Source: tdl-%{version}.tar.gz
Group: Applications/Utilities
Packager: Richard P. Curnow <[email protected]>
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
Requires: readline
%description
tdl is a console to-do list manager. You can run its subcommands direct from
the command line, or enter an interactive mode which uses the readline library.
%prep
%setup -q
%build
configure
make %{?_smp_mflags} CC=gcc CFLAGS=-O2 prefix=%{_prefix}
make %{?_smp_mflags} tdl.txt prefix=%{_prefix}
make %{?_smp_mflags} tdl.info prefix=%{_prefix}
make %{?_smp_mflags} tdl.html prefix=%{_prefix}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{buildroot}%{_bindir} mandir=%{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_infodir}
cp tdl.info* %{buildroot}/%{_infodir}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README tdl.txt tdl.html
%{_bindir}/tdl*
%{_mandir}/man[^3]/*
%{_infodir}/*