X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gallery.spec;h=6c026207c82f81f328b26e5bfcd013eadc68457a;hb=2670940e0e277ba6f952c49b90404d6398f1056f;hp=0b079cf9844d5fac3c1731893c229eb9f57d9ce6;hpb=dd29e0c0bfc3a59846707b4c1a1d52b440279c1f;p=packages%2Fgallery.git diff --git a/gallery.spec b/gallery.spec index 0b079cf..6c02620 100644 --- a/gallery.spec +++ b/gallery.spec @@ -1,73 +1,137 @@ +# TODO: +# - use external libs, not the included ones: pear, smarty, adodb +# - move to separate packages each: theme, module. +%define _snap 20060728 +%define _rel 0.4 +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.0 -Release: 1 +Version: 2.1.1a +Release: 1.%{_snap}.%{_rel} License: GPL -Source0: http://malekith.cnc.pl/bin/%{name}-%{version}.tar.gz +Group: Applications/Publishing +#Source0: http://dl.sourceforge.net/gallery/%{name}-%{version}-full.tar.gz +Source0: http://galleryupdates.jpmullan.com/G2/%{name}-nightly.tar.gz +# Source0-md5: 6d609d4bbce81c7719799ad953a8b7d1 +Source1: %{name}-apache.conf +Patch0: %{name}-setup.patch +URL: http://gallery.sourceforge.net/ +BuildRequires: rpmbuild(macros) >= 1.268 +Requires: php >= 3:4.1.0 +Requires: php-gettext +Requires: php-pcre +Requires: webapps +#Suggests: apache(mod_rewrite) +#Suggests: jhead +#Suggests: jpegtran +#Suggests: php-gd +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Summary: SVGALib JPEG/GIF/PNG/... picture viewer. -Summary(pl): Bazowana na SVGALibie przegl±darka do obrazków -Group: Applications/Graphics -Group(de): Applikationen/Grafik -Group(pl): Aplikacje/Grafika -URL: http://malekith.topnet.pl/ -BuildRequires: svgalib-devel -BuildRequires: aalib-devel -Vendor: Micha³ Moskal + +%define _webapps /etc/webapps +%define _webapp %{name} +%define _sysconfdir %{_webapps}/%{_webapp} +%define _appdir %{_datadir}/%{_webapp} %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. + +%package setup +Summary: Gallery setup package +Summary(pl): Pakiet do wstêpnej konfiguracji Gallery +Group: Applications/WWW +Requires: %{name} = %{version}-%{release} +Conflicts: external-gallery-module +%description setup +Install this package to configure initial Gallery installation. You +should uninstall this package when you're done, as it considered +insecure to keep the setup files in place. + +%description setup -l pl +Ten pakiet nale¿y zainstalowaæ w celu wstêpnej konfiguracji Gallery po +pierwszej instalacji. Potem nale¿y go odinstalowaæ, jako ¿e +pozostawienie plików instalacyjnych mog³oby byæ niebezpieczne. %prep -%setup -q +%setup -q -n %{name}2 +%patch0 -p1 -%build -%configure --without-debug --with-gziped-man --with-polish-man --with-aalib -%{__make} +rm -f LICENSE.txt *.bat %install - rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/lib/gallery/albums} -install -d $RPM_BUILD_ROOT%{_mandir}/man1 $RPM_BUILD_ROOT%{_mandir}/pl/man1 -install doc/gallery.man.gz $RPM_BUILD_ROOT%{_mandir}/man1/gallery.1.gz -install doc/gallery-pl.man.gz $RPM_BUILD_ROOT%{_mandir}/pl/man1/gallery.1.gz -gzip -9nf doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS} \ - doc/{README,README.pl,TODO} -install -d $RPM_BUILD_ROOT%{_bindir} -install -m 755 src/gallery $RPM_BUILD_ROOT%{_bindir} -install -d $RPM_BUILD_ROOT%{_libdir}/gallery -install lib/* $RPM_BUILD_ROOT%{_libdir}/gallery -rm -f $RPM_BUILD_ROOT%{_libdir}/gallery/Makefile* -%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} -C po install +cp -a *.{php,inc} $RPM_BUILD_ROOT%{_appdir} +cp README.html $RPM_BUILD_ROOT%{_appdir} +cp -a images lib modules themes $RPM_BUILD_ROOT%{_appdir} +cp -a install upgrade $RPM_BUILD_ROOT%{_appdir} + +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf +touch $RPM_BUILD_ROOT%{_sysconfdir}/config.php +touch $RPM_BUILD_ROOT%{_sysconfdir}/login.txt +ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php +ln -s %{_sysconfdir}/login.txt $RPM_BUILD_ROOT%{_appdir}/login.txt + +## Cleanup modules that are avaible in separate packages: +for module in exif; do + rm -rf $RPM_BUILD_ROOT%{_appdir}/modules/$module +done %clean rm -rf $RPM_BUILD_ROOT +%triggerin -- apache1 +%webapp_register apache %{_webapp} + +%triggerun -- apache1 +%webapp_unregister apache %{_webapp} + +%triggerin -- apache < 2.2.0, apache-base +%webapp_register httpd %{_webapp} + +%triggerun -- apache < 2.2.0, apache-base +%webapp_unregister httpd %{_webapp} + +%triggerpostun -- %{name} < 1.5.2-0.13 +/usr/sbin/webapp register httpd %{_webapp} +%service -q httpd reload + %files %defattr(644,root,root,755) -%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 - -%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gallery.mo -%lang(pl) %{_mandir}/pl/man1/* - -%doc doc/{AUTHORS,BETA-TESTERS,BUGS,CREDITS,INSTALL,NEWS,README,TODO}.gz -%doc %lang(pl) doc/README.pl.gz +%doc README* +%dir %attr(750,root,http) %{_sysconfdir} +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf +%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php +%dir %{_appdir} +%dir /var/lib/gallery +%dir %attr(770,root,http) /var/lib/gallery/albums +%{_appdir}/*.php +%{_appdir}/*.inc +%{_appdir}/images +%{_appdir}/lib +%{_appdir}/modules +%{_appdir}/themes + +%files setup +%defattr(644,root,root,755) +%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/login.txt +%{_appdir}/README.html +%{_appdir}/config.php +%{_appdir}/install +%{_appdir}/upgrade +%{_appdir}/login.txt