X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fltk2.spec;h=5a61f1c9dd7ea59ba32da586d96abecd0179b9e6;hb=ec5cf292fb51dce3d66a7142596c80c0c905847a;hp=a4824712d29765cef89996a95bab1c5df9beab11;hpb=8b9f0de0869b0180afafbb31880bddb9b5fa4059;p=packages%2Ffltk2.git diff --git a/fltk2.spec b/fltk2.spec index a482471..5a61f1c 100644 --- a/fltk2.spec +++ b/fltk2.spec @@ -9,15 +9,18 @@ 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 # Source0-md5: 6bcef5fd51eb3bc4dd0702f3ae6da6ba +Patch0: %{name}-rpath.patch +Patch1: %{name}-soname.patch URL: http://www.fltk.org/ BuildRequires: autoconf # don't build with cairo support if you're planning to use fltk2 with # dillo 2.x +BuildRequires: Mesa-libGLU-devel %{?with_cairo:BuildRequires: cairo-devel} BuildRequires: libstdc++-devel BuildRequires: rpmbuild(macros) >= 1.315 @@ -86,6 +89,8 @@ Bibliotecas estáticas para o FLTK2. %prep %setup -q -n %{_name}-%{_version}.x-%{_snap} +%patch0 -p0 +%patch1 -p0 %build %{__sed} -i -e '/fltk2-config/s/^\t/\t$(DESTDIR)/' fluid/Makefile @@ -115,6 +120,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 @@ -134,10 +146,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