]> git.pld-linux.org Git - packages/album.git/blob - album.spec
- new spec
[packages/album.git] / album.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        HTML photo album generator
3 Summary(pl):    Generator albumów foto
4 Name:           album
5 Version:        2.35
6 Release:        1
7 License:        distributable
8 Group:          Applications/Graphics
9 Source0:        http://marginalhacks.com/bin/%{name}.tar.gz
10 Patch0:         %{name}-OS.patch
11 URL:            http://marginalhacks.com/Hacks/album/
12 Buildarch:      noarch
13 BuildRequires:  rpm-perlprov >= 3.0.3-18
14 Requires:       ImageMagick
15 %requires_eq    perl
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
22
23 Features:
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
27
28 %description -l pl
29
30
31 %prep
32 %setup -qc %{name}-%{version}
33 REAL_VERSION=`./album --version | awk '/album version/ { print $5 }'`
34 if [ "$REAL_VERSION" != "%{version}" ] ; then
35         echo "Package/Source version mismatch!"
36         exit 1
37 fi
38 %patch0 -p1
39
40 %build
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
45
46 install album caption_index  $RPM_BUILD_ROOT%{_bindir}
47 cp -R Themes $RPM_BUILD_ROOT%{_datadir}/%{name}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/*
55 %{_datadir}/%{name}
This page took 0.105974 seconds and 4 git commands to generate.