For many years i used centos linux and today i wanna migrate to rocky linux 9, I have to use at my work mapserver software so I try to prepare rpm package for rocky linux but without success, For centos 7 i prepare it in this way: [SOLVED]Build rpm package mapserver 7.6.2 - CentOS
Or show me some tips what i have to change and where to prepare correct spec file. Maybe it is possible to add this (mapserver) rpm to epel repository for rocky linux?
Do not use rpmbuild directly to build an RPM, you should be using mock.
You’ve not provided enough information to help troubleshoot why it isn’t working for you. The main problem I see with the spec file is that it is using an unversioned python (python-devel, and __python macro). It needs to be explicit.
The other issue I see is that this version is older than what is in Fedora (7.0.7 is quite old, though 7.6.2 is mentioned in that CentOS forum post). Fedora has 7.6.4. Downloading the source RPM from Fedora and building with mock yields positive results:
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELEASE
CMAKE_INSTALL_DO_STRIP
INCLUDE_INSTALL_DIR
LIB_INSTALL_DIR
LIB_SUFFIX
ORACLE_INCLUDE_DIR
SHARE_INSTALL_PREFIX
SYSCONF_INSTALL_DIR
WITH_GDAL
WITH_OGR
WITH_PHP
WITH_PROJ
-- Build files have been written to: /root/rpmbuild/BUILD/mapserver-8.0.0/build/redhat-linux-build
+ make
make: *** No targets specified and no makefile found. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.LqaCPk (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.LqaCPk (%build)
when i try to build rpm i receive this information
for centos 7 i manged to built mapserver 7.6.4 version but the newest is too complicated and centos 7 will be no longer support than to 2024 so i try to migrate to rocky 9 and build it for rocky 9, in my situation i have no choice
I’m not sure if fc38 matches with rocky 9, but how to check it?Do you think that it can be impossible to build rpm package with the newest version mapserver for rocky linux 9?
what’s strange today i try to build package mapserver for fc37 and mistake is the same like for fc38.
For fc37 is mapserver 7.6.4.17 and for fc38 is 8.0.0.2. The only version that i manged to build correctly in rocky linux 9 is still version 7.6.4.11 fo fc36. I wonder what i do wrong?
There’s also a forum post about building from source, e.g. setting up build dirs, and installing ‘devel’ packages, step, 1, 2, 3
‘Gaming in Rocky - #25 by gerry666uk’
In the meantime, maybe they’ll add it to ‘epel’ or something.