A new user interface for you! Read more...

File mediawiki_1_27-ParamProcessor.spec of Package mediawiki_1_27-ParamProcessor

#
# Copyright (c) 2016 Christian Boltz
#
# 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 ext_name                ParamProcessor
%define ext_version             master
%define ext_source_file         %{ext_version}.tar.gz
%define mediawiki_base          mediawiki_1_27
%define ext_version_date        2016.11.13


# Note: this spec file is (mostly) shared between several mediawiki extension packages, only the defines above vary.
# You should not need to modify anything below - but if you do, add a comment to mark your modifications.

%define mediawiki_dir           %{_datadir}/%{mediawiki_base}
%define ext_dir                 %{mediawiki_dir}/extensions/%{ext_name}

Name:           %{mediawiki_base}-%{ext_name}
Version:        0.%{ext_version_date}
Release:        0
License:        GPL-2.0+
Summary:        MediaWiki %{ext_name} extension
Url:            http://www.mediawiki.org/wiki/Extension:%{ext_name}
Group:          Productivity/Networking/Web/Utilities
# different source
Source:         https://github.com/JeroenDeDauw/ParamProcessor/archive/%{ext_source_file}
Requires:       %{mediawiki_base}
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
MediaWiki %{ext_name} extension

%prep
# different dirname
%setup -q -n %{ext_name}-%{ext_version}

%build

%install
install -d -m 0755 %{buildroot}%{ext_dir}
cp -a * %{buildroot}%{ext_dir}
fdupes -s %{buildroot}%{ext_dir}

%files
%defattr(-,root,root)
%dir %{mediawiki_dir}
%dir %{mediawiki_dir}/extensions
%{ext_dir}