1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

add build support for debian jessie

dpkg-buildpackage build debian packages

	new file:   debian/README.Debian
	new file:   debian/README.source
	new file:   debian/changelog
	new file:   debian/compat
	new file:   debian/control
	new file:   debian/copyright
	new file:   debian/docs
	new file:   debian/libcpuid-dev.install
	new file:   debian/libcpuid-doc.docs
	new file:   debian/libcpuid.install
	new file:   debian/rules
	new file:   debian/source/format

Signed-off-by: Zhang, Guodong <gdzhang@linx-info.com>
This commit is contained in:
Zhang, Guodong 2015-04-16 23:38:28 +08:00
parent 325904f498
commit 5d2c66c3b3
12 changed files with 123 additions and 0 deletions

6
debian/README.Debian vendored Normal file
View file

@ -0,0 +1,6 @@
libcpuid for Debian
-------------------
<possible notes regarding this package - if none, delete this file>
-- Zhang, Guodong <gdzhang@linx-info.com> Fri, 10 Apr 2015 14:59:27 +0800

10
debian/README.source vendored Normal file
View file

@ -0,0 +1,10 @@
libcpuid for Debian
-------------------
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
-- Zhang, Guodong <gdzhang@linx-info.com> Fri, 10 Apr 2015 14:59:27 +0800

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
libcpuid (0.21) unstable; urgency=low
* Initial release add debian directory for libcpuid.
-- Zhang, Guodong <gdzhang@linx-info.com> Fri, 10 Apr 2015 14:59:27 +0800

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
9

18
debian/control vendored Normal file
View file

@ -0,0 +1,18 @@
Source: libcpuid
Section: utils
Priority: optional
Maintainer: Zhang, Guodong <gdzhang@linx-info.com>
Build-Depends: debhelper (>= 9), autotools-dev, libtool, automake, autoconf, python
Standards-Version: 3.9.5
Homepage: https://github.com/anrieff/libcpuid
Package: libcpuid
Architecture: amd64 i386
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: libcpuid provides CPU identification for the x86 (and x86_64)
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)
Package: libcpuid-dev
Architecture: amd64 i386
Description: develop files for libcpuid

38
debian/copyright vendored Normal file
View file

@ -0,0 +1,38 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libcpuid
Source: <url://example.com>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2015 Zhang, Guodong <gdzhang@linx-info.com>
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".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.

2
debian/docs vendored Normal file
View file

@ -0,0 +1,2 @@
NEWS
README

6
debian/libcpuid-dev.install vendored Normal file
View file

@ -0,0 +1,6 @@
/usr/lib/*/lib*.so
/usr/lib/*/lib*.a
/usr/lib/*/lib*.la
/usr/lib/*/pkgconfig/
/usr/include/

1
debian/libcpuid-doc.docs vendored Normal file
View file

@ -0,0 +1 @@
#DOCS#

2
debian/libcpuid.install vendored Normal file
View file

@ -0,0 +1,2 @@
./usr/bin/cpuid_tool
/usr/lib/*/lib*.so.*

33
debian/rules vendored Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
#Packagname
plib_bin=libcpuid
plib_dev=libcpuid-dev
# main packaging script based on dh7 syntax
%:
dh $@ --with autotools-dev
# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
override_dh_auto_configure:
libtoolize
autoreconf --install
dh_auto_configure

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (native)