Summary: Slashdot-like webnews site written in php, easy to install and use Summary(pl.UTF-8): Serwis nowinek WWW w stylu Slashdota napisany w PHP, łatwy w instalacji i używaniu Name: PHP-nuke Version: 7.8 Release: 4 License: GPL Group: Applications/WWW Source0: http://phpnuke.org/files/PHP-Nuke-%{version}.zip # Source0-md5: 0f60b9e5c67827192d4b36fc7b06b267 Source1: PHP-Nuke.README.first Source2: %{name}.conf URL: http://phpnuke.org/ BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 BuildRequires: unzip Requires: php(pcre) Requires: php-common >= 3:4.2.0 Requires: webapps BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _webapps /etc/webapps %define _webapp phpnuke %define _sysconfdir %{_webapps}/%{_webapp} %define _appdir %{_datadir}/%{_webapp} %description Content Management and Portal solution featuring web-based administration, surveys, customizable blocks, modules and themes with multilanguage support. %description -l pl.UTF-8 System zarządzania treścią oraz portal WWW z administracją opartą na WWW, przeglądami, konfigurowalnymi blokami, modułami i motywami oraz obsługą wielu języków. %prep %setup -q -c # undos the source find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,' cp -p %{SOURCE1} README.first %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} cp -a html/* $RPM_BUILD_ROOT%{_appdir} mv $RPM_BUILD_ROOT%{_appdir}/config.php $RPM_BUILD_ROOT%{_sysconfdir} ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 1 ]; then %banner -e %{name} <