File redmine-redcarpet-formatter.spec of Package redmine-redcarpet-formatter
#
# spec file for package
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%define basedir /srv/www/vhosts/redmine/
%define plugin_name redmine_redcarpet_formatter
Name: redmine-redcarpet-formatter
Version: 2.0.1~git27.e283325
Release: 0
License: GPL-2.0
Summary: RedCarpet Formatter for Redmine
Url: https://github.com/alminium/redmine_redcarpet_formatter
Group: Internal
Source: %{plugin_name}-%{version}.tar.xz
Patch: redmine_redcarpet_formatter_match_gemfile.patch
BuildRequires: redmine
Requires: redmine
%define rb_build_versions ruby22
%define rb_build_ruby_abi ruby:2.2.0
Requires: %{rubygem redcarpet}
BuildRoot: %{_tmppath}/%{plugin_name}-%{version}-build
BuildArch: noarch
%description
RedCarpet Formatter for Redmine
%prep
%setup -q -n %{plugin_name}-%{version}
%patch -p1
%build
%install
install -d -m 0750 %{buildroot}%{basedir}/plugins/%{plugin_name}/
cp -av * %{buildroot}%{basedir}/plugins/%{plugin_name}/
chmod -R o= %{buildroot}%{basedir}
%files
%defattr(-,root,root)
%doc README.markdown LICENSE.txt
%attr(-,root,redmine) %{basedir}/plugins/%{plugin_name}/
%changelog