Name: timeit Version: 1.0.0 Release: 2%{?dist} Summary: Project time tracker License: GPLv2 URL: http://launchpad.net/timeit Source0: https://github.com/downloads/Hoglet/TimeIT/%{name}-%{version}.tar.gz Source1: %{name}.man BuildRequires: intltool BuildRequires: gtkmm24-devel BuildRequires: sqlite-devel BuildRequires: libXScrnSaver-devel BuildRequires: boost-devel BuildRequires: gettext BuildRequires: desktop-file-utils %description A time tracker that works without any interaction and messures time on several projects. %prep %setup -q cp %{SOURCE1} %{name}.1 %build %configure #Fix libX11 linker compile problem make %{?_smp_mflags} LDFLAGS=-lX11 %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %find_lang %{name} #Fix Desktop Icon sed -i 's|timeit.svg|timeit|' \ %{buildroot}/%{_datadir}/applications/%{name}.desktop desktop-file-install \ --dir=%{buildroot}/%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/%{name}.desktop #Remove "Zero length files" find %{buildroot} -size 0 -delete #Install MAN page install -Dm644 %{name}.1 \ %{buildroot}/%{_mandir}/man1/%{name}.1 %files -f %{name}.lang %docdir %{_datadir}/doc/timeit/* %doc %{_datadir}/doc/timeit/README %doc %{_datadir}/doc/timeit/ChangeLog %doc %{_datadir}/doc/timeit/INSTALL %doc %{_mandir}/man1/%{name}.1.gz %{_datadir}/doc/timeit/html/* %{_bindir}/timeit %{_datadir}/applications/timeit.desktop %{_datadir}/pixmaps/* %{_datadir}/timeit/* %changelog *Wed Jul 20 2011 Nathan Owe - 1.0.0-2 -Added man page. Author of the application created one after I submited it the request for a man page as a bug report. Currently it is waiting for next release of TimeIt. *Tue Jul 19 2011 Nathan Owe - 1.0.0-1 -Initial Release