1 %include /usr/lib/rpm/macros.perl
2 Summary: HTML photo album generator
3 Summary(pl): Generator albumów fotograficznych w HTML-u
8 Group: Applications/Graphics
9 Source0: http://marginalhacks.com/bin/%{name}.tar.gz
10 # Source0-md5: a874e2ca14bb808308c63140862c8e16
11 URL: http://marginalhacks.com/Hacks/album/
12 BuildRequires: rpm-perlprov >= 3.0.3-18
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 An HTML photo album generator that supports themes. It takes a
19 directory of images and creates all the thumbnails and HTML that you
20 need. It's fast, easy to use, and very powerful.
22 - You can use themes to choose or redesign the album "look and feel."
23 - Recursively descends directories to make a hierarchy of photo albums
24 - Maintains aspect ratio while constraining size of thumbnails
27 Generator albumów fotograficznych z obs³ug± motywów. Przyjmuje katalog
28 ze zdjêciami i tworzy wszystkie potrzebne miniaturki oraz pliki HTML.
29 Jest szybki, prosty w u¿yciu i ma du¿e mo¿liwo¶ci.
31 - pozwala na u¿ywanie motywów do wybrania lub zmiany "look and feel"
33 - rekurencyjnie przegl±da katalogi tworz±c hierarchiê albumów
35 - zachowuje proporcje przy ograniczaniu rozmiaru miniaturek.
39 REAL_VERSION=`./album --version 2>&1 | grep '^This' | awk '/This\ is\ album/ { print $4 }'`
40 if [ "$REAL_VERSION" != "v%{version}" ] ; then
41 echo "Package/Source version mismatch!"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
49 install album $RPM_BUILD_ROOT%{_bindir}
50 install album.1 $RPM_BUILD_ROOT%{_mandir}/man1
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc Docs/* License.txt
58 %attr(755,root,root) %{_bindir}/*
59 %{_mandir}/man1/%{name}.1*