1 %include /usr/lib/rpm/macros.perl
2 Summary: HTML photo album generator
3 Summary(pl): Generator albumów fotograficznych w HTML
8 Group: Applications/Graphics
9 Source0: http://marginalhacks.com/bin/%{name}.tar.gz
10 # Source0-md5: a8552d5428caf1f63552649fb57954ad
11 URL: http://marginalhacks.com/Hacks/album/
13 BuildRequires: rpm-perlprov >= 3.0.3-18
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 An HTML photo album generator that supports themes. It takes a
20 directory of images and creates all the thumbnails and HTML that you
21 need. It's fast, easy to use, and very powerful.
24 - You can use themes to choose or redesign the album "look and feel."
25 - Recursively descends directories to make a hierarchy of photo albums
26 - Maintains aspect ratio while constraining size of thumbnails
29 Generator albumów fotograficznych z obs³ug± motywów. Przyjmuje katalog
30 ze zdjêciami i tworzy wszystkie potrzebne miniaturki oraz pliki HTML.
31 Jest szybki, prosty w u¿yciu i ma du¿e mo¿liwo¶ci.
34 - pozwala na u¿ywanie motywów do wybrania lub zmiany "look and feel"
36 - rekurencyjnie przegl±da katalogi tworz±c hierarchiê albumów
38 - zachowuje proporcje przy ograniczaniu rozmiaru miniaturek.
41 %setup -qc %{name}-%{version}
42 REAL_VERSION=`./album --version | awk '/album version/ { print $5 }'`
43 if [ "$REAL_VERSION" != "%{version}" ] ; then
44 echo "Package/Source version mismatch!"
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
52 install album $RPM_BUILD_ROOT%{_bindir}
53 cp -R Themes $RPM_BUILD_ROOT%{_datadir}/%{name}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/*