File HxCFloppyEmulator.spec of Package HxCFloppyEmulator

##
# spec file for package HxCFloppyEmulator
#
# Copyright (c) 2020-2025 SUSE LLC
#
# 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/
#

Name:           HxCFloppyEmulator
Version:        2.16.13.1
Release:        0
Summary:        HxCFloppyEmulator
License:        GPL-2.0-or-later
Group:          System/Emulators/Other
URL:            https://github.com/jfdelnero/HxCFloppyEmulator
Source:         %{name}-HxCFloppyEmulator_V2_16_13_1.tar.gz
Source1:        %{name}-rpmlintrc
Patch1:         0001-Use-vendor-fltk.patch
Patch2:         0002-Fix-prototype.patch

BuildRequires:  fltk-devel
BuildRequires:  gcc-c++
BuildRequires:  libexpat-devel
BuildRequires:  zlib-devel
BuildRequires:  fdupes

# Replaces all previous versions
Provides: hxcfe
Provides: hxcfe-gui
Provides: libhxcadaptor
Provides: libhxcfe
Provides: libusbhxcfe
Conflicts: hxcfe < %{version}
Conflicts: hxcfe-gui < %{version}
Conflicts: libhxcadaptor < %{version}
Conflicts: libhxcfe < %{version}
Conflicts: libusbhxcfe < %{version}

%description
HxCFloppyEmulator

%prep
%autosetup -p1 -n %{name}-HxCFloppyEmulator_V2_16_13_1

%build
(cd build; make %{?_smp_mflags})

%install
install -d -m 755 %{buildroot}%{_libdir}
install -m 755 build/*.so %{buildroot}%{_libdir}
install -m 644 build/*.a %{buildroot}%{_libdir}
install -d -m 755 %{buildroot}%{_bindir}
install build/hxcfe build/hxcfloppyemulator %{buildroot}%{_bindir}

%fdupes %{buildroot}

%files
%defattr(-,root,root)
%doc hxcfloppyemulator_soft_release_notes.txt readme*
%license HxCFloppyEmulator_software/COPYING_FULL
%{_bindir}/*
%{_libdir}/*

%changelog
openSUSE Build Service is sponsored by