Moved the libraries from /usr/lib to /lib

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2010-12-02 15:41:51 -05:00
parent d8bfcae760
commit 4965abc7b0
1 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,8 @@
%define _root_libdir /%{_lib}
Name: libtirpc
Version: 0.2.1
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Transport Independent RPC Library
Group: System Environment/Libraries
License: SISSL and BSD
@ -62,9 +64,12 @@ make all
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/etc
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_root_libdir}
mkdir -p %{buildroot}%{_libdir}/pkgconfig
make install DESTDIR=%{buildroot} \
libdir=%{_root_libdir} pkgconfigdir=%{_libdir}/pkgconfig
# Don't package .a or .la files
rm -f %{buildroot}%{_libdir}/*.{a,la}
rm -f %{buildroot}%{_root_libdir}/*.{a,la}
# Creat the man diretory
mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
@ -81,7 +86,7 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
%postun devel
# Remove the existance of the man section
#makewhatis -s 3
#makewhatis -s 3t
%clean
@ -90,7 +95,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libtirpc.so.*
%{_root_libdir}/libtirpc.so.*
%config(noreplace)%{_sysconfdir}/netconfig
%files devel
@ -98,7 +103,7 @@ rm -rf %{buildroot}
%dir %{_includedir}/tirpc
%dir %{_includedir}/tirpc/rpc
%dir %{_includedir}/tirpc/rpcsvc
%{_libdir}/libtirpc.so
%{_root_libdir}/libtirpc.so
%{_libdir}/pkgconfig/libtirpc.pc
%{_includedir}/tirpc/netconfig.h
%{_includedir}/tirpc/rpc/auth.h
@ -134,6 +139,9 @@ rm -rf %{buildroot}
%{_mandir}/*/*
%changelog
* Thu Dec 2 2010 Steve Dickson <steved@redhat.com> 0.2.1-6
- Moved the libraries from /usr/lib to /lib
* Mon Aug 30 2010 Steve Dickson <steved@redhat.com> 0.2.1-5
- Relicense these SISSL files to 3 clause BSD
- Fixed last remaining BSD license issues