File xmlcopyeditor.spec of Package xmlcopyeditor

#
# spec file for package xmlcopyeditor
#
# Copyright (c) 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:           xmlcopyeditor
Version:        1.3.1.0
Release:        0
Summary:        A fast, free, validating XML editor
License:        GPL-2.0-or-later
URL:            https://xml-copy-editor.sourceforge.net/
Source:         https://downloads.sourceforge.net/project/xml-copy-editor/%{name}-linux/%{version}/%{name}-%{version}.tar.gz
Patch0:         fix-build.patch
BuildRequires:  aspell-devel
BuildRequires:  boost-devel
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  wxGTK3-3_2-devel
BuildRequires:  pkgconfig(enchant-2)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libpcre2-8)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(xerces-c)

%description
XML Copy Editor is a fast, free, validating XML editor.

%lang_package

%prep
%autosetup -p1
dos2unix AUTHORS

%build
%configure \
  --with-gtk=3.0
%make_build

%install
%make_install
%fdupes %{buildroot}
%find_lang %{name} %{?no_lang_C}

%files
%doc AUTHORS
%license src/copying/xmlcopyeditor/copying.txt
%{_datadir}/metainfo/%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_mandir}/man?/%{name}.?%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by