- Bump cmake_minimum_required to 3.5, to allow building with
CMake 4.0.
- Bump cmake_minimum_required to 3.10 to be more future proof.
OBS-URL: https://build.opensuse.org/package/show/graphics/libansilove?expand=0&rev=32
97 lines
3.1 KiB
RPMSpec
97 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package libansilove
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
# Copyright (c) 2019-2025, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global sover 1
|
|
%global libname %{name}%{sover}
|
|
Name: libansilove
|
|
Version: 1.4.2
|
|
Release: 0
|
|
Summary: Library for converting ANSI, ASCII, and other formats to PNG
|
|
License: BSD-2-Clause
|
|
Group: Productivity/Graphics/Other
|
|
URL: https://www.ansilove.org
|
|
#Git-Clone: https://github.com/ansilove/libansilove.git
|
|
Source: https://github.com/ansilove/libansilove/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.10
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(gdlib)
|
|
|
|
%description
|
|
libansilove is a library to convert ANSi and artscene related file
|
|
formats into PNG images.
|
|
|
|
The following formats are supported:
|
|
|
|
- .ANS - ANSi (ANSI escape sequences: ANSI X3.64 standard)
|
|
- .PCB - PCBoard Bulletin Board System (BBS) own file format
|
|
- .BIN - Binary format (raw memory copy of text mode video memory)
|
|
- .ADF - Artworx format, supporting custom character sets and palettes
|
|
- .IDF - iCE Draw format, supporting custom character sets and palettes
|
|
- .TND - TundraDraw format, supporting 24-bit color mode
|
|
- .XB - The eXtended Binary XBin format, supporting custom character
|
|
sets and palettes
|
|
|
|
%package -n %{libname}
|
|
Summary: Library for converting ANSI, ASCII, and other formats to PNG
|
|
Group: Productivity/Graphics/Other
|
|
|
|
%description -n %{libname}
|
|
This library contains shared code regarding the conversion of ANSI and
|
|
artscene related file formats into PNG images.
|
|
|
|
%package devel
|
|
Summary: Library for converting ANSI, ASCII, and other formats to PNG
|
|
Group: Productivity/Graphics/Other
|
|
Requires: %{libname} = %{version}
|
|
|
|
%description devel
|
|
This library contains shared code regarding the conversion of ANSI and
|
|
artscene related file formats into PNG images.
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of libansilove.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# Only keep the shared library
|
|
rm %{buildroot}%{_libdir}/libansilove-static.a
|
|
|
|
%ldconfig_scriptlets -n %{libname}
|
|
|
|
%files -n %{libname}
|
|
%license LICENSE
|
|
%doc AUTHORS ChangeLog README.md
|
|
%{_libdir}/libansilove.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_includedir}/ansilove.h
|
|
%{_libdir}/libansilove.so
|
|
%{_mandir}/man3/libansilove.3%{?ext_man}
|
|
%{_mandir}/man3/ansilove_*.3%{?ext_man}
|
|
|
|
%changelog
|