remi wrote:C'est quoi l'intérêt de refaire un paquet MySQL alors qu'il en existe déjà ?
UN script exécuté par le RPM doit être livré avec le RPM (donc listé dans le %file) mais ne sera jamais disponible dans le %pre (fichier par encore copié)
+
salut ,
j'ai ajoute le script au source et au %file voila mon nouveau mysql.spec
Name: mysql
Version: 14.12
Release: 1
Group: Development/Libraries
License: GPL
Source: mysql.bin.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
%description
This directory holds configuration files which allow MySQL to work with
different character sets. It contains:
*.conf
Each conf file contains four tables which describe character types,
lower- and upper-case equivalencies and sorting orders for the
character values in the set.
Index
The Index file lists all of the available charset configurations.
%pre
./install-package.sh
%build
cd usr/local/mysql
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--disable-maintainer-mode \
--with-mysqld-user=mysql \
--with-unix-socket-path=/tmp/mysql.sock \
--without-comment \
--without-debug \
--without-bench
make
%install
make install
a la creation de .rpm j'ai eu ce message d'erreur
+ ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-maintainer-mode --with-mysqld-user=mysql --with-unix-socket-path=/tmp/mysql.sock --without-comment --without-debug --without-bench
/var/tmp/rpm-tmp.83367: line 33: ./configure: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.83367 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.83367 (%build)
vouvez vous m'aider pour regler ce problem
Merci d'avance pour tout aide