diff --git a/libcaca.spec b/libcaca.spec index 48a06d9..c9ae989 100644 --- a/libcaca.spec +++ b/libcaca.spec @@ -1,3 +1,4 @@ +# Drop this when EL7 is EOL %{!?ruby_vendorlibdir: %global ruby_vendorlibdir %(ruby -r rbconfig -e 'print RbConfig::CONFIG["vendorlibdir"]')} %{!?ruby_vendorarchdir: %global ruby_vendorarchdir %(ruby -r rbconfig -e 'print RbConfig::CONFIG["vendorarchdir"]')} @@ -14,12 +15,12 @@ Source0: https://github.com/cacalabs/libcaca/releases/download/v%{version}.%{bet Patch0: libcaca-0.99.beta16-multilib.patch Buildrequires: doxygen +BuildRequires: freeglut-devel BuildRequires: gcc-c++ -BuildRequires: glut-devel BuildRequires: make BuildRequires: slang-devel BuildRequires: libX11-devel -BuildRequires: libGLU-devel +BuildRequires: mesa-libGLU-devel BuildRequires: ncurses-devel BuildRequires: pkgconfig(imlib2) BuildRequires: pkgconfig(pangoft2) @@ -37,11 +38,11 @@ well as powerful image to text conversion routines. %package devel Summary: Development files for libcaca, the library for Colour AsCii Art -Requires: %{name} = %{version}-%{release} -Requires: glut-devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: freeglut-devel Requires: imlib2-devel -Requires: libGLU-devel Requires: libX11-devel +Requires: mesa-libGLU-devel Requires: ncurses-devel Requires: pango-devel Requires: slang-devel @@ -51,8 +52,8 @@ libcaca is the Colour AsCii Art library. It provides high level functions for color text drawing, simple primitives for line, polygon and ellipse drawing, as well as powerful image to text conversion routines. -This package contains the header files and static libraries needed to compile -applications or shared objects that use libcaca. +This package contains the header files needed to compile applications or shared +objects that use libcaca. %package -n caca-utils @@ -120,17 +121,16 @@ sed -i -e 's/sitearchdir/vendorarchdir/g' -e 's/sitelibdir/vendorlibdir/g' confi %make_build + %install %make_install find %{buildroot} -name "*.la" -delete # We want to include the docs ourselves from the source directory -rm -rf libcaca-dev-docs mv %{buildroot}%{_docdir}/libcaca-dev libcaca-dev-docs -# Remove symlink to libcaca-dev -rm -f %{buildroot}%{_docdir}/libcucul-dev +# Drop this when EL7 is EOL %{?ldconfig_scriptlets} @@ -148,7 +148,8 @@ rm -f %{buildroot}%{_docdir}/libcucul-dev %{_mandir}/man3/* %files -n caca-utils -%doc AUTHORS COPYING* NEWS NOTES README THANKS +%license COPYING* +%doc AUTHORS NEWS NOTES README THANKS %{_bindir}/cacaclock %{_bindir}/cacademo %{_bindir}/cacafire