I'm trying to build a package using rpmbuild on 64-bit CentOS 6.3 server.
Here is the spec
file:
Name: test-fms
Version: 1.0
Release: 1%{?dist}
Summary: my FMS Package
Group: Applications/Internet
License: Nobody.
URL: http://www.bla.com
Provides: test-fms = %{version}-%{release}
%description
test FMS server.
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT
cp -r /workspace/%{name}/* $RPM_BUILD_ROOT/
%post
%clean
\rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/opt/adobe/fms
When trying to install the package on another 64-bit CentOS 6.3 server, i get the following errors:
--> Finished Dependency Resolution
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: /usr/local/bin/perl
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: librt.so.1
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libc.so.6
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libc.so.6(GLIBC_2.0)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libc.so.6(GLIBC_2.4)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libstdc++.so.6(GLIBCXX_3.4)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libpthread.so.0(GLIBC_2.1)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libpthread.so.0(GLIBC_2.0)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libgcc_s.so.1(GCC_3.0)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libgcc_s.so.1
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libc.so.6(GLIBC_2.1)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libcurl.so.3
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libstdc++.so.6
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libstdc++.so.6(CXXABI_1.3)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libdl.so.2
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libpthread.so.0(GLIBC_2.3.2)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libpthread.so.0
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libc.so.6(GLIBC_2.1.3)
Error: Package: test-fms-1.0-1.el6.x86_64 (myrepo)
Requires: libm.so.6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Although the RPM was built on 64-bit, it requires 32-bit packages, for example, for the glibc
package, i have the 64-bit package installed, but the RPM dependencies requires libc.so.6
:
[root@test ~]# yum provides libc.so.6
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.spd.co.il
* extras: centos.spd.co.il
* updates: centos.spd.co.il
updates/primary_db | 4.6 MB 00:04
glibc-2.12-1.80.el6.i686 : The GNU libc libraries
Repo : base
Matched from:
Other : libc.so.6
After playing with the spec file for a while I noticed that if I delete the %files
part from the spec file, than no requirements are needed.
How can I fix this? what am I doing wrong?
Why does the RPM automatically adds the requirements? can I control it somehow?