repost: help and questions on first rpm

Dave dave.mehler at gmail.com
Thu Sep 3 11:48:19 UTC 2009


Hello,
	Not sure if this went through, my apologies if it is a duplicate.
	Assistance appreciated.
	Dave.


Hello,
	Newbie here, trying to make my first production rpm. Parts of my
spec file are below. My problem is twofold and i'm suspecting solve one
solve the other.
	The first issue is in the %files section, i have to hard code
library paths these are where perl modules go where the make install places
them. In this case make install is putting perl modules in /usr/lib and
subdirectories of it. Since i've hard coded the path running rpmlint on the
resulting rpm gives me errors about the execute bit being set.
	If i try using %{_libdir} instead of hard coding i get an error
about files being packaged but not referenced and rpm fails as in this
message.

error: Installed (but unpackaged) file(s) found:

	This is on an x86_64 system, and it looks like the libdir is trying
to be /usr/lib64 i've also tried adding --libdir to the commandline, no
good.
	Any help appreciated.
Thanks.	Thanks.
Dave.

Relevant portions of spec:
%build
%configure --sysconfdir=/etc/dkim --libdir=%{_libdir}64 make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8 install -p -m 644
scripts/dkimproxy_in.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -p -m 644
scripts/dkimproxy_out.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -D -m 644
scripts/dkimproxy_in.conf.example
%{buildroot}%{_sysconfdir}/dkim/%{name}_in.conf
install -D -m 644 scripts/dkimproxy_out.conf.example
%{buildroot}%{_sysconfdir}/dkim/%{name}_out.conf
# Init script
#install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/%{name}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README smtpprox.ChangeLog
smtpprox.README
%{_bindir}/dkim_responder.pl*
%{_bindir}/dkimproxy.in*
%{_bindir}/dkimproxy.out*
%{_bindir}/dkimsign.pl*
%{_bindir}/dkimverify.pl*
%config(noreplace) %{_sysconfdir}/dkim/dkimproxy_in.conf.example
%config(noreplace) %{_sysconfdir}/dkim/dkimproxy_in.conf
%config(noreplace) %{_sysconfdir}/dkim/dkimproxy_out.conf.example
%config(noreplace) %{_sysconfdir}/dkim/dkimproxy_out.conf
%{_mandir}/man8/*
%{_libdir}/LookupMap.pm
   %{_libdir}/MSDW/SMTP/Client.pm
   %{_libdir}/MSDW/SMTP/Server.pm
   %{_libdir}/MySmtpProxyServer.pm
   %{_libdir}/MySmtpServer.pm



More information about the Rpm-list mailing list