Clean up SPEC file
This commit is contained in:
parent
ad069f2f4b
commit
abfbaa4b85
108
libcaca.spec
108
libcaca.spec
@ -6,48 +6,53 @@
|
||||
Summary: Library for Colour AsCii Art, text mode graphics
|
||||
Name: libcaca
|
||||
Version: 0.99
|
||||
Release: 0.58.%{beta}%{?dist}
|
||||
Release: 0.59.%{beta}%{?dist}
|
||||
License: WTFPL
|
||||
URL: http://caca.zoy.org/wiki/libcaca
|
||||
|
||||
Source0: https://github.com/cacalabs/libcaca/releases/download/v%{version}.%{beta}/%{name}-%{version}.%{beta}.tar.bz2
|
||||
Patch0: libcaca-0.99.beta16-multilib.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: slang-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: glut-devel
|
||||
BuildRequires: libGLU-devel
|
||||
BuildRequires: imlib2-devel
|
||||
BuildRequires: pango-devel
|
||||
# For the docs
|
||||
|
||||
Buildrequires: doxygen
|
||||
Buildrequires: texlive-latex
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: glut-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: slang-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libGLU-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig(imlib2)
|
||||
BuildRequires: pkgconfig(pangoft2)
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: ruby
|
||||
BuildRequires: ruby-devel
|
||||
Buildrequires: texlive-dvips
|
||||
Buildrequires: texlive-latex
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libcaca, the library for Colour AsCii Art
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: slang-devel
|
||||
Requires: ncurses-devel
|
||||
Requires: libX11-devel
|
||||
Requires: glut-devel
|
||||
Requires: libGLU-devel
|
||||
Requires: imlib2-devel
|
||||
Requires: libGLU-devel
|
||||
Requires: libX11-devel
|
||||
Requires: ncurses-devel
|
||||
Requires: pango-devel
|
||||
Requires: slang-devel
|
||||
|
||||
%description devel
|
||||
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.
|
||||
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 and static libraries needed to compile
|
||||
applications or shared objects that use libcaca.
|
||||
|
||||
|
||||
%package -n caca-utils
|
||||
@ -57,22 +62,20 @@ Summary: Colour AsCii Art Text mode graphics utilities based on libcaca
|
||||
This package contains utilities and demonstration programs for libcaca, the
|
||||
Colour AsCii Art library.
|
||||
|
||||
cacaview is a simple image viewer for the terminal. It opens most image
|
||||
formats such as JPEG, PNG, GIF etc. and renders them on the terminal using
|
||||
ASCII art. The user can zoom and scroll the image, set the dithering method
|
||||
or enable anti-aliasing.
|
||||
cacaview is a simple image viewer for the terminal. It opens most image formats
|
||||
such as JPEG, PNG, GIF etc. and renders them on the terminal using ASCII art.
|
||||
The user can zoom and scroll the image, set the dithering method or enable
|
||||
anti-aliasing.
|
||||
|
||||
cacaball is a tiny graphic program that renders animated ASCII metaballs on
|
||||
the screen, cacafire is a port of AALib's aafire and displays burning ASCII
|
||||
art flames, and cacademo is a simple application that shows the libcaca
|
||||
rendering features such as line and ellipses drawing, triangle filling and
|
||||
sprite blitting.
|
||||
cacaball is a tiny graphic program that renders animated ASCII metaballs on the
|
||||
screen, cacafire is a port of AALib's aafire and displays burning ASCII art
|
||||
flames, and cacademo is a simple application that shows the libcaca rendering
|
||||
features such as line and ellipses drawing, triangle filling and sprite
|
||||
blitting.
|
||||
|
||||
|
||||
%package -n python3-caca
|
||||
Summary: Python bindings for libcaca
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description -n python3-caca
|
||||
This package contains the python bindings for using libcaca from python.
|
||||
@ -81,8 +84,6 @@ This package contains the python bindings for using libcaca from python.
|
||||
%package -n ruby-caca
|
||||
Summary: Ruby bindings for libcaca
|
||||
Requires: ruby(release)
|
||||
BuildRequires: ruby, ruby-devel
|
||||
BuildRequires: make
|
||||
Provides: ruby(caca) = %{version}-%{release}
|
||||
|
||||
%description -n ruby-caca
|
||||
@ -90,8 +91,8 @@ This package contains the ruby bindings for using libcaca from ruby.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n libcaca-%{version}.%{beta}
|
||||
%patch0 -p1 -b .multilib
|
||||
%autosetup -p1 -n libcaca-%{version}.%{beta}
|
||||
|
||||
for file in python/examples/*.py; do
|
||||
sed -e 's|/usr/bin/env python$|%{__python3}|g' ${file} > ${file}.tmp
|
||||
touch -r ${file} ${file}.tmp
|
||||
@ -110,35 +111,31 @@ done
|
||||
|
||||
export LDFLAGS="$(pkg-config --libs gio-2.0) $LDFLAGS"
|
||||
|
||||
sed -i -e 's|Config::CONFIG\["sitearchdir"\]|Config::CONFIG["vendorarchdir"]|' \
|
||||
-e 's|Config::CONFIG\["sitelibdir"\]|Config::CONFIG["vendorlibdir"]|' \
|
||||
-e "s|rbconfig -e 'print Config|rbconfig -e 'print RbConfig|g" \
|
||||
configure
|
||||
sed -i -e 's/sitearchdir/vendorarchdir/g' -e 's/sitelibdir/vendorlibdir/g' configure
|
||||
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-csharp \
|
||||
--disable-java
|
||||
# Remove useless rpath
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot} libcaca-dev-docs
|
||||
make install DESTDIR=%{buildroot}
|
||||
%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
|
||||
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%{?ldconfig_scriptlets}
|
||||
|
||||
|
||||
%files
|
||||
%doc COPYING
|
||||
%license COPYING
|
||||
%{_libdir}/*.so.0*
|
||||
|
||||
%files devel
|
||||
@ -146,16 +143,15 @@ rm -f %{buildroot}%{_docdir}/libcucul-dev
|
||||
%{_bindir}/caca-config
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%exclude %{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_mandir}/man1/caca-config.1*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files -n caca-utils
|
||||
%doc AUTHORS COPYING* NEWS NOTES README THANKS
|
||||
%{_bindir}/cacaclock
|
||||
%{_bindir}/cacademo
|
||||
%{_bindir}/cacafire
|
||||
%{_bindir}/cacaclock
|
||||
%{_bindir}/cacaplay
|
||||
%{_bindir}/cacaserver
|
||||
%{_bindir}/cacaview
|
||||
@ -175,11 +171,13 @@ rm -f %{buildroot}%{_docdir}/libcucul-dev
|
||||
%files -n ruby-caca
|
||||
%doc ruby/README
|
||||
%{ruby_vendorlibdir}/caca.rb
|
||||
%exclude %{ruby_vendorarchdir}/caca.la
|
||||
%{ruby_vendorarchdir}/caca.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Mar 14 2022 Simone Caronni <negativo17@gmail.com> - 0.99-0.59.beta20
|
||||
- Clean up SPEC file.
|
||||
|
||||
* Wed Jan 26 2022 Vít Ondruch <vondruch@redhat.com> - 0.99-0.58.beta20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user