[Pkg-cli-libs-commits] [npgsql] 02/02: initial debianization
Jo Shields
directhex at moszumanska.debian.org
Mon Oct 26 11:06:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
directhex pushed a commit to branch master
in repository npgsql.
commit 40f57eaa5a6d53af6d584da7710ff3d8461998e5
Author: Jo Shields <jo.shields at xamarin.com>
Date: Mon Oct 26 10:14:59 2015 +0000
initial debianization
---
debian/README.source | 8 ++++++++
debian/changelog | 6 ++++++
debian/compat | 1 +
debian/control | 33 +++++++++++++++++++++++++++++++++
debian/copyright | 23 +++++++++++++++++++++++
debian/libnpgsql-cil-dev.install | 1 +
debian/libnpgsql2.2-cil.install | 1 +
debian/libnpgsql2.2-cil.installcligac | 1 +
debian/npgsql.pc | 8 ++++++++
debian/rules | 33 +++++++++++++++++++++++++++++++++
debian/source/format | 1 +
debian/watch | 3 +++
12 files changed, 119 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..520fa73
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+npgsql for Debian
+-----------------
+
+The .nuget, .teamcity, lib and Tools folders have been removed vs. upstream
+
+
+ -- Jo Shields <directhex at apebox.org> Mon, 26 Oct 2015 10:01:20 +0000
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..96b0f65
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+npgsql (2.2.7+dfsg-1) unstable; urgency=low
+
+ * Initial release. Mono 4.0 no longer bundles Npgsql, but some apps
+ in the archive expect it to be available.
+
+ -- Jo Shields <directhex at apebox.org> Mon, 26 Oct 2015 10:01:20 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..2721b9d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: npgsql
+Priority: optional
+Maintainer: Jo Shields <directhex at apebox.org>
+Build-Depends: debhelper (>= 7.0.50~), cli-common-dev, mono-devel (>= 4.0)
+Standards-Version: 3.9.4
+Section: libs
+Homepage: http://www.npgsql.org/
+Vcs-Git: git://git.debian.org/git/pkg-cli-libs/packages/npgsql.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-cli-libs/packages/npgsql.git/
+
+Package: libnpgsql2.2-cil
+Section: cli-mono
+Architecture: all
+Depends: ${cli:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: PostgreSQL connection library for Mono
+ Npgsql is the .NET data provider for PostgreSQL. It allows any
+ program developed for .NET framework to access a PostgreSQL
+ database server. It is implemented in 100% C# code. PostgreSQL
+ versions since 9.0 are officially supported, others may work.
+
+Package: libnpgsql-cil-dev
+Section: cli-mono
+Architecture: all
+Depends: libnpgsql2.2-cil (= ${source:Version})
+Description: PostgreSQL connection library for Mono - devel package
+ Npgsql is the .NET data provider for PostgreSQL. It allows any
+ program developed for .NET framework to access a PostgreSQL
+ database server. It is implemented in 100% C# code. PostgreSQL
+ versions since 9.0 are officially supported, others may work.
+ .
+ This package contains development files for Npgsql and will always
+ pull in the current default version - and should be used for compilation.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..21fcc31
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: npgsql
+Source: http://www.npgsql.org/
+
+Files: *
+Copyright: 2002-2013, The Npgsql Development Team
+License:
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose, without fee, and without a written
+ agreement is hereby granted, provided that the above copyright notice
+ and this paragraph and the following two paragraphs appear in all copies.
+ .
+ IN NO EVENT SHALL THE NPGSQL DEVELOPMENT TEAM BE LIABLE TO ANY PARTY FOR
+ DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
+ LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
+ DOCUMENTATION, EVEN IF THE NPGSQL DEVELOPMENT TEAM HAS BEEN ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ THE NPGSQL DEVELOPMENT TEAM SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
+ AN "AS IS" BASIS, AND THE NPGSQL DEVELOPMENT TEAM HAS NO OBLIGATIONS TO
+ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
diff --git a/debian/libnpgsql-cil-dev.install b/debian/libnpgsql-cil-dev.install
new file mode 100644
index 0000000..0cf0420
--- /dev/null
+++ b/debian/libnpgsql-cil-dev.install
@@ -0,0 +1 @@
+debian/npgsql.pc /usr/lib/pkgconfig/
diff --git a/debian/libnpgsql2.2-cil.install b/debian/libnpgsql2.2-cil.install
new file mode 100644
index 0000000..8c9d61e
--- /dev/null
+++ b/debian/libnpgsql2.2-cil.install
@@ -0,0 +1 @@
+./Npgsql/bin/Release-net45/Npgsql.dll /usr/lib/cli/Npgsql-2.2/
diff --git a/debian/libnpgsql2.2-cil.installcligac b/debian/libnpgsql2.2-cil.installcligac
new file mode 100644
index 0000000..e69fabf
--- /dev/null
+++ b/debian/libnpgsql2.2-cil.installcligac
@@ -0,0 +1 @@
+/usr/lib/cli/Npgsql-2.2/Npgsql.dll
diff --git a/debian/npgsql.pc b/debian/npgsql.pc
new file mode 100644
index 0000000..eb50c79
--- /dev/null
+++ b/debian/npgsql.pc
@@ -0,0 +1,8 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+
+Name: Npgsql
+Description: Npgsql - PostgreSQL connector for CLI
+Version: 2.2.7
+Libs: -r:${libdir}/cli/Npgsql-2.2/Npgsql.dll
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c91527c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+override_dh_auto_clean:
+ xbuild Npgsql/Npgsql.csproj /property:Configuration=Release-net45 /target:clean
+ rm -fr Npgsql/bin/
+ rm -fr Npgsql/obj/
+ dh_auto_clean
+
+override_dh_auto_build:
+ xbuild Npgsql/Npgsql.csproj /property:Configuration=Release-net45
+
+override_dh_clideps:
+ dh_clideps --exclude-moduleref=secur32 \
+ --exclude-moduleref=Secur32.dll
+
+upstream_version=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-\+]+)+(\+dfsg)*.*,\1,p')
+get-orig-source:
+ uscan --force-download --destdir=. --download-version=$(upstream_version)
+ rm -rf npgsql-$(upstream_version)/
+ tar xf npgsql-$(upstream_version).tar.gz
+ rm -fr npgsql-$(upstream_version)/.nuget
+ rm -fr npgsql-$(upstream_version)/.teamcity
+ rm -fr npgsql-$(upstream_version)/lib
+ rm -fr npgsql-$(upstream_version)/Tools
+ tar cfz npgsql_$(upstream_version)+dfsg.orig.tar.gz npgsql-$(upstream_version)/
+ rm -rf npgsql-$(upstream_version)/
+
+%:
+ dh --with cli $@
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/watch b/debian/watch
new file mode 100644
index 0000000..3a84de8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/npgsql-$1\.tar\.gz/,dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$// \
+ https://github.com/npgsql/npgsql/tags .*/v?(\d\S*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-libs/packages/npgsql.git
More information about the Pkg-cli-libs-commits
mailing list