ArielGlenn has uploaded a new change for review. https://gerrit.wikimedia.org/r/61768
Change subject: debian packaging for php utfnormal extension ...................................................................... debian packaging for php utfnormal extension this is just the debian directory. source "upstream" link (it's our code): https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fextensions%2Fnormal.git;a=summary Change-Id: Iebd5edf287f777302f59c251ba471691f3388de2 --- A debian/README.Debian A debian/changelog A debian/compat A debian/control A debian/copyright A debian/dirs A debian/docs A debian/install A debian/patches/inifile.patch A debian/patches/install.patch A debian/patches/series A debian/rules A debian/source/format A debian/utfnormal.ini 14 files changed, 129 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/debs/utfnormal refs/changes/68/61768/1 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..8e5782a --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,19 @@ +utfnormal for Debian +----------------- + +This extension has been repackaged for precise and uses the quilt format; +the debian directory and build instructions in the Makefile that used to +be a part of this extension are obsolote and have been removed. If you +are reading this file, you will have a local copy of the debian package +or have retrieved the debian files from + +https://gerrit.wikimedia.org/r/gitweb?p=operations/debs/utfnormal.git;a=summary + +where they are now maintained. + +If you need to get the upstream source tarball separately from this package, +click on the appropriate tag here: +https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/normal.git;a=summary +and then select the 'snapshot' option to get your tarball. + + -- Ariel T. Glenn <ar...@wikimedia.org> Thu, 29 Nov 2012 13:49:56 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1a7a0f1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,21 @@ +utfnormal (0.0.2-0~wmf1+precise) precise-wikimedia; urgency=low + + * Build for precise + * Change package name + * Clean up version numbering + * Fix up cflags + + -- Ariel T. Glenn <ar...@wikimedia.org> Thu, 29 Nov 2012 13:49:56 +0200 + +utfnormal (0.0.1-0~wmf1+lucid) lucid-wikimedia; urgency=low + + * Switch deb build format to quilt + + -- Ariel T. Glenn <ar...@wikimedia.org> Wed, 08 Jun 2011 11:14:38 +0300 + +utfnormal (0.0.1-0~wmf1) unstable; urgency=low + + * Initial release + + -- brion <br...@pobox.com> Sat, 30 Dec 2006 01:07:45 +0000 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3e78c5d --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: utfnormal +Section: web +Priority: extra +Maintainer: Ariel T. Glenn <ar...@wikimedia.org> +Build-Depends: debhelper (>= 8.0.0), libicu-dev, php5-cli, php5-dev, swig, g++ +Standards-Version: 3.9.2 +Vcs-Git: git://gerrit.wikimedia.org/r/p/mediawiki/extensions/normal.git +Vcs-Browser: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/normal.git;a=summary +Homepage: http://www.mediawiki.org/wiki/MediaWiki + +Package: utfnormal +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, php5-cli, php5-common, libicu42 +Description: PHP extension to use ICU library to do stuff + PHP extension to use ICU library for UTF-8 normalization. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ee5b125 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://dep.debian.net/deps/dep5 +Name: utfnormal +Upstream-Name: utfnormal +Maintainer: Brion Vibber <br...@pobox.com> +Source: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/normal.git;a=summary + +Copyright: 2004-2012 Brion Vibber <br...@pobox.com> +License: GPL-2+ + +Files: debian/* +Copyright: 2006-2012 Brion Vibber <br...@pobox.com>, Ariel T. Glenn <ar...@wikimedia.org> +License: GPL-2+ + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..8ca3a0f --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +etc/php5/conf.d diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debian/docs diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..7b179e5 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +utfnormal.ini etc/php5/conf.d \ No newline at end of file diff --git a/debian/patches/inifile.patch b/debian/patches/inifile.patch new file mode 100644 index 0000000..d1fd35f --- /dev/null +++ b/debian/patches/inifile.patch @@ -0,0 +1,5 @@ +Add utfnormal.ini file +--- /dev/null ++++ b/utfnormal.ini +@@ -0,0 +1 @@ ++extension=php_utfnormal.so diff --git a/debian/patches/install.patch b/debian/patches/install.patch new file mode 100644 index 0000000..8664ebf --- /dev/null +++ b/debian/patches/install.patch @@ -0,0 +1,15 @@ +link against only libicuuc +work around linker --as-needed option, see +https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition +and http://wiki.debian.org/ToolChain/DSOLinking +--- a/Makefile ++++ b/Makefile +@@ -25,7 +25,7 @@ + + php_$(PRODUCT).so : $(PRODUCT).cpp $(PRODUCT)_wrap.cpp + $(CXX) $(CFLAGS) `php-config --includes --ldflags --libs` \ +- -licuuc -licudata \ ++ -L/usr/lib -Wl,--no-as-needed -licuuc -Wl,--as-needed \ + $(SHARED) -o php_$(PRODUCT).so $(PRODUCT).cpp $(PRODUCT)_wrap.cpp + + $(PRODUCT)_wrap.cpp : $(PRODUCT).i diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..83960a4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +install.patch +inifile.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5a7c71e --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build -- CFLAGS="-fPIC -DPIC $(CFLAGS)" + +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/utfnormal.ini b/debian/utfnormal.ini new file mode 100644 index 0000000..8864b58 --- /dev/null +++ b/debian/utfnormal.ini @@ -0,0 +1 @@ +extension=php_utfnormal.so -- To view, visit https://gerrit.wikimedia.org/r/61768 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iebd5edf287f777302f59c251ba471691f3388de2 Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/utfnormal Gerrit-Branch: master Gerrit-Owner: ArielGlenn <ar...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits