Hi, this is my first attempt at making an RPM. In the software's install script it installs libs in /usr/lib when on fedora x86_64 it should be /usr/lib64 or it doesn't work. Is there a way I can mv the lib to correct location while installing ?
Also installing the package fails with this error:
Resolving Dependencies
--> Running transaction check
---> Package eiskaltdcpp.x86_64 0:2.2.2-1.fc15 will be installed
--> Processing Dependency: /usr/bin/php5 for package: eiskaltdcpp-2.2.2-1.fc15.x86_64
--> Processing Dependency: /usr/bin/php5 for package: eiskaltdcpp-2.2.2-1.fc15.x86_64
--> Finished Dependency Resolution
Error: Package: eiskaltdcpp-2.2.2-1.fc15.x86_64 (/eiskaltdcpp-2.2.2-1.fc15.x86_64)
Requires: /usr/bin/php5
But I have php-cli installed. The binary is called php and not php5 how do I tell it to use that ?
Spec file:
Name: eiskaltdcpp
Version: 2.2.2
Release: 1%{?dist}
Summary: Eiskaltdcpp Direct Connect protocol client
License: GPLv3
URL:
http://code.google.com/p/eiskaltdc/
Source0:
http://eiskaltdc.googlecode.com/file...p-2.2.2.tar.xz
BuildRequires: cmake, gcc, zlib-devel, bzip2-devel, lua-devel
BuildRequires: pkgconfig, boost-devel, aspell-devel, openssl-devel
BuildRequires: subversion, git, libidn-devel, qt-devel, gcc-c++
Requires: qt, qt-x11, bzip2, zlib, php-cli
Requires: gettext, openssl, lua, aspell
%description
%prep
%setup -q
%build
mkdir -p builddir && cd builddir
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT/usr -DUSE_QT=ON -DUSE_GTK=OFF -DUSE_JS=ON -DUSE_ASPELL=ON -DFREE_SPACE_BAR_C=ON -DCREATE_MO=ON -DLUA_SCRIPT=ON -DWITH_SOUNDS=ON -DWITH_LUASCRIPTS=ON -DUSE_MINIUPNP=OFF ../
make -j2
make install
%files
%defattr(-,root,root)
%{_bindir}/eiskaltdcpp-qt
/usr/lib/libeiskaltdcpp.so.2.2
/usr/share/*
%doc
%changelog