%define _class Net %define _subclass Ident %define upstream_name %{_class}_%{_subclass} Name: php-pear-%{upstream_name} Version: 1.1.0 Release: %mkrel 13 Summary: Identification protocol implementation License: PHP License Group: Development/PHP URL: http://pear.php.net/package/Net_Ident/ Source0: http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2 Requires(post): php-pear Requires(preun): php-pear Requires: php-pear BuildArch: noarch BuildRequires: php-pear %description The PEAR::Net_Ident implements Identification Protocol according to RFC 1413. The Identification Protocol (a.k.a., "ident", a.k.a., "the Ident Protocol") provides a means to determine the identity of a user of a particular TCP connection. Given a TCP port number pair, it returns a character string which identifies the owner of that connection on the server's system. %prep %setup -q -c mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml %install rm -rf %{buildroot} cd %{upstream_name}-%{version} pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml rm -rf %{buildroot}%{_datadir}/pear/.??* rm -rf %{buildroot}%{_datadir}/pear/docs rm -rf %{buildroot}%{_datadir}/pear/tests install -d %{buildroot}%{_datadir}/pear/packages install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_datadir}/pear/%{_class} %{_datadir}/pear/packages/%{upstream_name}.xml %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.1.0-13.mga3 + Revision: 376996 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jan 29 2011 spuhler <spuhler> 1.1.0-12.mga1 + Revision: 43841 - removed buildroot definition from .spec removed the if mdkversion lines - imported package php-pear-Net_Ident