OBS User unknown 2009-02-06 16:11:30 +00:00 committed by Git OBS Bridge
parent 5047a8d754
commit b3ecaa8df2
2 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 4 02:58:54 CET 2009 - crrodriguez@suse.de
- move shared libraries to /%{_lib} so ifplugd can use them
- remove static libraries again
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 27 17:57:08 CET 2009 - seife@suse.de Tue Jan 27 17:57:08 CET 2009 - seife@suse.de

View File

@ -22,7 +22,7 @@ Name: libdaemon
BuildRequires: doxygen BuildRequires: doxygen
Url: http://0pointer.de/lennart/projects/libdaemon/ Url: http://0pointer.de/lennart/projects/libdaemon/
Version: 0.13 Version: 0.13
Release: 2 Release: 3
Summary: Lightweight C library That Eases the Writing of UNIX Daemons Summary: Lightweight C library That Eases the Writing of UNIX Daemons
License: LGPL v2.1 or later License: LGPL v2.1 or later
Group: System/Libraries Group: System/Libraries
@ -133,12 +133,16 @@ Authors:
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-lynx --with-pic %configure --libdir=/%{_lib} --disable-lynx --disable-static --with-pic
make %{__make} %{?jobs:-j%jobs}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}%{_libdir}/libdaemon.la rm -f %{buildroot}/%{_lib}/libdaemon.la
%{__install} -d -m 0755 %{buildroot}%{_libdir}/pkgconfig
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
%{__mv} -v %{buildroot}/%{_lib}/pkgconfig/%{name}.pc %{buildroot}%{_libdir}/pkgconfig
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -149,17 +153,19 @@ rm -rf $RPM_BUILD_ROOT
%files -n libdaemon0 %files -n libdaemon0
%defattr (-,root,root) %defattr (-,root,root)
%{_libdir}/libdaemon.so.0* /%{_lib}/libdaemon.so.0*
%files devel %files devel
%defattr (-,root,root) %defattr (-,root,root)
%{_libdir}/libdaemon.so %{_libdir}/libdaemon.so
%{_libdir}/libdaemon.a
%{_libdir}/pkgconfig/libdaemon.pc %{_libdir}/pkgconfig/libdaemon.pc
%dir %{_includedir}/libdaemon %dir %{_includedir}/libdaemon
%{_includedir}/libdaemon/*.h %{_includedir}/libdaemon/*.h
%changelog %changelog
* Wed Feb 04 2009 crrodriguez@suse.de
- move shared libraries to /%%{_lib} so ifplugd can use them
- remove static libraries again
* Tue Jan 27 2009 seife@suse.de * Tue Jan 27 2009 seife@suse.de
- mark filedescritor as closed after closing it, preventing - mark filedescritor as closed after closing it, preventing
application errors in e.g. avahi (bnc#469342, bnc#442210) application errors in e.g. avahi (bnc#469342, bnc#442210)