Accepting request 59747 from home:andreas_hanke:branches:Base:System

OBS-URL: https://build.opensuse.org/request/show/59747
OBS-URL: https://build.opensuse.org/package/show/Base:System/popt?expand=0&rev=23
This commit is contained in:
Cristian Rodríguez 2011-02-04 01:34:13 +00:00 committed by Git OBS Bridge
parent 3592957273
commit d3ae64c4e9
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 2 08:35:00 UTC 2011 - andreas.hanke@gmx-topmail.de
- don't build libpopt.a
- move libpopt.so from /%{_lib} to %{_libdir} and fix popt.pc to have
libdir=%{_libdir} instead of libdir=/%{_lib}
- don't list popt.mo files twice
-------------------------------------------------------------------
Sun Jan 16 14:25:52 UTC 2011 - coolo@novell.com

View File

@ -69,13 +69,15 @@ API documentation of the popt library, too.
%setup -q
%build
%configure --libdir=/%{_lib}
%configure --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.a
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.la
rm $RPM_BUILD_ROOT%{_libdir}/libpopt.{la,so}
install -d -m755 $RPM_BUILD_ROOT/%{_lib}
mv $RPM_BUILD_ROOT%{_libdir}/libpopt.so.* $RPM_BUILD_ROOT/%{_lib}
ln -s /%{_lib}/libpopt.so.0 $RPM_BUILD_ROOT%{_libdir}/libpopt.so
%if "%{_libdir}" != "%{_prefix}/lib"
install -d -m755 %{buildroot}/%{_libdir}/pkgconfig
mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
@ -93,12 +95,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%doc CHANGES COPYING
/%{_lib}/libpopt.so.*
/usr/share/locale/*/LC_MESSAGES/popt.mo
%files devel
%defattr(-,root,root)
%doc README
/%{_lib}/libpopt.so
%{_libdir}/libpopt.so
%{_includedir}/popt.h
%{_mandir}/man3/popt.3*
%{_libdir}/pkgconfig/popt.pc