]>
Commit | Line | Data |
---|---|---|
17dd896f JK |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: HTML photo album generator | |
e440c630 | 3 | Summary(pl.UTF-8): Generator albumów fotograficznych w HTML-u |
17dd896f | 4 | Name: album |
d6ffc46c | 5 | Version: 4.07 |
263f57ea | 6 | Release: 1 |
17dd896f JK |
7 | License: distributable |
8 | Group: Applications/Graphics | |
9 | Source0: http://marginalhacks.com/bin/%{name}.tar.gz | |
d6ffc46c | 10 | # Source0-md5: f607cb16da7c24b4deadb41bcb434fdc |
17dd896f | 11 | URL: http://marginalhacks.com/Hacks/album/ |
17dd896f JK |
12 | BuildRequires: rpm-perlprov >= 3.0.3-18 |
13 | Requires: ImageMagick | |
de904f81 | 14 | BuildArch: noarch |
17dd896f JK |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
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 | |
d6ffc46c | 20 | need. It's fast, easy to use, and very powerful. |
21 | ||
22 | Features: | |
d345eb2f | 23 | - You can use themes to choose or redesign the album "look and feel." |
24 | - Recursively descends directories to make a hierarchy of photo albums | |
25 | - Maintains aspect ratio while constraining size of thumbnails | |
17dd896f | 26 | |
24aecf1c | 27 | %description -l pl.UTF-8 |
d6ffc46c | 28 | Generator albumów fotograficznych z obsługą motywów. Przyjmuje katalog |
29 | ze zdjęciami i tworzy wszystkie potrzebne miniaturki oraz pliki HTML. | |
30 | Jest szybki, prosty w użyciu i ma duże możliwości. | |
31 | ||
24aecf1c JR |
32 | Możliwości: |
33 | - pozwala na używanie motywów do wybrania lub zmiany "look and feel" | |
d345eb2f | 34 | albumu |
24aecf1c | 35 | - rekurencyjnie przegląda katalogi tworząc hierarchię albumów |
d345eb2f | 36 | fotograficznych |
37 | - zachowuje proporcje przy ograniczaniu rozmiaru miniaturek. | |
17dd896f JK |
38 | |
39 | %prep | |
5ee452de AG |
40 | %setup -q |
41 | REAL_VERSION=`./album --version 2>&1 | grep '^This' | awk '/This\ is\ album/ { print $4 }'` | |
42 | if [ "$REAL_VERSION" != "v%{version}" ] ; then | |
17dd896f JK |
43 | echo "Package/Source version mismatch!" |
44 | exit 1 | |
45 | fi | |
17dd896f | 46 | |
17dd896f JK |
47 | %install |
48 | rm -rf $RPM_BUILD_ROOT | |
28710536 | 49 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} |
17dd896f | 50 | |
4fa0dbef | 51 | install album $RPM_BUILD_ROOT%{_bindir} |
28710536 | 52 | install album.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
17dd896f JK |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
5ee452de | 59 | %doc Docs/* License.txt |
d6ffc46c | 60 | %attr(755,root,root) %{_bindir}/album |
07eb952c | 61 | %{_mandir}/man1/album.1* |