]> git.pld-linux.org Git - packages/drupal.git/blobdiff - drupal.spec
- update to 4.6.3. security update
[packages/drupal.git] / drupal.spec
index 498f7056543423ce248ccd7ad9bf7ca74f230760..754390a46d9ffee44960b84eec1b5eb80bd6d29e 100644 (file)
@@ -1,17 +1,15 @@
 Summary:       Open source content management platform
 Summary(pl):   Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
 Name:          drupal
-Version:       4.6.2
-Release:       0.7
+Version:       4.6.3
+Release:       0.1
 Epoch:         0
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{name}-%{version}.tar.gz
-# Source0-md5: 7bbee605d6b57052e27adb1a61685ec1
+# Source0-md5: f436973f02aa2cea15ef1ca90223082b
 Source1:       %{name}.conf
 Source2:       %{name}.cron
-Source3:       http://www.drupal.org/misc/favicon.ico
-# Source3-md5: f0ee98b4394dfdab17c16245dd799204
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-includedir.patch
 Patch2:                %{name}-module-themedir.patch
@@ -34,39 +32,6 @@ Requires:    php-mysql
 Requires:      php-pcre
 #Requires:     php-pgsql
 Requires:      php-xml
-# rpm -ql drupal | awk -F/ '/\.module$/{gsub("\.module", ""); printf("Provides:\tdrupal-mod-%s\n", $NF)}' >> drupal.spec
-Provides:      drupal-mod-aggregator
-Provides:      drupal-mod-archive
-Provides:      drupal-mod-block
-Provides:      drupal-mod-blog
-Provides:      drupal-mod-blogapi
-Provides:      drupal-mod-book
-Provides:      drupal-mod-comment
-Provides:      drupal-mod-contact
-Provides:      drupal-mod-drupal
-Provides:      drupal-mod-filter
-Provides:      drupal-mod-forum
-Provides:      drupal-mod-help
-Provides:      drupal-mod-legacy
-Provides:      drupal-mod-locale
-Provides:      drupal-mod-menu
-Provides:      drupal-mod-node
-Provides:      drupal-mod-page
-Provides:      drupal-mod-path
-Provides:      drupal-mod-ping
-Provides:      drupal-mod-poll
-Provides:      drupal-mod-profile
-Provides:      drupal-mod-queue
-Provides:      drupal-mod-search
-Provides:      drupal-mod-statistics
-Provides:      drupal-mod-story
-Provides:      drupal-mod-system
-Provides:      drupal-mod-taxonomy
-Provides:      drupal-mod-throttle
-Provides:      drupal-mod-tracker
-Provides:      drupal-mod-upload
-Provides:      drupal-mod-user
-Provides:      drupal-mod-watchdog
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -133,6 +98,22 @@ This package contains script which invokes cron hooks for Drupal.
 %description cron -l pl
 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
 
+%package xmlrpc
+Summary:       XMLRPC server for Drupal
+Summary(pl):   Serwer XMLRPC dla Drupala
+Group:         Applications/WWW
+Requires:      %{name} = %{version}-%{release}
+
+%description xmlrpc
+XMLRPC server for Drupal allows other Drupals authorize with your
+Drupal's user creditentials, this is called Distributed Authentication
+in Drupal world.
+
+%description xmlrpc -l pl
+Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
+danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
+nazywane rozproszonym uwierzytelnianiem.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -152,24 +133,26 @@ find -name '*~' | xargs -r rm -v
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir}/htdocs/files,%{_sysconfdir},/etc/cron.d}
+install -d $RPM_BUILD_ROOT{%{_appdir}/{po,modules/po,htdocs/{files,modules}},%{_sysconfdir},/etc/cron.d}
 
 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
+cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
 
 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
-cp -a includes modules scripts $RPM_BUILD_ROOT%{_appdir}
+cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
+cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
 
 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
+ln -s htdocs/files $RPM_BUILD_ROOT%{_appdir}/files
 
 # move .xtmpl/.theme out of htdocs
 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/htdocs
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -178,24 +161,24 @@ rm -rf $RPM_BUILD_ROOT
 if [ "$1" = 1 ]; then
 %banner -e %{name} <<EOF
 If this is your first install of Drupal, you need to create drupal database:
-shell$ mysqladmin create drupal
+mysqladmin create drupal
 
 and import initial schema:
-shell$ zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
+zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
 
-(anyway, read INSTALL file from documentation).
+Also read INSTALL from documentation!
 
 EOF
 fi
 
 %triggerin -- apache1 >= 1.3.33-2
-%apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
+%apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
 
 %triggerun -- apache1 >= 1.3.33-2
 %apache_config_uninstall -v 1
 
 %triggerin -- apache >= 2.0.0
-%apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
+%apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
 
 %triggerun -- apache >= 2.0.0
 %apache_config_uninstall -v 2
@@ -205,7 +188,7 @@ fi
 %doc *.txt database
 
 %attr(750,root,http) %dir %{_sysconfdir}
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 
 %attr(750,root,http) %dir %{_sysconfdir}/sites
 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
@@ -216,14 +199,23 @@ fi
 %{_appdir}/modules
 %{_appdir}/scripts
 %{_appdir}/themes
+%{_appdir}/po
+# symlink
+%{_appdir}/files
 
 %dir %{_appdir}/htdocs
-%{_appdir}/htdocs/*.*
+%{_appdir}/htdocs/*.ico
+%{_appdir}/htdocs/index.php
 %{_appdir}/htdocs/misc
 %{_appdir}/htdocs/themes
+%{_appdir}/htdocs/modules
 %dir %attr(775,root,http) %{_appdir}/htdocs/files
 
 %files cron
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
 %{_appdir}/cron.php
+
+%files xmlrpc
+%defattr(644,root,root,755)
+%{_appdir}/htdocs/xmlrpc.php
This page took 0.063472 seconds and 4 git commands to generate.