rpms/php-symfony-YAML/F-12 php-symfony-YAML.spec, NONE, 1.1 sources, 1.1, 1.2
Remi Collet
remi at fedoraproject.org
Thu Jan 21 18:18:21 UTC 2010
Author: remi
Update of /cvs/pkgs/rpms/php-symfony-YAML/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29549
Modified Files:
sources
Added Files:
php-symfony-YAML.spec
Log Message:
new package
--- NEW FILE php-symfony-YAML.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name YAML
%global channel pear.symfony-project.com
Name: php-symfony-YAML
Version: 1.0.2
Release: 1%{?dist}
Summary: The Symfony YAML Component
Group: Development/Libraries
License: MIT
URL: http://components.symfony-project.org/yaml/
Source0: http://pear.symfony-project.com/get/%{pear_name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-channel(%{channel})
Requires(post): php-channel(%{channel})
Requires(postun): php-channel(%{channel})
Requires: php-channel(%{channel})
Requires: php-common >= 5.2.4
Provides: php-pear(%{channel}/%{pear_name}) = %{version}
%description
The Symfony YAML Component.
Symfony YAML is a PHP library that parses YAML strings and converts them to
PHP arrays. It can also converts PHP arrays to YAML strings.
%prep
%setup -q -c
# package.xml is v2
mv package.xml %{pear_name}-%{version}/%{name}.xml
cd %{pear_name}-%{version}
%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.
%install
rm -rf $RPM_BUILD_ROOT docdir
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
# Move documentation
mv $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name} ../docdir
# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{name}.xml >/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
%{__pear} uninstall --nodeps --ignore-errors --register-only \
%{channel}/%{pear_name} >/dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc docdir/*
%{pear_phpdir}/SymfonyComponents
%{pear_xmldir}/%{name}.xml
%changelog
* Sun Jan 03 2010 Remi Collet <Fedora at famillecollet.com> - 1.0.2-1
- initial packaging
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-symfony-YAML/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 19 Jan 2010 18:31:34 -0000 1.1
+++ sources 21 Jan 2010 18:18:21 -0000 1.2
@@ -0,0 +1 @@
+d4cdbde0600ff2a99501931e6caf97c8 YAML-1.0.2.tgz
More information about the scm-commits
mailing list