File mediawiki_1_27-HitCounters.spec of Package mediawiki_1_27-HitCounters

#
# Copyright (c) 2017 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                HitCounters
%define ext_source_file         HitCounters-REL1_27-66f2e2f.tar.gz
%define mediawiki_base          mediawiki_1_27
%define ext_version_date        2017.01.02


# 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
Source:         https://extdist.wmflabs.org/dist/extensions/%{ext_source_file}
Requires:       %{mediawiki_base}
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
MediaWiki %{ext_name} extension

%prep
%setup -q -n %{ext_name}

%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}