File mingw64-ancient.spec of Package mingw64-ancient
#
# spec file for package mingw64-ancient
#
# Copyright (c) 2023-2024, 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 http://bugs.opensuse.org/
#
%define sover 2
%define libname libancient%{sover}
Name: mingw64-ancient
Version: 2.2.0
Release: 0
Summary: Decompression routines for ancient formats
License: BSD-2-Clause
Group: Development/Libraries/C and C++
#Git-Clone: https://github.com/temisu/ancient.git
URL: https://github.com/temisu/ancient/
Source: https://github.com/temisu/ancient/archive/refs/tags/v%{version}.tar.gz#/ancient-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: libtool
BuildRequires: make
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem
#!BuildIgnore: post-build-checks
%_mingw64_package_header_debug
BuildArch: noarch
%description
This is a collection of decompression routines for old formats popular
in the Amiga, Atari computers and some other systems from 80's and 90's
as well as some that are currently used which were used in a some
specific way in these old systems.
For simple usage both a simple command line application as well as a
simple API to use the decompressors are provided. The compression
algorithm is automatically detected in most cases, however there are some
corner cases where it is not entirely reliable due to weaknesses in the
old format used.
%package -n mingw64-%{libname}
Summary: Decompression library for ancient formats
Group: System/Libraries
%description -n mingw64-%{libname}
This package provides the shared library for the decompression routines
for ancient formats.
%package -n mingw64-ancient-devel
Summary: Mingw64 development files for libancient
Group: Development/Libraries/C and C++
Requires: mingw64-%{libname} = %{version}
%description -n mingw64-ancient-devel
This subpackage contains libraries and header files for developing
applications that want to make use of libancient.
%_mingw64_debug_package
%prep
%setup -q -n ancient-%{version}
%build
autoreconf -fiv
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_make_install}
%files -n mingw64-%{libname}
%license LICENSE
%doc README.md
%exclude %{_mingw64_datadir}/doc/ancient/LICENSE
%exclude %{_mingw64_datadir}/doc/ancient/README.md
%{_mingw64_bindir}/libancient-2.dll
%files -n mingw64-ancient-devel
%{_mingw64_bindir}/ancient.exe
%{_mingw64_includedir}/ancient
%{_mingw64_libdir}/libancient.dll.a
%{_mingw64_libdir}/pkgconfig/libancient.pc
%changelog