File php-macros.spec of Package php-macros

#
# spec file for package php-macros
#
# Copyright (c) 2014 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/
#


Name:           php-macros
Summary:        PHP macros for rpm build
License:        GPL-3.0+
Group:          Development/Libraries/php
Version:        1.4
Release:        0
Source0:        macros.php
Source1:        README
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       php-devel
Provides:       php_pear_gen_filelist

%description
This package provides php rpm macros.
You need it for building pear/pecl modules


%prep
%{__cp} %{S:1} .

%build

%install
%if 0%{?suse_version} < 1120
%{__install} -D -m644 %{S:0} ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm/macros.php
%else
%{__install} -D -m644 %{S:0} ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm/macros.php_pear
%endif

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%if 0%{?suse_version} < 1120
%{_sysconfdir}/rpm/macros.php
%else
%{_sysconfdir}/rpm/macros.php_pear
%endif

%changelog
openSUSE Build Service is sponsored by