-Summary: SVGALib JPEG/GIF/PNG/... picture viewer.
-Summary(pl): Bazowana na SVGALibie przegl±darka do obrazków
+# TODO:
+# - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010971.html
+Summary: Web based photo album viewer and creator.
+Summary(pl): Przegl±darka i generator albumów zdjêæ w postaci stron WWW
Name: gallery
-Version: 3.1
-Release: 2
+Version: 1.4.4
+Release: 1
License: GPL
-Source0: ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz
-Group: Applications/Graphics
-Vendor: Micha³ Moskal <malekith@pld.org.pl>
-URL: http://malekith.topnet.pl/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: svgalib-devel
-BuildRequires: aalib-devel
-BuildRequires: libpng-devel
-BuildRequires: libtiff-devel
-BuildRequires: libstdc++-devel
-ExclusiveArch: %{ix86} alpha
+Group: Applications/Publishing
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: fe21d5c2c48699666f20a6108805c44c
+Source1: http://dl.sourceforge.net/%{name}/pl_PL-%{version}.tar.gz
+# Source1-md5: 02e7ee87006aa91f6cc0cd2b60ae72c7
+URL: http://gallery.sourceforge.net/
+BuildArch: noarch
+Requires: webserver
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define gallerydir /home/services/httpd/html/gallery
+
%description
-Picture viewer for several gfx formats (PNG, GIF, JPEG, TIFF, PCX,
-XPM, BMP, P?M, IFF-{IL,P}BM and othres). No X supported nor needed.
-Feauters include scaling, quantizing, sliedeshows and a *lot* of
-useless options. Even mouse is supported, it can be used for scaling
-and scrolling. Gallery can also display images in text-mode, using
-aalib.
+Gallery is a photo album that includes a config wizard and lets users
+create and maintain albums via an intuitive Web interface. Photo
+management includes automatic thumbnail creation, image resizing,
+rotation, ordering and more. Albums can have read, write, and caption
+permissions per individual.
%description -l pl
-Przegl±darka do obrazków w sporej liczbie formatów formatach (PNG,
-GIF, JPEG, TIFF, PCX, XPM, BMP, P?M, IFF-{IL,P}BM i inne). ¯adnych
-Xów. Obrazki mo¿na skalowaæ, kwantyzowaæ, robiæ slideshowy i wiele
-innych bezsensownych rzeczy. Gallery obs³uguje mysz. Mo¿e równie¿
-wy¶wietlaæ obrazki w trybie textowym u¿ywaj±c aaliba.
+Gallery jest albumem zdjêæ, który posiadaj kreatora konfiguracji i
+pozwala u¿ytkownikom tworzyæ i zarz±dzaæ albumami przez intuicyjny
+interfejs WWW. Zarz±dzanie zdjêciami umo¿liwia automatyczne tworzenie
+miniatur, zmianê wielko¶ci obrazów, obrót, zmianê kolejno¶ci
+wy¶wietlania, itp. Albumy mog± posiadaæ indywidualne uprawnienia.
%prep
-%setup -q
-
-%build
-%{__aclocal}
-%{__autoconf}
-%configure \
- --without-debug \
- --without-gziped-man \
- --with-polish-man \
- --with-aalib
-%{__make}
+%setup -q -a1 -n %{name}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{gallerydir}
-install -d $RPM_BUILD_ROOT%{_mandir}/{man1,pl/man1}
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_libdir}/gallery
-
-install doc/gallery.man $RPM_BUILD_ROOT%{_mandir}/man1/gallery.1
-install doc/gallery-pl.man $RPM_BUILD_ROOT%{_mandir}/pl/man1/gallery.1
-install -m 755 src/gallery $RPM_BUILD_ROOT%{_bindir}
-install lib/* $RPM_BUILD_ROOT%{_libdir}/gallery
-%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} -C po install
-
-rm -f $RPM_BUILD_ROOT%{_libdir}/gallery/Makefile*
-
-%find_lang %{name}
+rm -f LICENSE.txt *.bat
+mv pl_PL locale
+cp -R * $RPM_BUILD_ROOT%{gallerydir}
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{name}.lang
+%files
%defattr(644,root,root,755)
-%doc doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS,README,TODO}
-%doc %lang(pl) doc/README.pl
+%doc AUTHORS ChangeLog README
+%dir %{gallerydir}
+%attr(755,root,root) %{gallerydir}/*.sh
+%{gallerydir}/*.php
+%{gallerydir}/*.inc
+%{gallerydir}/classes
+%{gallerydir}/contrib
+%{gallerydir}/css
+%{gallerydir}/docs
+%{gallerydir}/errors
+%{gallerydir}/html*
+%{gallerydir}/images
+%{gallerydir}/includes
+%{gallerydir}/java
+%{gallerydir}/js
+%{gallerydir}/layout
+%{gallerydir}/lib
+%{gallerydir}/platform
+%{gallerydir}/po
+%{gallerydir}/setup
+%{gallerydir}/skins
+%{gallerydir}/tools
-%attr(755, root, root) %{_bindir}/*
-%{_mandir}/man1/*
-%dir %{_libdir}/gallery
-%{_libdir}/gallery/message.jpg
-%attr(755,root,root) %{_libdir}/gallery/config-lynx
-%attr(755,root,root) %{_libdir}/gallery/gallery-bugreport
-%attr(755,root,root) %{_libdir}/gallery/lsd
+%dir %{gallerydir}/locale
+%{gallerydir}/locale/en_US
+%lang(pl) %{gallerydir}/locale/pl_PL