%define name photon %define Name Photon %define version 0.3.1 %define release 2mdk %define pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".") Name: %{name} Version: %{version} Release: %{release} Summary: Photon is a static HTML gallery generator Source: http://www.saillard.org/photon/%{Name}-%{version}.tar.bz2 Url: http://www.saillard.org/photon/ License: GPL Group: Graphics BuildRoot: %{_tmppath}/%{name}-buildroot BuildArch: noarch %description Photon is a photo album with a clean design. Features: * static HTML pages (you can put all pages and images on a CD-ROM) * slideshow (use javascript optional) * can use gimp to resize picture * navigation between the image can use the keyboard (use javascript optional) * works in any browser (Mozilla, Netscape Navigator 4.x, Konqueror, Opera) * Each image can have a comment (with HTML tags) * Information about the image (if taken from a digital picture) can be draw * thumbnail image size can be chosen by the user * output images can be scalled down * control the number of thumbnail in a page. %prep %setup -n %{Name}-%{version} %build python setup.py build %install python setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog README BUGS %{_bindir}/%{name} %{_libdir}/python%{pyver}/site-packages/%{Name} %{_datadir}/%{name} %changelog * Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.3.1-2mdk - Rebuild for new python * Fri Nov 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.3.1-1mdk - first mdk package, using a spec file stolen from Luc Saillard <luc@saillard.org>