Summary: An X11 based personal finance manager
+Summary(pl): Program do zarz±dzania finansami osobistymi
Name: cbb
Version: 0.8.1
-Serial: 1
-Release: 3mdk
-Source0: cbb-0.8.1.tar.gz
+Epoch: 1
+Release: 5
License: GPL
-Group: Applications/Productivity
+Group: Applications
+Source0: http://cbb.sourceforge.net/down/%{name}-%{version}.tar.gz
+Source1: %{name}.1
+Source2: dialog4duplicate.1
+Patch0: %{name}-DESTDIR.patch
URL: http://cbb.sourceforge.net/
BuildArch: noarch
-#BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: tcl >= 7.4, tk >= 4.0, gnuplot
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
%description
CBB is a personal financial management application written in Tcl/Tk
to balance their checkbooks and to add their own reports, graphs, and
external modules without having to modify any of the CBB source.
+%description -l pl
+CBB jest programem zarzadzaj±cym finansami osobistymi napisanym w
+Tcl/Tk i Perlu (nie zawiera kompilowanego kodu) i u¿ywa prostego
+formatu plików z danymi. CBB ma prosty interfejs i daje siê ³atwo
+rozbudowywaæ bez modyfikacji kodu.
+
%prep
%setup -q
+%patch -p0
%build
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=%{_prefix} install
+%{__make} \
+ prefix=%{_prefix} \
+ WISH=/usr/bin/wish \
+ DESTDIR=$RPM_BUILD_ROOT \
+ install
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Announce Bugs COPYING FAQ README THANKS Todo Version
+%doc Announce Bugs FAQ README THANKS Todo Version
+%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/cbb
%attr(755,root,root) %{_bindir}/dialog4duplicate
-%{_libdir}/cbb
+%attr(755,root,root) %{_libdir}/cbb/*.pl
+%attr(755,root,root) %{_libdir}/cbb/*.tcl
+%{_libdir}/cbb/*.conf
+%{_libdir}/cbb/*.cat
+%{_libdir}/cbb/contrib
+%{_libdir}/cbb/docs
+%{_libdir}/cbb/graphs
+%{_libdir}/cbb/images
+%{_libdir}/cbb/languages
+%{_libdir}/cbb/reports