File redmine.spec of Package redmine
#
# spec file for package redmine
#
# Copyright (c) 2021 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: redmine
Version: 4.2.0
Release: 0
Summary: A flexible project management web application
License: GPL-2.0
Group: Development/Tools/Other
Url: http://www.redmine.org/
Source0: %{name}-%{version}.tar.xz
Source100: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: pwdutils
BuildRequires: pkg-config
BuildRequires: rubygem(%{rb_default_ruby_abi}:bundler)
BuildRequires: ruby-devel
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: chrpath
BuildRequires: fdupes
%description
Redmine is a flexible project management web application.
It is written using the Ruby on Rails framework.
Overview
- Multiple projects support
- Flexible role based access control
- Flexible issue tracking system
- Gantt chart and calendar
- News, documents & files management
- Feeds & email notifications
- Per project wiki
- Per project forums
- Time tracking
- Custom fields for issues, time-entries, projects and users
- SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
- Issue creation via email
- Multiple LDAP authentication support
- User self-registration support
- Multilanguage support
- Multiple databases support
%prep
%setup -q
%build
mkdir -p vendor/cache/gems
cp %{rb_dir}/gems/%{rb_ver}/cache/bundler* %{_sourcedir}/vendor/cache/
cp %{_sourcedir}/vendor/cache/*.gem vendor/cache
gem="gem.%{rb_default_ruby_suffix}"
bundle="bundle.%{rb_default_ruby_suffix}"
export GEM_HOME=${PWD}/vendor/cache GEM_PATH=${PWD}/vendor PATH=${PWD}/vendor/bin:$PATH
$gem install --force --local vendor/cache/*.gem
$bundle config build.nokogiri --use-system-libraries
$bundle --local
$bundle --local --deployment --with production
$bundle package
$bundle clean
$bundle install --local
TO_DELETE='.git* *.c *.h *.pc *.gitignore'
for f in ${TO_DELETE}; do
find . -type f -name ${f} -delete
done
%install
export NO_BRP_CHECK_RPATH=true
mkdir -p %{buildroot}/srv/redmine
cp -av * %{buildroot}/srv/redmine/
%fdupes %{buildroot}/srv/redmine
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%dir /srv/redmine
/srv/redmine/*
%changelog