File mediawiki-math.spec of Package mediawiki-math

#
# spec file for package mediawiki-math
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2011, 2015 Weberhofer GmbH, Austria
#
# 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/
#


%define        mediawiki_shared   %{_datadir}/php//mediawiki
Name:           mediawiki-math
Version:        1.33.0
Release:        0
Summary:        Mediawiki extension to render mathematical formulas
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Web/Utilities
URL:            https://www.mediawiki.org
Source0:        https://extdist.wmflabs.org/dist/extensions/Math-REL1_33-183fd5c.tar.gz
BuildRequires:  fdupes
Requires:       mediawiki >= 1.33
Requires:       php-curl
BuildArch:      noarch

%description
Math extension provides support for rendering mathematical formulas on-wiki via texvc.
It was a part of the core MediaWiki software until MediaWiki 1.18

%prep
%setup -q -n Math

# texvc extension will be built in a seperate module
rm -rf math

%build

%install
install -d -m 0755 %{buildroot}%{mediawiki_shared}/extensions/Math
cp -a * %{buildroot}%{mediawiki_shared}/extensions/Math

%fdupes %{buildroot}%{mediawiki_shared}/extensions/Math/

%files
%defattr(-, root, root, 0755)
%dir %{_datadir}/php
%dir %{mediawiki_shared}
%dir %{mediawiki_shared}/extensions
%{mediawiki_shared}/extensions/Math

%changelog
openSUSE Build Service is sponsored by