%define name flyback %define version 0.4.0 %define release %mkrel 1 #%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" %define python_compile python -c "import compileall; compileall.compile_dir('.')" Summary: FlyBack - Apple's Time Machine for Linux Name: %{name} Version: %{version} Release: %{release} Source0: http://flyback.googlecode.com/files/%{name}_%{version}.tar.gz License: GPLv2+ Group: Archiving/Backup Url: http://code.google.com/p/flyback/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: pygtk2.0-libglade, pygtk2.0, python-sqlite2, gnome-python-gconf %description Apple's Time Machine is a great feature in their OS, and Linux has almost all of the required technology already built in to recreate it. This is a simple GUI to make it easy to use. %prep %setup -q -n %{name} %build %install rm -rf %{buildroot} %{__mkdir_p} %{buildroot}%{py_platsitedir}/%{name} %python_compile_opt %python_compile %{__install} *.py %{buildroot}%{py_platsitedir}/%{name} %{__install} *.pyc *.pyo %{buildroot}%{py_platsitedir}/%{name} %{__install} viewer.glade %{buildroot}%{py_platsitedir}/%{name} %{__install} GPL.txt %{buildroot}%{py_platsitedir}/%{name} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %dir %{py_platsitedir}/%{name}/ %{py_platsitedir}/%{name}/GPL.txt %{py_platsitedir}/%{name}/*.py %{py_platsitedir}/%{name}/*.pyc %{py_platsitedir}/%{name}/*.pyo %{py_platsitedir}/%{name}/viewer.glade %changelog * Sun Feb 17 2008 roudoud0u - 0.4.0-1mdv2008.0 - Initial Mandriva rpm package