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