Ah oui je comprends pourquoi tu disais que mon fichier était en vrac...
Bon voici le nouveau :
Name: packmol
Version: 02Sep09
Release: 1%{?dist}
Summary: Packing Optimization for Molecular Dynamics Simulations
Group: Applications/Editors
License: GPLv3
URL: http://www.ime.unicamp.br/~martinez/packmol/
Source0: http://packmol.googlecode.com/files/%{name}.%{version}.tar.gz
Source1: COPYING
Source2: AUTHORS
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran
#Requires:
%description
Packmol creates an initial point for molecular dynamics simulations by packing
molecules in defined regions of space. The packing guarantees that short range
repulsive interactions do not disrupt the simulations.
The great variety of types of spatial constraints that can be attributed to
the molecules, or atoms within the molecules, makes it easy to create ordered
systems, such as lamellar, spherical or tubular lipid layers.
The user must provide only the coordinates of one molecule of each type, the
number of molecules of each type and the spatial constraints that each type of
molecule must satisfy.
The package is compatible with input files of PDB, TINKER, XYZ and MOLDY
formats.
%prep
%setup -q -n %{name}
cp -p %{SOURCE1} %{SOURCE2} .
%build
#%configure
#make %{?_smp_mflags}
make %{?_smp_mflags} -f Makefile.default FORTRAN=gfortran SERIALFLAGS="$RPM_OPT_FLAGS -ffast-math"
%install
#rm -rf $RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -m 755 packmol %{buildroot}%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/packmol
%doc AUTHORS COPYING
%changelog
* Wed Oct 14 2009 Fabien A. <marbolangos@gmail.com> - 02Sep09-1
-Creation of package
J'ai toujours un problème lorsque je fais : rpmbuild -bc --short-circuit packmol.spec
Il me dit :
+ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
which: unrecognized option '--build=x86_64-unknown-linux-gnu'
Usage: which [options] [--] COMMAND [...]
Write the full path of COMMAND(s) to standard output.
--version, -[vV] Print version and exit successfully.
--help, Print this help and exit successfully.
--skip-dot Skip directories in PATH that start with a dot.
--skip-tilde Skip directories in PATH that start with a tilde.
--show-dot Don't expand a dot to current directory in output.
--show-tilde Output a tilde for HOME directory for non-root.
--tty-only Stop processing options on the right if not on tty.
--all, -a Print all matches in PATH, not just the first
--read-alias, -i Read list of aliases from stdin.
--skip-alias Ignore option --read-alias; don't read stdin.
--read-functions Read shell functions from stdin.
--skip-functions Ignore option --read-functions; don't read stdin.
Recommended use is to write the output of (alias; declare -f) to standard
input, so that which can show aliases and shell functions. See which(1) for
examples.
If the options --read-alias and/or --read-functions are specified then the
output can be a full alias or function definition, optionally followed by
the full path of each command used inside of those.
Report bugs to <which-bugs@gnu.org>.
Setting compiler to /usr/bin/gfortran
Par contre tout le reste passe sans encombre. Je vois pas pourquoi il tente le configure alors qu'il n'est pas activé...
Ensuite il me crée bien les rpms. Par contre j'ai pas compris ta remarque sur le versioning...
Et pour couronner le tout rpmlint rale :
$ rpmlint packmol-02Sep09-1.f9.x86_64.rpm
packmol.x86_64: W: incoherent-version-in-changelog 02Sep09-1 ['02Sep09-1.f9', '02Sep09-1.f9']
1 packages and 0 specfiles checked; 0 errors, 1 warnings.
Je sais pas pourquoi il a envie de m'ajouter ce .f9. dans le nom du rpm...
Les deux autres rpms passent sans problème.