-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathwebacula.spec
166 lines (125 loc) · 5.42 KB
/
webacula.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
Name: webacula
Version: 5.5.2
Release: 2%{?dist}
Summary: Web interface of a Bacula backup system
Summary(ru): Веб интерфейс для Bacula backup system
Group: Applications/Internet
License: GPLv3+
URL: http://webacula.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: webacula-5.5.2-path.patch
Patch2: webacula-5.5.2-apache.patch
BuildArch: noarch
Requires: webserver
Requires: bacula-console >= 5.0
Requires: php-ZendFramework >= 1.8.3
Requires: php >= 5.2.4
Requires: php-pdo
Requires: php-json
Requires: php-pcre
Requires: php-gd
Requires: php-xml
%description
Webacula - Web Bacula - web interface of a Bacula backup system.
Supports the run Job, restore all files or selected files,
restore the most recent backup for a client,
restore backup for a client before a specified time,
mount/umount Storages, show scheduled, running and terminated Jobs and more.
Supported languages: English, Czech, French, German, Italian,
Portuguese Brazil, Russian.
%description -l ru
Webacula - Web Bacula - веб интерфейс для Bacula backup system.
Поддерживает запуск Заданий, восстановление всех или выбранных файлов,
восстановление самого свежего бэкапа для клиента,
восстановление бэкапа для клиента сделанного перед указанным временем,
монтирование/размонтирование Хранилищ, показ запланированных,
выполняющихся и завершенных Заданий и прочее.
Поддерживаемые языки: английский, чешский, французский, немецкий, итальянский,
бразильский португальский, русский.
%prep
%setup -q
%patch1 -p0 -b .cache
%patch2 -p0 -b .apache
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/application
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/html
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/languages
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/library
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/install
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}
cp ./application/config.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.ini
rm -f ./application/config.ini
ln -s %{_sysconfdir}/%{name}/config.ini $RPM_BUILD_ROOT%{_datadir}/%{name}/application/config.ini
cp ./install/apache/webacula.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/webacula.conf
rm -f ./install/apache/webacula.conf
cp -pr ./application $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr ./html $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr ./languages $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr ./library $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr ./install $RPM_BUILD_ROOT%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc 4CONTRIBUTORS 4CONTRIBUTORS.ru AUTHORS COPYING README UPDATE ChangeLog
%doc docs/
%{_datadir}/%{name}/application
%{_datadir}/%{name}/html
%{_datadir}/%{name}/library
%{_datadir}/%{name}/install
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/languages
%config(noreplace) %{_sysconfdir}/httpd/conf.d/webacula.conf
%config(noreplace) %{_sysconfdir}/%{name}/config.ini
%lang(cs) %{_datadir}/%{name}/languages/cs
%lang(de) %{_datadir}/%{name}/languages/de
%lang(en) %{_datadir}/%{name}/languages/en
%lang(es) %{_datadir}/%{name}/languages/es
%lang(fr) %{_datadir}/%{name}/languages/fr
%lang(it) %{_datadir}/%{name}/languages/it
%lang(pt) %{_datadir}/%{name}/languages/pt
%lang(ru) %{_datadir}/%{name}/languages/ru
%dir %attr(750, apache, apache) %{_localstatedir}/cache/%{name}
%changelog
* Tue Sep 10 2013 Robert Oschwald <[email protected]> 5.5.2-2
- Use systems cache dir
- Load rewrite module conditionally if not loaded already
* Sat Oct 29 2011 Yuri Timofeev <[email protected]> 5.5.2-1
- Version 5.5.2
* Sat Sep 10 2011 Yuri Timofeev <[email protected]> 5.5.1-1
- Version 5.5.1
* Mon Jan 24 2011 Yuri Timofeev <[email protected]> 5.5.0-1
- Version 5.5.0
* Mon Jan 24 2011 Yuri Timofeev <[email protected]> 5.0.3-1
- Version 5.0.3
* Tue Aug 10 2010 Yuri Timofeev <[email protected]> 5.0.2-1
- Version 5.0.2
* Thu May 12 2010 Yuri Timofeev <[email protected]> 5.0.1-1
- Version 5.0.1
* Thu Feb 20 2010 Yuri Timofeev <[email protected]> 5.0-1
- Version 5.0
* Tue Feb 16 2010 Yuri Timofeev <[email protected]> 3.5-1
- Version 3.5
* Wed Dec 9 2009 Yuri Timofeev <[email protected]> 3.4.1-1
- Version 3.4.1
* Fri Oct 16 2009 Yuri Timofeev <[email protected]> 3.4-1
- Version 3.4
* Tue Oct 13 2009 Yuri Timofeev <[email protected]> 3.3-6
- Fix #526855.
* Tue Oct 13 2009 Yuri Timofeev <[email protected]> 3.3-5
- Fix #526855. Remove Zend Framework from source.
* Tue Oct 13 2009 Yuri Timofeev <[email protected]> 3.3-4
- Fix #526855
* Mon Oct 12 2009 Yuri Timofeev <[email protected]> 3.3-3
- Fix #526855
* Sat Oct 10 2009 Yuri Timofeev <[email protected]> 3.3-2
- Fix #526855 "Review Request"
* Thu Oct 08 2009 Yuri Timofeev <[email protected]> 3.3-1
- Initial Spec file creation for Fedora