File typo3-cms-4_5.spec of Package typo3-cms-4_5.openSUSE_13.1_Update

#
# spec file for package typo3-cms-4_5
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Thomas Worm <thomas.worm@datev.de>
#
# 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 underscored_version %(echo -n %{version} | sed 's/\\./_/g')
Name:           typo3-cms-4_5
Version:        4.5.40
Release:        0
Summary:        Typo3 CMS v4.5
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Frontends
Url:            http://www.typo3.org/
Source0:        typo3-%{version}.tar.xz
Source99:       %{name}-rpmlintrc
BuildRequires:  fdupes
Requires:       apache2
Requires:       php >= 5.2
Requires:       php-iconv >= 5.2
Requires:       php-mbstring >= 5.2
Requires:       php-mysql >= 5.2
Requires:       php-zlib >= 5.2
Requires:       typo3-manager
Recommends:     GraphicsMagick
Recommends:     php-gd >= 5.2
Provides:       typo3-cms-src
# Renamed with version 4.5.20 from typo3-4_5 to typo3-cms-4_5
Obsoletes:      typo3-4_5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Enterprise Content Management System, Version %{version}

%prep
%setup -q -n typo3-%{version} -c

%build

%check

%install
mkdir -p %{buildroot}%{_datadir}/typo3-cms-%{underscored_version}
cp -pr typo3-%{version}/* %{buildroot}%{_datadir}/typo3-cms-%{underscored_version}/
%fdupes %{buildroot}/%{_datadir}
ln -s typo3-cms-%{underscored_version} %{buildroot}%{_datadir}/%{name}

%files
%defattr(644,root,root,755)
%{_datadir}/typo3-cms-%{underscored_version}
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by