File moodle-theme-academi.spec of Package moodle-theme-academi

#
# spec file for package moodle-theme-academi
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#

Name:           moodle-theme-academi
Version:        2015122500
Release:        0
License:        GPL-3.0+
Summary:        Academi is a modern and customizable theme for Moodle
Url:            http://nephzat.com/
Group:          Productivity/Networking/Web/Utilities
Source0:        theme_academi_moodle30_2015122500.zip
BuildRequires:  unzip
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Requires:       moodle3_0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%define         moodle_basedir /srv/www/moodle3_0
%define         install_dir %{moodle_basedir}/theme

%description
A new free moodle theme called ‘Academi’. This is clean and very modern theme
suitable for your moodle sites , this theme is fully responsive meaning your
readers can enjoy viewing your site on a mobile or tablet for a seamless
experience.

For live demo, please visit : http://www.academi.nephzat.com

%prep
%setup -q -n academi

%build

%install
mkdir -p %{buildroot}%{install_dir}/academi
cp -r * %{buildroot}%{install_dir}/academi/
%if 0%{?suse_version} > 1020
%fdupes %{buildroot}%{install_dir}/
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt
%dir %moodle_basedir
%dir %install_dir
%install_dir/academi

%changelog