]>
Commit | Line | Data |
---|---|---|
a90fe526 | 1 | Summary: Web based photo album viewer and creator |
10719329 | 2 | Summary(pl.UTF-8): Przeglądarka i generator albumów zdjęć w postaci stron WWW |
1c5b52f6 | 3 | Name: gallery |
ac958d8d ER |
4 | Version: 1.5.10 |
5 | Release: 1 | |
dd29e0c0 | 6 | License: GPL |
4e8b9013 | 7 | Group: Applications/Publishing |
62ef2d49 | 8 | Source0: http://dl.sourceforge.net/gallery/%{name}-%{version}.tar.gz |
ac958d8d | 9 | # Source0-md5: a8147e62b248baf25cdd2a79a63453eb |
3c6a56b2 | 10 | Source1: http://dl.sourceforge.net/gallery/pl_PL-1.5.2.tar.gz |
11 | # Source1-md5: 1dd07a63d96299d8f5e4cc03342d318e | |
a90fe526 ER |
12 | Source2: %{name}-apache.conf |
13 | Patch0: %{name}-PLD.patch | |
62ef2d49 | 14 | URL: http://gallery.menalto.com/ |
a90fe526 | 15 | BuildRequires: rpmbuild(macros) >= 1.268 |
e8ac0ffc | 16 | Requires: php(gettext) |
a90fe526 | 17 | Requires: webapps |
e8ac0ffc | 18 | Requires: webserver(php) >= 4.1.0 |
c537ae76 ER |
19 | Suggests: ImageMagick |
20 | Suggests: ImageMagick-coder-jpeg | |
21 | Suggests: ImageMagick-coder-png | |
22 | Suggests: apache(mod_rewrite) | |
23 | Suggests: jhead | |
24 | Suggests: jpegtran | |
25 | Suggests: netpbm-progs | |
4e8b9013 | 26 | BuildArch: noarch |
e8d7e6fe | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1c5b52f6 | 28 | |
a90fe526 ER |
29 | %define _webapps /etc/webapps |
30 | %define _webapp %{name} | |
31 | %define _sysconfdir %{_webapps}/%{_webapp} | |
32 | %define _appdir %{_datadir}/%{_webapp} | |
4e8b9013 | 33 | |
1c5b52f6 | 34 | %description |
4e8b9013 | 35 | Gallery is a photo album that includes a config wizard and lets users |
36 | create and maintain albums via an intuitive Web interface. Photo | |
37 | management includes automatic thumbnail creation, image resizing, | |
38 | rotation, ordering and more. Albums can have read, write, and caption | |
39 | permissions per individual. | |
1c5b52f6 | 40 | |
10719329 ER |
41 | %description -l pl.UTF-8 |
42 | Gallery jest albumem zdjęć, który posiadaj kreatora konfiguracji i | |
43 | pozwala użytkownikom tworzyć i zarządzać albumami przez intuicyjny | |
44 | interfejs WWW. Zarządzanie zdjęciami umożliwia automatyczne tworzenie | |
45 | miniatur, zmianę wielkości obrazów, obrót, zmianę kolejności | |
46 | wyświetlania, itp. Albumy mogą posiadać indywidualne uprawnienia. | |
1c5b52f6 | 47 | |
a90fe526 ER |
48 | %package setup |
49 | Summary: Gallery setup package | |
10719329 | 50 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji Gallery |
a90fe526 ER |
51 | Group: Applications/WWW |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description setup | |
55 | Install this package to configure initial Gallery installation. You | |
56 | should uninstall this package when you're done, as it considered | |
57 | insecure to keep the setup files in place. | |
58 | ||
10719329 ER |
59 | %description setup -l pl.UTF-8 |
60 | Ten pakiet należy zainstalować w celu wstępnej konfigurac Gallery po | |
61 | pierwszej instalacji. Potem należy go odinstalować, jako że | |
62 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
a90fe526 | 63 | |
1c5b52f6 | 64 | %prep |
ac958d8d | 65 | %setup -q |
a90fe526 ER |
66 | %patch0 -p1 |
67 | ||
68 | tar zxf %{SOURCE1} -C locale | |
69 | rm -f LICENSE.txt *.bat | |
1c5b52f6 | 70 | |
1c343805 ER |
71 | # cleanup backups after patching |
72 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
73 | ||
1c5b52f6 | 74 | %install |
1c5b52f6 | 75 | rm -rf $RPM_BUILD_ROOT |
a90fe526 | 76 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/lib/gallery/albums} |
090d4c64 | 77 | |
a90fe526 ER |
78 | cp -a *.{php,inc,sh} $RPM_BUILD_ROOT%{_appdir} |
79 | cp -a classes contrib css docs help html html_wrap images $RPM_BUILD_ROOT%{_appdir} | |
c0a81395 | 80 | cp -a includes java js layout lib locale platform skins tools $RPM_BUILD_ROOT%{_appdir} |
a90fe526 ER |
81 | # in /var because of setup/resetadmin file |
82 | cp -a setup $RPM_BUILD_ROOT/var/lib/gallery | |
83 | ln -s /var/lib/gallery/setup $RPM_BUILD_ROOT%{_appdir} | |
ba160d9e | 84 | ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php |
a90fe526 ER |
85 | rm -f $RPM_BUILD_ROOT%{_appdir}/{AUTHORS,ChangeLog*,README} |
86 | ||
87 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf | |
88 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
89 | touch $RPM_BUILD_ROOT%{_sysconfdir}/config.php | |
90 | touch $RPM_BUILD_ROOT%{_sysconfdir}/htaccess | |
91 | ln -s %{_sysconfdir}/htaccess $RPM_BUILD_ROOT%{_appdir}/.htaccess | |
1c5b52f6 MM |
92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
cac746cb | 96 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
a90fe526 ER |
97 | %webapp_register apache %{_webapp} |
98 | ||
cac746cb | 99 | %triggerun -- apache1 < 1.3.37-3, apache1-base |
a90fe526 ER |
100 | %webapp_unregister apache %{_webapp} |
101 | ||
d81157f0 | 102 | %triggerin -- apache < 2.2.0, apache-base |
a90fe526 ER |
103 | %webapp_register httpd %{_webapp} |
104 | ||
d81157f0 | 105 | %triggerun -- apache < 2.2.0, apache-base |
a90fe526 ER |
106 | %webapp_unregister httpd %{_webapp} |
107 | ||
108 | %triggerpostun -- %{name} < 1.5.2-0.13 | |
109 | /usr/sbin/webapp register httpd %{_webapp} | |
110 | %service -q httpd reload | |
111 | ||
4e8b9013 | 112 | %files |
dd29e0c0 | 113 | %defattr(644,root,root,755) |
a90fe526 ER |
114 | %doc AUTHORS ChangeLog* README |
115 | %dir %attr(750,root,http) %{_sysconfdir} | |
116 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
117 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
118 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php | |
119 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/htaccess | |
120 | %dir %{_appdir} | |
121 | %dir /var/lib/gallery | |
122 | %dir %attr(770,root,http) /var/lib/gallery/albums | |
123 | %{_appdir}/.htaccess | |
124 | %{_appdir}/*.php | |
125 | %{_appdir}/*.inc | |
126 | %{_appdir}/classes | |
127 | %{_appdir}/contrib | |
128 | %{_appdir}/css | |
129 | %{_appdir}/docs | |
130 | %{_appdir}/html* | |
131 | %{_appdir}/help | |
132 | %{_appdir}/images | |
133 | %{_appdir}/includes | |
134 | %{_appdir}/java | |
135 | %{_appdir}/js | |
136 | %{_appdir}/layout | |
137 | %{_appdir}/lib | |
138 | %{_appdir}/platform | |
a90fe526 ER |
139 | %{_appdir}/skins |
140 | %{_appdir}/tools | |
141 | ||
142 | %dir %{_appdir}/locale | |
143 | %{_appdir}/locale/en_US | |
144 | %lang(pl) %{_appdir}/locale/pl_PL | |
145 | ||
146 | %files setup | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_appdir}/*.sh | |
149 | %{_appdir}/setup | |
ba160d9e | 150 | %{_appdir}/config.php |
a90fe526 | 151 | /var/lib/gallery/setup |