File xmlcopyeditor.spec of Package xmlcopyeditor
#
# spec file for package xmlcopyeditor
#
# norootforbuild
Name: xmlcopyeditor
Version: 1.2.1.3
Release: 1
Summary: A fast, free, validating XML editor
License: GPL-2.0
Group: Productivity/Publishing/XML
URL: http://xml-copy-editor.sourceforge.net/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: aspell-devel boost-devel fdupes gcc-c++ libexpat-devel libXerces-c-devel libxslt-devel pcre-devel update-desktop-files wxWidgets-devel intltool
%description
XML Copy Editor is a fast, free, validating XML editor.
%prep
%setup -q
%__chmod 0644 AUTHORS
%build
# SSE2 is enabled in Xerces-C++ library. Xerces-C++ didn't use them in a thread-safe way. It may cause program crashes (segmentation faults).
# If it happens, please try compiling Xerces-C++ with SSE2 disabled (-mno-sse2).
export CPPFLAGS=$RPM_OPT_FLAGS
%configure
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -r xmlcopyeditor Utility TextEditor
%find_lang %name
%fdupes %{buildroot}
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/xmlcopyeditor
%{_datadir}/applications/xmlcopyeditor.desktop
%{_datadir}/pixmaps/xmlcopyeditor.png
%{_datadir}/xmlcopyeditor
%{_mandir}/man1/xmlcopyeditor.1.gz
%exclude %{_datadir}/appdata/xmlcopyeditor.appdata.xml
%changelog