stop moving libreadline under /lib

This is reverts e56f02adc2:
(05:39:16 PM) mlichvar: /lib is a symlink to /usr/lib these days, so I guess it doesn't matter
(05:39:44 PM) mlichvar: simpler spec is a better spec :)

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
Igor Gnatenko 2017-01-11 17:42:11 +01:00
parent d3056f6e5f
commit 7cb4544948

View File

@ -59,13 +59,6 @@ export CPPFLAGS="-I%{_includedir}/ncurses"
%install
%make_install
mkdir $RPM_BUILD_ROOT/%{_lib}
mv $RPM_BUILD_ROOT%{_libdir}/libreadline.so.* $RPM_BUILD_ROOT/%{_lib}
for l in $RPM_BUILD_ROOT%{_libdir}/libreadline.so; do
ln -sf $(echo %{_libdir} | \
sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
done
rm -rf $RPM_BUILD_ROOT%{_datadir}/readline
rm -rf $RPM_BUILD_ROOT%{_docdir}/readline
rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
@ -98,20 +91,23 @@ fi
%files
%license COPYING
%doc CHANGES NEWS README USAGE
/%{_lib}/libreadline*.so.*
%{_libdir}/libhistory*.so.*
%{_libdir}/libreadline.so.*
%{_libdir}/libhistory.so.*
%{_infodir}/history.info*
%{_infodir}/rluserman.info*
%files devel
%doc examples/*.c examples/*.h examples/rlfe
%{_includedir}/readline
%{_libdir}/lib*.so
%{_mandir}/man3/*
%{_includedir}/readline/
%{_libdir}/libreadline.so
%{_libdir}/libhistory.so
%{_mandir}/man3/readline.3*
%{_mandir}/man3/history.3*
%{_infodir}/readline.info*
%files static
%{_libdir}/lib*.a
%{_libdir}/libreadline.a
%{_libdir}/libhistory.a
%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.3-8