Need help with making RPM from v2.x.x branch

Fajar A. Nugraha list at fajar.net
Wed May 8 09:19:25 CEST 2013


On Wed, May 8, 2013 at 1:50 PM, Raithatha, Divyesh
<divyesh.raithatha at gmail.com> wrote:
> Thanks, I got past the README but now I am getting the following file not found errors.  They do exist, however, it looks like the build is looking for version 2.2.0 of the library files yet they are listed as 2.2.1.
>
>
> error: File not found: /home/test/rpmbuild/BUILDROOT/freeradius-2.2.0-1.el6.x86_64/etc/raddb/certs/README.rst

That's kinda tricky. Look at %files section in the spec file.

The cleanest solution right now would probably be changing "Version:
2.2.0" in the top of the make file to 2.2.1, AND rename your source
bz2 file to freeradius-server-2.2.1.tar.bz2.

Another way would be changing the files section, from (e.g.)

%{_libdir}/freeradius/rlm_acct_unique-%{version}.so

to

%{_libdir}/freeradius/rlm_acct_unique-*.so

... or even try deleting all rlm_* lines and replace them with a one-liner

%{_libdir}/freeradius/rlm_*.so*

-- 
Fajar


More information about the Freeradius-Users mailing list