From: duddits Date: Mon, 23 Mar 2009 22:01:09 +0000 (+0000) Subject: - rel. 0.1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=f01d17cc8f4c17bb62acfa54f18349a90354d91c;p=packages%2Ffltk2.git - rel. 0.1 - some workaround for broken soname, see comments in spec for more details - %files Changed files: fltk2.spec -> 1.7 --- diff --git a/fltk2.spec b/fltk2.spec index 1f87ff6..8b2a977 100644 --- a/fltk2.spec +++ b/fltk2.spec @@ -9,7 +9,7 @@ Summary(pl.UTF-8): FLTK - "lekki" X11 toolkit wersja 2.x Summary(pt_BR.UTF-8): Interface gráfica em C++ para X, OpenGL e Windows Name: fltk2 Version: 2.0.%{_snap} -Release: 1 +Release: 0.1 License: LGPL with amendments (see COPYING) Group: X11/Libraries Source0: http://ftp.easysw.com/pub/fltk/snapshots/%{_name}-%{_version}.x-%{_snap}.tar.bz2 @@ -116,6 +116,13 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3} %{__mv} documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1 %{__mv} documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man3/fltk.3 +# broken so linking, the idea stolen from +# https://bugzilla.redhat.com/show_bug.cgi?id=477683 +ln -fs libfltk2.so.2.0 $RPM_BUILD_ROOT%{_libdir}/libfltk2.so +ln -fs libfltk2_gl.so.2.0 $RPM_BUILD_ROOT%{_libdir}/libfltk2_gl.so +ln -fs libfltk2_glut.so.2.0 $RPM_BUILD_ROOT%{_libdir}/libfltk2_glut.so +ln -fs libfltk2_images.so.2.0 $RPM_BUILD_ROOT%{_libdir}/libfltk2_images.so + %clean rm -rf $RPM_BUILD_ROOT @@ -135,10 +142,10 @@ rm -rf $RPM_BUILD_ROOT %doc documentation/*.{html,gif,jpg} %attr(755,root,root) %{_bindir}/fltk2-config %attr(755,root,root) %{_bindir}/fluid2 -%attr(755,root,root) %{_libdir}/libfltk2.so -%attr(755,root,root) %{_libdir}/libfltk2_gl.so -%attr(755,root,root) %{_libdir}/libfltk2_glut.so -%attr(755,root,root) %{_libdir}/libfltk2_images.so +%attr(755,root,root) %ghost %{_libdir}/libfltk2.so +%attr(755,root,root) %ghost %{_libdir}/libfltk2_gl.so +%attr(755,root,root) %ghost %{_libdir}/libfltk2_glut.so +%attr(755,root,root) %ghost %{_libdir}/libfltk2_images.so %dir %{_includedir}/fltk %dir %{_includedir}/fltk/compat %dir %{_includedir}/fltk/compat/FL