Skip to content

Commit 4da24c9

Browse files
authored
Merge pull request #107 from maxmind/greg/add-package-xml
Add package.xml for PECL package
2 parents 321f5bd + a31f9f6 commit 4da24c9

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ CHANGELOG
1313
metadata object rather than the actual object used by the reader.
1414
* Work around PHP `is_readable()` bug. Reported by Ben Roberts. GitHub
1515
#92.
16+
* This is the first release of the extension as a PECL package.
17+
GitHub #34.
1618

1719
1.6.0 (2019-12-19)
1820
------------------

dev-bin/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ rm -fr vendor
3232

3333
perl -pi -e "s/(?<=#define PHP_MAXMINDDB_VERSION \")\d+\.\d+\.\d+(?=\")/$version/" ext/php_maxminddb.h
3434
perl -pi -e "s/(?<=\"ext-maxminddb\": \"<)\d+.\d+.\d+(?=,)/$version/" composer.json
35+
perl -pi -e "s/(?<=<release>)\d+\.\d+\.\d+(?=<)/$version/" package.xml
36+
perl -0777 -pi -e "s{(?<=<notes>).*(?=</notes>)}{$notes}sm" package.xml
3537

3638
pushd ext
3739
phpize
@@ -55,6 +57,7 @@ fi
5557
echo $'\nRelease notes:'
5658
echo "$notes"
5759

60+
pecl package
5861

5962
read -p "Push to origin? (y/n) " should_push
6063

@@ -72,3 +75,5 @@ $notes"
7275
git push
7376

7477
hub release create -m "$message" "$tag"
78+
79+
echo "Upload PECL package to pecl.php.net!"

package.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0"?>
2+
<package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0"
3+
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
6+
7+
<name>maxminddb</name>
8+
<channel>pecl.php.net</channel>
9+
<summary>Reader for the MaxMind DB file format</summary>
10+
<description>This is the PHP extension for reading MaxMind DB files. MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6).</description>
11+
<lead>
12+
<name>Greg Oschwald</name>
13+
<user>oschwald</user>
14+
<email>[email protected]</email>
15+
<active>yes</active>
16+
</lead>
17+
<date>2020-08-06</date>
18+
<version>
19+
<release>1.7.0</release>
20+
<api>1.7.0</api>
21+
</version>
22+
<stability>
23+
<release>stable</release>
24+
<api>stable</api>
25+
</stability>
26+
<license uri="https://github.com/maxmind/MaxMind-DB-Reader-php/blob/master/LICENSE">Apache License 2.0</license>
27+
<notes>
28+
First release of the maxminddb extension to PECL.
29+
</notes>
30+
<contents>
31+
<dir name="/">
32+
<file role="doc" name="LICENSE"/>
33+
<file role="doc" name="CHANGELOG.md"/>
34+
<file role="doc" name="README.md"/>
35+
36+
<dir name="ext">
37+
<file role="src" name="config.m4"/>
38+
39+
<file role="src" name="maxminddb.c"/>
40+
<file role="src" name="php_maxminddb.h"/>
41+
42+
<dir name="tests">
43+
<file role="test" name="001-load.phpt"/>
44+
<file role="test" name="002-final.phpt"/>
45+
<file role="test" name="003-open-basedir.phpt"/>
46+
</dir>
47+
</dir>
48+
</dir>
49+
</contents>
50+
<dependencies>
51+
<required>
52+
<php>
53+
<min>7.2.0</min>
54+
</php>
55+
<pearinstaller>
56+
<min>1.10.0</min>
57+
</pearinstaller>
58+
</required>
59+
</dependencies>
60+
<providesextension>maxminddb</providesextension>
61+
<extsrcrelease />
62+
</package>

0 commit comments

Comments
 (0)