rpms/php-pear-File-Bittorrent2/F-11 import.log, NONE, 1.1 php-pear-File-Bittorrent-dos2unix.patch, NONE, 1.1 php-pear-File-Bittorrent2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

David Nalley ke4qqq at fedoraproject.org
Wed Jul 29 14:29:22 UTC 2009


Author: ke4qqq

Update of /cvs/pkgs/rpms/php-pear-File-Bittorrent2/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13575/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	import.log php-pear-File-Bittorrent-dos2unix.patch 
	php-pear-File-Bittorrent2.spec 
Log Message:
* Wed Jul 29 2009 David Nalley <david at gnsa.us> - 1.3.1-4
- Initial commit



--- NEW FILE import.log ---
php-pear-File-Bittorrent2-1_3_1-4_fc11:F-11:php-pear-File-Bittorrent2-1.3.1-4.fc11.src.rpm:1248875110

php-pear-File-Bittorrent-dos2unix.patch:
 package.xml |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- NEW FILE php-pear-File-Bittorrent-dos2unix.patch ---
diff -uNr php-pear-File-Bittorrent-1.3.1-orig/package.xml php-pear-File-Bittorrent-1.3.1/package.xml
--- php-pear-File-Bittorrent-1.3.1-orig/package.xml	2009-07-16 22:14:20.000000000 -0400
+++ php-pear-File-Bittorrent-1.3.1/package.xml	2009-07-16 22:14:35.000000000 -0400
@@ -46,11 +46,11 @@
    <file md5sum="0a145d3bdb4d244ad4682ac51e39824c" name="Tests/Bug16148.php" role="test" />
    <file md5sum="99c22fc3ad9aadf9f09efa4066ed2761" name="Tests/ticket-19.php" role="test" />
    <file md5sum="f5574e8095a037f4fdf0933c948829f8" name="Tests/FileBittorrent2.php" role="test" />
-   <file md5sum="5c997aee2a05496770e3449f4c68fc32" name="example.php" role="doc" />
+   <file md5sum="78280ff8871d8338e19d33e507421c91" name="example.php" role="doc" />
    <file md5sum="9dac2e50edd33ad043f5cc382636d3e5" name="example_mktorrent.php" role="doc" />
    <file md5sum="e798c61d7185940ee917094cfe340c10" name="install-x86-universal-2005.0.iso.torrent" role="doc" />
-   <file md5sum="d46b91b13a126dec8fe8b64c267c3d3e" name="scrape.php" role="doc" />
-   <file md5sum="0c21e58d4f1f04c67a897618b3f502bd" name="torrentinfo.php" role="doc" />
+   <file md5sum="6e6e27e54489922129467c0ff29e4575" name="scrape.php" role="doc" />
+   <file md5sum="d0118f4a188363e096acdf6798f121af" name="torrentinfo.php" role="doc" />
   </dir>
  </contents>
  <dependencies>


--- NEW FILE php-pear-File-Bittorrent2.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name File_Bittorrent2

Name:           php-pear-File-Bittorrent2
Version:        1.3.1
Release:        4%{?dist}
Summary:        Decode and Encode data in Bittorrent format

Group:          Development/Libraries
License:        LGPLv2
URL:            http://pear.php.net/package/File_Bittorrent2
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
Patch0:         php-pear-File-Bittorrent-dos2unix.patch
# This patch modifies the md5sum in the xml file to match the files
# after they have been dos2unixed
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.4.9-1.2
BuildRequires:  dos2unix, php-pear-PHPUnit
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}


%description
This package consists of three classes which handles the encoding and
decoding of data in Bittorrent format.  You can also extract useful
informations from .torrent files, create .torrent files and query the
torrent's scrape page to get its statistics.  PHP5 only.


%prep
%setup -q -c
%patch0 -p1 -b .dos2unix
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
cd %{pear_name}-%{version}
dos2unix torrentinfo.php scrape.php example.php


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%check
cd %{pear_name}-%{version}
php -d "include_path=.:%{pear_phpdir}:%{_datadir}/php"  Tests/AllTests.php


%install
cd %{pear_name}-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml

# Move documentation
mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_docdir}/* 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 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{pear_name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%doc %{pear_name}-%{version}/docdir/%{pear_name}/*

%{pear_xmldir}/%{pear_name}.xml
# TODO upstream: pear_testdir and pear_datadir; they are currently OK though,
#c caught by the below glob since they are withing pear_phpdir
# Expand this as needed to avoid owning dirs owned by our dependencies
#%{pear_phpdir}/*
%{pear_phpdir}/File
%{pear_testdir}/%{pear_name}


%changelog
* Fri Jul 17 2009 David Nalley <david at gnsa.us> - 1.3.1-4
- fix test line to work regardless of path

* Fri Jul 17 2009 Paul W. Frields <stickster at gmail.com> - 1.3.1-3
- Fix a couple packaging problems

* Fri Jul 17 2009 David Nalley <david at gnsa.us>  1.3.1-2
- Added a checksum patch suggested by Paul Frields

* Thu Jul 16 2009 David Nalley <david at gnsa.us>  1.3.1-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-File-Bittorrent2/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	29 Jul 2009 01:02:13 -0000	1.1
+++ .cvsignore	29 Jul 2009 14:29:21 -0000	1.2
@@ -0,0 +1 @@
+File_Bittorrent2-1.3.1.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-File-Bittorrent2/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	29 Jul 2009 01:02:14 -0000	1.1
+++ sources	29 Jul 2009 14:29:21 -0000	1.2
@@ -0,0 +1 @@
+32f58ecd1ed6ed397d002c26f0f343d3  File_Bittorrent2-1.3.1.tgz




More information about the fedora-extras-commits mailing list