still having spec file difficulties, FRUSTRATING!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
	I'm trying to make an rpm. I've posted and have received
suggestions, though i am still having the issue. I'm trying to make this rpm
on and for an x86_64 platform and to have it use the fhs, binaries in
/usr/bin, configs in /etc/programname dkim in this case. My problem comes in
the libraries. They are perl files modules actually and i've tried the below
in %files none of which has worked. Libdir on x86_64 is /usr/lib64, i can't
get the libraries to install there. I've tried adding --libdir=/usr/lib64 to
%configure, i've tried pattern replacement on the make file, i can get it to
work if i hard code paths in %files, but then rpmlint complains that i have
hard coded paths and also complains that the execute bit is set on these
files.
	Some urgency!!
	Help appreciated.	
Dave.


%prep
%setup -q

%build
%configure --sysconfdir=/etc/dkim
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

%clean
rm -rf $RPM_BUILD_ROOT

%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}/*dkim/*
#%{_libdir}/LookupMap.pm
   #%{_libdir}/MSDW/SMTP/Client.pm
   #%{_libdir}/MSDW/SMTP/Server.pm
   #%{_libdir}/MySmtpProxyServer.pm
   #%{_libdir}/MySmtpServer.pm

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux