2 Summary: LAN Managment System
3 Summary(pl): System Zarz±dzania Siec± Lokaln±
8 Group: Networking/Utilities
9 Source0: http://lms.rulez.pl/download/%{name}-%{version}%{_add}+libs.tar.gz
14 Requires: perl-GetOpt-Long
15 Requires: perl-Net-SMTP
16 Requires: perl-Config-IniFiles
18 Requires: perl-DBD-mysql
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _lmsdir /home/services/httpd/html/%{name}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_lmsdir}/{img,lib,modules,templates,templates_c}
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 install -d $RPM_BUILD_ROOT%{_bindir}/
38 install *.php $RPM_BUILD_ROOT%{_lmsdir}
39 install -d {img,lib,modules,templates,templates_c} $RPM_BUILD_ROOT%{_lmsdir}
40 install -d backup $RPM_BUILD_ROOT%{_localstatedir}/%{name}/
41 install bin/* $RPM_BUILD_ROOT%{_bindir}/
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
50 %attr(770,root,http) %{_lmsdir}/templates_c
56 %{_localstatedir}/%{name}