File typo3-cms-4_7.spec of Package typo3-cms-4_7
#
# spec file for package typo3-cms-4_7
#
# Copyright (c) 2012 SUSE LINUX Products 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/
#
Name: typo3-cms-4_7
Summary: Typo3 CMS v4.7
License: GPL-2.0+
Group: Productivity/Networking/Web/Frontends
Version: 4.7.7
Release: 0
Source0: typo3-%{version}.tar.bz2
Patch0: typo3-4.7.7-fixes.patch
Url: http://www.typo3.org/
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: apache2
Requires: php5 >= 5.3
Requires: php5-iconv
Requires: php5-mbstring
Requires: php5-mysql
Requires: php5-zlib
Requires: typo3-manager
Recommends: php5-gd
Recommends: GraphicsMagick
Provides: typo3-cms-src
# Renamed with version 4.7.5 from typo3-4_7 to typo3-cms-4_7
Obsoletes: typo3-4_7
%define underscored_version %(echo -n %{version} | sed 's/\\./_/g')
%description
Enterprise Content Management System, Version %{version}
%prep
%setup -q -n typo3-%{version} -c
pushd typo3-%{version}
%patch0 -p1
popd
%build
%check
%install
mkdir -p %{buildroot}%{_datadir}/typo3-cms-%{underscored_version}
cp -pr typo3-%{version}/* %{buildroot}%{_datadir}/typo3-cms-%{underscored_version}/
ln -s typo3-cms-%{underscored_version} %{buildroot}%{_datadir}/%{name}
%files
%defattr(644,root,root,755)
%{_datadir}/typo3-cms-%{underscored_version}
%{_datadir}/%{name}
%changelog