I am trying to build my own RPM package with files and directories, I am trying to unpack the files and directories in the package under /usr/lib/python2.7/site-packages/
till now I am successful with RPM build but when I install it using command
rpm -ivh mypackage.rpm
it always unpacks all directories under rpm package in root (/) directory
Here is my spec file
Name: mx_module
Version: 1
Release: 0
Summary: An test script to see RPM working
BuildArch: noarch
License: GPL
Source0: mx_module-1.0.tar.gz
%description
I am suppose to write some description here but I don't want to :(.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/config/
cp -a config/ %{buildroot}/config/
cp -a ott_cms/ %{buildroot}/
cp -a truss_crud/ %{buildroot}/
%files
/config
/ott_cms
/truss_crud
%changelog
* Thu May 23 2019 Abhishek 1.0.0
- Initial rpm release
I expect the installation of the package should be inside /usr/lib/python2.7/site-packages/ and not root(/) directory
usrdirectory that actually containsliband so on). Do you have that in your package? - Federico klez Culloca/usr/lib/python2.7/site-packageswhen the rpm is installed, your rpm should contain a/usr/lib/python2.7/site-packageswhich will itself contain your/config,/ott_cmsand/truss_cruddirectories. - Federico klez Culloca