X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cowiki.spec;h=d3eb346eab6ce8f0d7c9ad83d4ba5500a7c4ea36;hb=e8df24aa08e4c0eb60bb4de21f3283eb89a8251a;hp=2b255b9eb5481cd9b7cf3f57675ff1eaa24cdf05;hpb=102c5a402e0e3ad9db5c1a7ddb7519d9b9969c29;p=packages%2Fcowiki.git diff --git a/cowiki.spec b/cowiki.spec index 2b255b9..d3eb346 100644 --- a/cowiki.spec +++ b/cowiki.spec @@ -2,29 +2,33 @@ # - lighttpd integration possible . # - theoretically mysql,mysqli,pgsql,sqlite connectors are possible. -%define _snap 2006-03-17 -%define _rel 0.6 +%define _snap 2006-05-08 +%define _rel 0.17 Summary: Web collaboration tool -Summary(pl): Narzêdzie do wspó³pracy i wspó³tworzenia w sieci +Summary(pl.UTF-8): Narzędzie do współpracy i współtworzenia w sieci Name: cowiki Version: 0.4.0 Release: %{?_snap:1.%(echo %{_snap} | tr -d -).}%{_rel} License: GPL Group: Applications/WWW Source0: http://snaps.cowiki.org/%{name}-%{version}-interim-%{_snap}.tar.gz -# Source0-md5: 2aaf6115460ca1674d6de381f07a4e68 +# Source0-md5: f2843189fc24c854414a3e23a4b9ac95 Source1: %{name}.conf Patch0: %{name}-FHS.patch Patch1: %{name}-config.patch Patch2: %{name}-https.patch +Patch3: %{name}-includepath.patch +Patch4: %{name}-tz.patch +Patch5: %{name}-webapps.patch URL: http://www.cowiki.org/ BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(mod_dir) -Requires: php >= 4:5.0.2 -Requires: php-dom -Requires: php-mysqli -Requires: php-pcre +Requires: diffutils +Requires: php(dom) +Requires: php(mysqli) +Requires: php(pcre) Requires: webapps +Requires: webserver(php) >= 5.0.2 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -41,17 +45,17 @@ in their HTML browser. You may evolve ideas and gain a concomitant XML documentation of your brainstorming without having to concentrate on complicated structural syntaxes. -%description -l pl -coWiki to wyszukane, ale ³atwe w u¿yciu narzêdzie do pracy zespo³owej -przez WWW pomagaj±ce wspó³pracownikom tworzyæ i organizowaæ dokumenty -WWW, weblogi, bazy wiedzy lub dowolne inne struktury dokumentów -bezpo¶rednio w przegl±darce HTML. Mo¿na rozwijaæ idee i otrzymywaæ -towarzysz±c± dokumentacjê XML burzy mózgów bez potrzeby koncentrowania -siê na skomplikowanej sk³adni strukturalnej. +%description -l pl.UTF-8 +coWiki to wyszukane, ale łatwe w użyciu narzędzie do pracy zespołowej +przez WWW pomagające współpracownikom tworzyć i organizować dokumenty +WWW, weblogi, bazy wiedzy lub dowolne inne struktury dokumentów +bezpośrednio w przeglądarce HTML. Można rozwijać idee i otrzymywać +towarzyszącą dokumentację XML burzy mózgów bez potrzeby koncentrowania +się na skomplikowanej składni strukturalnej. %package setup Summary: coWiki setup package -Summary(pl): Pakiet do wstêpnej konfiguracji coWiki +Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji coWiki Group: Applications/WWW Requires: %{name} = %{version}-%{release} @@ -60,21 +64,25 @@ Install this package to configure initial coWiki installation. You should uninstall this package when you're done, as it considered insecure to keep the setup files in place. -%description setup -l pl -Ten pakiet nale¿y zainstalowaæ w celu wstêpnej konfiguracji coWiki po -pierwszej instalacji. Potem nale¿y go odinstalowaæ, jako ¿e -pozostawienie plików instalacyjnych mog³oby byæ niebezpieczne. +%description setup -l pl.UTF-8 +Ten pakiet należy zainstalować w celu wstępnej konfiguracji coWiki po +pierwszej instalacji. Potem należy go odinstalować, jako że +pozostawienie plików instalacyjnych mogłoby być niebezpieczne. %prep %setup -q %{?_snap:-n %{name}-%{version}-interim-%{_snap}} %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 mv includes/cowiki/core.conf-dist . rm {htdocs,includes/cowiki}/.cvsignore mv htdocs/.htaccess . rm htdocs/setup/LICENSE # GPL +rm -f htdocs/include.path cat <<'EOF' > misc/database/mysql-grant.sql # this schema will grant MySQL database access @@ -82,15 +90,25 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON cowiki.* TO 'cowiki'@'localhost' IDENTIF '; EOF +cat <<'EOF' > php.ini +[PHP] +; Whether to allow the treatment of URLs (like http:// or ftp://) as files. +allow_url_fopen = On +EOF + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/cache/%{name}} +install -d $RPM_BUILD_ROOT/etc/php/apache{,2handler}.d cp -a htdocs includes misc $RPM_BUILD_ROOT%{_appdir} install core.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/core.conf install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf +cp -a php.ini $RPM_BUILD_ROOT/etc/php/apache.d/%{name}.ini +cp -a php.ini $RPM_BUILD_ROOT/etc/php/apache2handler.d/%{name}.ini + # for setup install LICENSE $RPM_BUILD_ROOT%{_appdir}/htdocs/setup install core.conf-dist $RPM_BUILD_ROOT%{_appdir}/includes/cowiki/core.conf-dist @@ -117,21 +135,21 @@ if [ "$1" = "0" ]; then fi %post setup -chgrp http %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki} -chmod g+w %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki} +chgrp http %{_appdir}/{htdocs,includes/cowiki} +chmod g+w %{_appdir}/{htdocs,includes/cowiki} rm -f %{_appdir}/htdocs/install.seal %postun setup if [ "$1" = "0" ]; then - chgrp root %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki} - chmod g-w %{_appdir}/{htdocs/include.path,htdocs,includes/cowiki} + chgrp root %{_appdir}/{htdocs,includes/cowiki} + chmod g-w %{_appdir}/{htdocs,includes/cowiki} touch %{_appdir}/htdocs/install.seal fi -%triggerin -- apache1 +%triggerin -- apache1 < 1.3.37-3, apache1-base %webapp_register apache %{_webapp} -%triggerun -- apache1 +%triggerun -- apache1 < 1.3.37-3, apache1-base %webapp_unregister apache %{_webapp} %triggerin -- apache < 2.2.0, apache-base @@ -140,43 +158,6 @@ fi %triggerun -- apache < 2.2.0, apache-base %webapp_unregister httpd %{_webapp} -# cache dir moved -%triggerun -- %{name} < 0.4.0-0.20050618.3 -# FIXME could suffer too many arguments error -rm -f /var/lib/%{name}/* - -%triggerpostun -- %{name} < 0.4.0-0.20060206.0.2 -# rescue app config -if [ -f /etc/%{name}/core.conf.rpmsave ]; then - mv -f %{_sysconfdir}/core.conf{,.rpmnew} - mv -f /etc/%{name}/core.conf.rpmsave %{_sysconfdir}/core.conf -fi -# migrate from apache-config macros -if [ -f /etc/%{name}/apache.conf.rpmsave ]; then - if [ -d /etc/apache/webapps.d ]; then - cp -f %{_sysconfdir}/apache.conf{,.rpmnew} - cp -f /etc/%{name}/apache.conf.rpmsave %{_sysconfdir}/apache.conf - fi - - if [ -d /etc/httpd/webapps.d ]; then - cp -f %{_sysconfdir}/httpd.conf{,.rpmnew} - cp -f /etc/%{name}/apache.conf.rpmsave %{_sysconfdir}/httpd.conf - fi - rm -f /etc/%{name}/apache.conf.rpmsave -fi - -# migrating from earlier apache-config? -if [ -L /etc/apache/conf.d/99_%{name}.conf ]; then - rm -f /etc/apache/conf.d/99_%{name}.conf - /usr/sbin/webapp register apache %{_webapp} - %service -q apache reload -fi -if [ -L /etc/httpd/httpd.conf/99_%{name}.conf ]; then - rm -f /etc/httpd/httpd.conf/99_%{name}.conf - /usr/sbin/webapp register httpd %{_webapp} - %service -q httpd reload -fi - %files %defattr(644,root,root,755) %doc ChangeLog INSTALL* NEWS @@ -186,6 +167,8 @@ fi %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/core.conf +%config(noreplace) %verify(not md5 mtime size) /etc/php/apache.d/%{name}.ini +%config(noreplace) %verify(not md5 mtime size) /etc/php/apache2handler.d/%{name}.ini %dir %{_appdir} %{_appdir}/misc @@ -201,7 +184,6 @@ fi %{_appdir}/htdocs/*.txt %{_appdir}/htdocs/*.php %{_appdir}/htdocs/favicon.ico -%{_appdir}/htdocs/include.path %dir %attr(770,root,http) /var/cache/%{name}