%global origname phpSmug Name: php-phpSmug Version: 2.1 Release: 1%{?dist} Summary: PHP wrapper for the SmugMug API Group: Development/Libraries License: LGPLv3 URL: http://phpsmug.com Source0: http://phpsmug.com/downloads/hg/%{origname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: php Requires: php-pear-DB php-pear-HTTP-Request php-pear-Net-Socket Requires: php-pear-Net-URL %description phpSmug is an award winning PHP wrapper class for the SmugMug API written and maintained by Colin Seymour. The intention of this class is to allow PHP application developers to quickly and easily interact with the SmugMug API in their applications, without having to worry about the finer details of the API. phpSmug is based on the great work of Dan Coulter in phpFlickr. %prep %setup -qn %{origname} %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/php/%{origname} cp -pr %{origname}.php $RPM_BUILD_ROOT%{_datadir}/php/%{origname} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt examples/* %{_datadir}/php/%{origname} %changelog * Thu Jul 1 2010 Paul W. Frields <stickster@gmail.com> - 2.1-1 - Update to upstream 2.1 * Tue Jul 28 2009 Paul W. Frields <stickster@gmail.com> - 2.0.2-4 - Bump release for specfile name change * Sun Jul 26 2009 Paul W. Frields <stickster@gmail.com> - 2.0.2-3 - Fix name as suggested in guidelines * Thu Jul 16 2009 Paul W. Frields <stickster@gmail.com> - 2.0.2-2 - Fix packaging errors * Sun Jul 12 2009 Paul W. Frields <stickster@gmail.com> - 2.0.2-1 - Initial package release