Summary(pl): System Zarz±dzania Sieci± Lokaln±
Name: lms
Version: %{lmsver}.%{lmssubver}
-Release: 1
+Release: 2
License: GPL
Vendor: LMS Developers
Group: Networking/Utilities
Source3: %{name}.sysconfig
Patch0: %{name}-PLD.patch
Patch1: %{name}-amd64.patch
+Patch2: %{name}-calendar.patch
URL: http://lms.rulez.pl/
%{?with_almsd:BuildRequires: libgadu-devel}
%{?with_almsd:BuildRequires: mysql-devel}
%ifarch amd64
%patch1 -p1
%endif
+%patch2 -p1
%build
%if %{with almsd}
$RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,httpd} \
$RPM_BUILD_ROOT/etc/lms/modules/{dns,ggnofity,nofity} \
$RPM_BUILD_ROOT{%{_lmsvar}/{backups,templates_c},/usr/lib/lms} \
- $RPM_BUILD_ROOT%{_lmsdir}/www/{img,doc,user}
+ $RPM_BUILD_ROOT%{_lmsdir}/www/{img,doc,user,calendar}
install *.php $RPM_BUILD_ROOT%{_lmsdir}/www
install img/* $RPM_BUILD_ROOT%{_lmsdir}/www/img
cp -r doc/html $RPM_BUILD_ROOT%{_lmsdir}/www/doc
cp -r lib contrib modules templates sample $RPM_BUILD_ROOT%{_lmsdir}
+mv $RPM_BUILD_ROOT%{_lmsdir}/templates/calendar.html $RPM_BUILD_ROOT%{_lmsdir}/www/calendar
install bin/* $RPM_BUILD_ROOT%{_sbindir}
install sample/%{name}.ini $RPM_BUILD_ROOT%{_sysconfdir}