]> git.pld-linux.org Git - packages/gallery.git/blame - gallery.spec
- up to 2.3 (by Michal Kochanowicz)
[packages/gallery.git] / gallery.spec
CommitLineData
30bacd6a
PG
1# TODO:
2# - use external libs, not the included ones: pear, smarty, adodb
3# - move to separate packages each: theme, module.
a90fe526 4Summary: Web based photo album viewer and creator
58349555 5Summary(pl.UTF-8): Przeglądarka i generator albumów zdjęć w postaci stron WWW
1c5b52f6 6Name: gallery
144bd70b 7Version: 2.3
8Release: 1
dd29e0c0 9License: GPL
4e8b9013 10Group: Applications/Publishing
9527eb2c 11Source0: http://dl.sourceforge.net/gallery/%{name}-%{version}-full.tar.gz
144bd70b 12# Source0-md5: f85663db5f1de99d0b3bc13929f9ab39
9527eb2c 13#Source0: http://galleryupdates.jpmullan.com/G2/%{name}-nightly.tar.gz
30bacd6a 14Source1: %{name}-apache.conf
7c7aca23 15Source2: %{name}-lighttpd.conf
ecb3ab72 16Patch0: %{name}-setup.patch
4e8b9013 17URL: http://gallery.sourceforge.net/
a90fe526 18BuildRequires: rpmbuild(macros) >= 1.268
289aabf5
ER
19Requires: php(gettext)
20Requires: php(pcre)
ecb3ab72 21Requires: webapps
289aabf5 22Requires: webserver(php) >= 4.1.0
a90fe526
ER
23#Suggests: apache(mod_rewrite)
24#Suggests: jhead
25#Suggests: jpegtran
30bacd6a 26#Suggests: php-gd
4e8b9013 27BuildArch: noarch
e8d7e6fe 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1c5b52f6 29
a90fe526
ER
30%define _webapps /etc/webapps
31%define _webapp %{name}
32%define _sysconfdir %{_webapps}/%{_webapp}
30bacd6a 33%define _appdir %{_datadir}/%{_webapp}
4e8b9013 34
1c5b52f6 35%description
4e8b9013 36Gallery is a photo album that includes a config wizard and lets users
37create and maintain albums via an intuitive Web interface. Photo
38management includes automatic thumbnail creation, image resizing,
39rotation, ordering and more. Albums can have read, write, and caption
40permissions per individual.
1c5b52f6 41
0bf5ac9a
JR
42%description -l pl.UTF-8
43Gallery jest albumem zdjęć, który posiadaj kreatora konfiguracji i
44pozwala użytkownikom tworzyć i zarządzać albumami przez intuicyjny
45interfejs WWW. Zarządzanie zdjęciami umożliwia automatyczne tworzenie
46miniatur, zmianę wielkości obrazów, obrót, zmianę kolejności
47wyświetlania, itp. Albumy mogą posiadać indywidualne uprawnienia.
1c5b52f6 48
a90fe526
ER
49%package setup
50Summary: Gallery setup package
58349555 51Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji Gallery
a90fe526
ER
52Group: Applications/WWW
53Requires: %{name} = %{version}-%{release}
65a1fd75 54Conflicts: external-gallery-module
a90fe526
ER
55
56%description setup
57Install this package to configure initial Gallery installation. You
58should uninstall this package when you're done, as it considered
59insecure to keep the setup files in place.
60
0bf5ac9a
JR
61%description setup -l pl.UTF-8
62Ten pakiet należy zainstalować w celu wstępnej konfiguracji Gallery po
63pierwszej instalacji. Potem należy go odinstalować, jako że
64pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
a90fe526 65
1c5b52f6 66%prep
30bacd6a 67%setup -q -n %{name}2
9527eb2c 68%patch0 -p0
a90fe526 69
a90fe526 70rm -f LICENSE.txt *.bat
1c5b52f6
MM
71
72%install
1c5b52f6 73rm -rf $RPM_BUILD_ROOT
a90fe526 74install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/lib/gallery/albums}
090d4c64 75
30bacd6a 76cp -a *.{php,inc} $RPM_BUILD_ROOT%{_appdir}
2670940e 77cp README.html $RPM_BUILD_ROOT%{_appdir}
30bacd6a
PG
78cp -a images lib modules themes $RPM_BUILD_ROOT%{_appdir}
79cp -a install upgrade $RPM_BUILD_ROOT%{_appdir}
a90fe526 80
30bacd6a
PG
81install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
82install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
7c7aca23 83install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
a90fe526 84touch $RPM_BUILD_ROOT%{_sysconfdir}/config.php
30bacd6a
PG
85touch $RPM_BUILD_ROOT%{_sysconfdir}/login.txt
86ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php
87ln -s %{_sysconfdir}/login.txt $RPM_BUILD_ROOT%{_appdir}/login.txt
1c5b52f6 88
23884506 89## Cleanup modules that are avaible in separate packages:
136b7e47
RT
90#for module in exif; do
91# rm -rf $RPM_BUILD_ROOT%{_appdir}/modules/$module
92#done
23884506 93
1c5b52f6
MM
94%clean
95rm -rf $RPM_BUILD_ROOT
96
7bb165cf 97%triggerin -- apache1 < 1.3.37-3, apache1-base
a90fe526
ER
98%webapp_register apache %{_webapp}
99
7bb165cf 100%triggerun -- apache1 < 1.3.37-3, apache1-base
a90fe526
ER
101%webapp_unregister apache %{_webapp}
102
d81157f0 103%triggerin -- apache < 2.2.0, apache-base
a90fe526
ER
104%webapp_register httpd %{_webapp}
105
d81157f0 106%triggerun -- apache < 2.2.0, apache-base
a90fe526
ER
107%webapp_unregister httpd %{_webapp}
108
7c7aca23
RT
109%triggerin -- lighttpd
110%webapp_register lighttpd %{_webapp}
111
112%triggerun -- lighttpd
113%webapp_unregister lighttpd %{_webapp}
114
a90fe526
ER
115%triggerpostun -- %{name} < 1.5.2-0.13
116/usr/sbin/webapp register httpd %{_webapp}
117%service -q httpd reload
118
4e8b9013 119%files
dd29e0c0 120%defattr(644,root,root,755)
30bacd6a 121%doc README*
a90fe526 122%dir %attr(750,root,http) %{_sysconfdir}
7b9b7366 123%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/login.txt
a90fe526
ER
124%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
125%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
7c7aca23 126%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
a90fe526 127%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
a90fe526
ER
128%dir %{_appdir}
129%dir /var/lib/gallery
130%dir %attr(770,root,http) /var/lib/gallery/albums
7b9b7366 131%{_appdir}/login.txt
a90fe526
ER
132%{_appdir}/*.php
133%{_appdir}/*.inc
a90fe526 134%{_appdir}/images
a90fe526 135%{_appdir}/lib
30bacd6a
PG
136%{_appdir}/modules
137%{_appdir}/themes
a90fe526
ER
138
139%files setup
140%defattr(644,root,root,755)
2670940e 141%{_appdir}/README.html
ba160d9e 142%{_appdir}/config.php
30bacd6a 143%{_appdir}/install
8c69bded 144%{_appdir}/upgrade
This page took 0.081832 seconds and 4 git commands to generate.