SHA256
1
0
forked from pool/popt

revert parts that do not make sense and were not

answered

OBS-URL: https://build.opensuse.org/package/show/Base:System/popt?expand=0&rev=24
This commit is contained in:
Stephan Kulow 2011-03-17 13:03:54 +00:00 committed by Git OBS Bridge
parent d3ae64c4e9
commit 87844ba1a9
2 changed files with 4 additions and 8 deletions

View File

@ -2,8 +2,6 @@
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
-------------------------------------------------------------------

View File

@ -69,15 +69,13 @@ API documentation of the popt library, too.
%setup -q
%build
%configure --disable-static
%configure --libdir=/%{_lib} --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
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
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.a
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.la
%if "%{_libdir}" != "%{_prefix}/lib"
install -d -m755 %{buildroot}/%{_libdir}/pkgconfig
mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
@ -99,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root)
%doc README
%{_libdir}/libpopt.so
/%{_lib}/libpopt.so
%{_includedir}/popt.h
%{_mandir}/man3/popt.3*
%{_libdir}/pkgconfig/popt.pc