1# $Id$
2%define _bindir /usr/bin
3%define _mandir /usr/share/man
4
5Summary: Metapixel Photomosaic Generator
6Name: metapixel
7Version: 1.0.2
8Release: 1
9License: GNU General Public License
10Group: Applications/Multimedia
11URL: http://www.complang.tuwien.ac.at/schani/metapixel/
12Source: http://www.complang.tuwien.ac.at/schani/%{name}/%{name}-%{version}.tar.gz
13#Buildroot: %{_tmppath}/%{name}-%{version}-root
14Requires: libpng
15Requires: libjpeg
16Requires: giflib
17Requires: perl
18BuildRequires: libpng-devel
19BuildRequires: libjpeg-devel
20BuildRequires: giflib-devel
21BuildRequires: make
22
23%description
24Metapixel is a program for generating photomosaics.  It can generate classical
25photomosaics, in which the source image is viewed as a matrix of equally sized
26rectangles for each of which a matching image is substituted, as well as
27collage-style photomosaics, in which rectangular parts of the source image
28at arbitrary positions (i.e. not aligned to a matrix) are substituted by
29matching images.
30
31%prep
32%setup
33rm -rf $RPM_BUILD_ROOT
34
35%build
36%{__make}
37
38%install
39install -d $RPM_BUILD_ROOT/%{_bindir}
40install -d $RPM_BUILD_ROOT/%{_mandir}/man1
41install metapixel $RPM_BUILD_ROOT/%{_bindir}/metapixel
42install metapixel-prepare $RPM_BUILD_ROOT/%{_bindir}/metapixel-prepare
43install metapixel-imagesize $RPM_BUILD_ROOT/%{_bindir}/metapixel-imagesize
44install metapixel-sizesort $RPM_BUILD_ROOT/%{_bindir}/metapixel-sizesort
45install metapixel.1 $RPM_BUILD_ROOT/%{_mandir}/man1/metapixel.1
46gzip $RPM_BUILD_ROOT/%{_mandir}/man1/metapixel.1
47
48%clean
49rm -rf %{buildroot}
50
51%files
52%defattr(-, root, root)
53%doc NEWS COPYING README
54%{_mandir}/man1/metapixel.1.gz
55%{_bindir}/metapixel-prepare
56%{_bindir}/metapixel
57%{_bindir}/metapixel-imagesize
58%{_bindir}/metapixel-sizesort
59
60%changelog
61* Sun Dec 10 2006 Mark Probst <schani@complang.tuwien.ac.at> 1.0.2
62- Update to 1.0.2
63* Sun Feb 19 2006 Mark Probst <schani@complang.tuwien.ac.at> 1.0.1
64- Update to 1.0.1, added imagesize and sizesort
65* Thu Jul 28 2005 A. Pense <www.yousns.com> 1.0.0
66- First creation of spec file, source rpm
67