debian: remove debian/ from fpgatools upstream

This commit is contained in:
Xiangfu 2012-10-02 16:31:40 +08:00
parent 2fc9acdcdf
commit 57e489ca47
18 changed files with 0 additions and 586 deletions

10
debian/README vendored
View File

@ -1,10 +0,0 @@
This Debian package is developed in a Git repository. to build
from a git checkout:
debian/rules get-orig-source # take commit from debian/changelog
mv fpgatools_0.0+*.orig.tar.gz ..
debuild
A quick how to generate symbols file:
dpkg-gensymbols -plibfpga0 | patch -p0
mv new_symbol_file debian/libfpga0.symbols
perl -pi -e 's/-\d.*//' debian/libfpga0.symbols

6
debian/changelog vendored
View File

@ -1,6 +0,0 @@
fpgatools (0.0+201210-1) unstable; urgency=low
* New snapshot, taken from commit d069d19
* Initial release. (Closes: #686949)
-- Xiangfu Liu <xiangfu@openmobilefree.net> Tue, 14 Aug 2012 10:03:41 +0800

View File

@ -1,113 +0,0 @@
#!/bin/awk -f
# Generate debian/changelog.upstream from debian/changelog and
# the git revision log. Inspired by Gerrit Papes
# debian/changelog.upstream.sh, from the git-core Debian package.
#
# Requires a working /dev/stderr.
#
# Usage:
# dpkg-parsechangelog --format rfc822 --all |
# awk -f debian/changelog.upstream.awk
# If argument matches /^Version: /, return remaining text.
# Result is nonempty if and only if argument matches.
function version_line(line) {
if (line ~ /^Version: /) {
sub(/^Version: /, "", line);
return line;
}
return "";
}
# If argument matches /^\*.* from commit /, return remaining text.
# Result is nonempty if and only if argument matches.
function commit_id_line(line) {
if (line ~ / from commit /) {
sub(/^.* from commit /, "", line);
sub(/[(][Cc]loses.*/, "", line);
sub(/[^0-9a-f]*$/, "", line);
return line;
}
return "";
}
# Read standard input, scanning for a changelog entry of the
# form “* New snapshot, taken from commit <blah>.”
# Result is <blah>.
# Result is empty and writes a message to standard error if no such entry is
# found before the next Version: line with a different upstream
# version (or EOF).
# Argument is the upstream version sought.
function read_commit_id(upstream, line,version,corresponding_upstream,commit) {
while (getline line) {
version = version_line(line);
corresponding_upstream = version;
sub(/-[^-]*$/, "", corresponding_upstream);
if (version != "" && corresponding_upstream != upstream)
break;
commit = commit_id_line(line);
if (commit != "")
return commit;
}
print "No commit id for " upstream >> "/dev/stderr";
return "";
}
BEGIN {
last = "none";
last_cid = "none";
cl = "debian/changelog.upstream";
}
# Add a list of all revisions up to last to debian/changelog.upstream
# and set last = new_cid.
# new is a user-readable name for the commit new_cide.
function add_version(new,new_cid, limiter,versionline,command,line) {
if (last == "none") {
printf "" > cl;
last = new;
last_cid = new_cid;
return 0;
}
if (new == "none") {
versionline = "Version " last;
limiter = "";
} else {
versionline = "Version " last "; changes since " new ":";
limiter = new_cid "..";
}
print versionline >> cl;
gsub(/./, "-", versionline);
print versionline >> cl;
print "" >> cl;
command = "git shortlog \"" limiter last_cid "\"";
while(command | getline line)
print line >> cl;
if (new != "none")
print "" >> cl;
last = new;
last_cid = new_cid;
}
{
version = version_line($0);
if (version != "") {
# strip Debian revision
upstream_version = version;
sub(/-[^-]*$/, "", upstream_version);
commit = read_commit_id(upstream_version);
if (commit == "")
exit 1;
add_version(upstream_version, commit);
}
}
END {
add_version("none", "none");
}

108
debian/clean.sh vendored
View File

@ -1,108 +0,0 @@
#!/bin/sh
# Clean up after a failed build.
#
# Requires access to .gitignore files excluding _all_ modified files.
#
# Requires a working /dev/fd (with more than just /dev/fd/0 and 1)
# or gawk.
set -e
splitgitignore='#!/usr/bin/awk
!/^#/ && !/^$/ {
glob = /[[*?]/;
directory = /\/$/;
sub(/\/$/, "");
anchored = /\//;
sub(/^\//, "");
output = "nonexistent/nonsense";
if (anchored) {
if (!directory && !glob)
output = "/dev/fd/1";
else if (directory && !glob)
output = "/dev/fd/3";
else if (!directory && glob)
output = "/dev/fd/4";
else if (directory && glob)
output = "/dev/fd/5";
} else {
if (!directory)
output = "/dev/fd/6";
else
output = "/dev/fd/7";
}
print >> output;
}
'
offlimits="-type d -name '.*' -prune -o -type d -name debian -prune"
remove_file_globs() {
while read glob
do
eval "rm -f $glob"
done
}
remove_directory_globs() {
while read glob
do
eval "rm -fr $glob"
done
}
remove_file_findpatterns() {
while read pat
do
find . $offlimits -o \
'(' -name "$pat" -execdir rm -f '{}' + ')'
done
}
remove_directory_findpatterns() {
while read pat
do
find . $offlimits -o \
'(' -type d -name "$pat" -execdir rm -fr '{}' + ')'
done
}
find . $offlimits -o '(' -name .gitignore -print ')' |
while read file
do
(
cd "$(dirname "$file")"
# Dispatch using pipes. Yuck.
{ { { { {
awk "$splitgitignore" |
{
# anchored files (globless)
xargs -d '\n' rm -f
}
} 3>&1 >&2 |
{
# anchored directories (globless)
xargs -d '\n' rm -fr
}
} 4>&1 >&2 |
{
# anchored files
remove_file_globs
}
} 5>&1 >&2 |
{
# anchored directories
remove_directory_globs
}
} 6>&1 >&2 |
{
# unanchored files
remove_file_findpatterns
}
} 7>&1 >&2 |
{
remove_directory_findpatterns
} >&2
) < "$file"
done

1
debian/compat vendored
View File

@ -1 +0,0 @@
7

30
debian/control vendored
View File

@ -1,30 +0,0 @@
Source: fpgatools
Section: electronics
Priority: extra
Maintainer: Xiangfu Liu <xiangfu@openmobilefree.net>
Build-Depends: debhelper (>= 7.4.10), pkg-config,
Standards-Version: 3.9.3
Homepage: https://github.com/Wolfgang-Spraul/fpgatools
Vcs-Git: git://github.com/Wolfgang-Spraul/fpgatools.git
Package: libfpga0
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: libs of fpgatools
small independent command line utilities, no GUI
plain C, no C++
simple Makefiles
text-based file formats
no documentation - read the sources
automatic test suite
Package: fpgatools
Section: utils
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libfpga0 (= ${binary:Version})
Description: tool to program flexible programmable gate arrays
fpgatools is a toolchain to program flexible programmable gate arrays
(FPGAs). one supported chip at this time is the xc6slx9, a cheap but
powerful 45nm-generation chip with about 2400 LUTs, block ram and
multiply-accumulate devices

33
debian/copyright vendored
View File

@ -1,33 +0,0 @@
This work was packaged for Debian by:
Xiangfu Liu <xiangfu@openmobilefree.net> on Tue, 14 Aug 2012 10:57:14 +0800
It was downloaded from:
https://github.com/Wolfgang-Spraul/fpgatools
Upstream Author:
Wolfgang Spraul
Copyright:
Copyright 2012 by Wolfgang Spraul
License:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>
The Debian packaging is:
Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net> and is released
into the public domain.

1
debian/dirs vendored
View File

@ -1 +0,0 @@
usr/bin

View File

@ -1,2 +0,0 @@
usr/bin/bit2fp
usr/bin/fp2bit

View File

@ -1,2 +0,0 @@
doc/bit2fp.1
doc/fp2bit.1

View File

@ -1,30 +0,0 @@
#!/bin/sh
# Build a tarball from the latest upstream version, with a nice
# version number.
#
# Requires git 1.6.6 or later, GNU date, and gzip.
set -e
: ${REPO=$(git rev-parse --git-dir)}
: ${BRANCH=remotes/origin/master}
mkdir debian-orig-source
trap 'rm -fr debian-orig-source || exit 1' EXIT
git init -q debian-orig-source
GIT_DIR=$(pwd)/debian-orig-source/.git
export GIT_DIR
# Fetch latest upstream version.
git fetch -q "$REPO" "$BRANCH"
# Determine version number.
release=0.0
date=$(date --utc --date="$(git log -1 --pretty=format:%cD FETCH_HEAD)" "+%Y%m")
upstream_version="${release}+${date}"
# Generate tarball.
echo "packaging $(git rev-parse --short FETCH_HEAD)"
git archive FETCH_HEAD |
gzip -n -9 >"fpgatools_$upstream_version.orig.tar.gz"

View File

@ -1 +0,0 @@
usr/lib usr/include

View File

@ -1,2 +0,0 @@
usr/lib/libfpga-*.so*
usr/include/*.h

View File

@ -1,2 +0,0 @@
libfpga0: package-name-doesnt-match-sonames
libfpga0: non-dev-pkg-with-shlib-symlink

View File

@ -1,206 +0,0 @@
libfpga-bit.so.0 libfpga0 #MINVER#
dump_config@Base 0.0+201210
extract_model@Base 0.0+201210
free_config@Base 0.0+201210
printf_swbits@Base 0.0+201210
read_bitfile@Base 0.0+201210
s_bot_inner_io_swpos@Base 0.0+201210
s_bot_outer_io_swpos@Base 0.0+201210
s_left_io_swpos@Base 0.0+201210
s_right_io_swpos@Base 0.0+201210
s_top_inner_io_swpos@Base 0.0+201210
s_top_outer_io_swpos@Base 0.0+201210
write_bitfile@Base 0.0+201210
write_model@Base 0.0+201210
libfpga-control.so.0 libfpga0 #MINVER#
construct_sw_chain@Base 0.0+201210
construct_sw_conns@Base 0.0+201210
destruct_sw_chain@Base 0.0+201210
destruct_sw_conns@Base 0.0+201210
fdev_delete@Base 0.0+201210
fdev_iob_input@Base 0.0+201210
fdev_iob_output@Base 0.0+201210
fdev_logic_FF@Base 0.0+201210
fdev_logic_ceused@Base 0.0+201210
fdev_logic_clk@Base 0.0+201210
fdev_logic_out_used@Base 0.0+201210
fdev_logic_pinstr@Base 0.0+201210
fdev_logic_pinstr_i@Base 0.0+201210
fdev_logic_set_lut@Base 0.0+201210
fdev_logic_srused@Base 0.0+201210
fdev_logic_sync@Base 0.0+201210
fdev_p@Base 0.0+201210
fdev_pinw_idx2str@Base 0.0+201210
fdev_pinw_str2idx@Base 0.0+201210
fdev_print_required_pins@Base 0.0+201210
fdev_set_required_pins@Base 0.0+201210
fdev_str2type@Base 0.0+201210
fdev_type2str@Base 0.0+201210
fdev_typeidx@Base 0.0+201210
fmt_swset@Base 0.0+201210
fnet_add_port@Base 0.0+201210
fnet_add_sw@Base 0.0+201210
fnet_autoroute@Base 0.0+201210
fnet_delete@Base 0.0+201210
fnet_enum@Base 0.0+201210
fnet_free_all@Base 0.0+201210
fnet_get@Base 0.0+201210
fnet_new@Base 0.0+201210
fnet_printf@Base 0.0+201210
fnet_remove_sw@Base 0.0+201210
fpga_conn_dest@Base 0.0+201210
fpga_connpt_find@Base 0.0+201210
fpga_dev_idx@Base 0.0+201210
fpga_enum_iob@Base 0.0+201210
fpga_find_conn@Base 0.0+201210
fpga_find_iob@Base 0.0+201210
fpga_iob_sitename@Base 0.0+201210
fpga_switch_backtofirst@Base 0.0+201210
fpga_switch_chain@Base 0.0+201210
fpga_switch_conns@Base 0.0+201210
fpga_switch_disable@Base 0.0+201210
fpga_switch_enable@Base 0.0+201210
fpga_switch_first@Base 0.0+201210
fpga_switch_is_bidir@Base 0.0+201210
fpga_switch_is_used@Base 0.0+201210
fpga_switch_lookup@Base 0.0+201210
fpga_switch_next@Base 0.0+201210
fpga_switch_print@Base 0.0+201210
fpga_switch_same_fromto@Base 0.0+201210
fpga_switch_set_enable@Base 0.0+201210
fpga_switch_str@Base 0.0+201210
fpga_switch_str_i@Base 0.0+201210
fpga_switch_to_rel@Base 0.0+201210
fpga_switch_to_yx@Base 0.0+201210
fpga_swset_contains@Base 0.0+201210
fpga_swset_fromto@Base 0.0+201210
fpga_swset_is_used@Base 0.0+201210
fpga_swset_level_down@Base 0.0+201210
fpga_swset_print@Base 0.0+201210
fpga_swset_remove_connpt@Base 0.0+201210
fpga_swset_remove_loop@Base 0.0+201210
fpga_swset_remove_sw@Base 0.0+201210
froute_direct@Base 0.0+201210
printf_swchain@Base 0.0+201210
printf_swconns@Base 0.0+201210
printf_switch_to_rel_result@Base 0.0+201210
printf_switch_to_yx_result@Base 0.0+201210
libfpga-cores.so.0 libfpga0 #MINVER#
__swab16@Base 0.0+201210
__swab32@Base 0.0+201210
all_digits@Base 0.0+201210
atom_found@Base 0.0+201210
atom_remove@Base 0.0+201210
bitstr@Base 0.0+201210
clb_empty@Base 0.0+201210
compare_with_number@Base 0.0+201210
count_bits@Base 0.0+201210
find_iob_sitename@Base 0.0+201210
frame_clear_bit@Base 0.0+201210
frame_get_bit@Base 0.0+201210
frame_get_u16@Base 0.0+201210
frame_get_u32@Base 0.0+201210
frame_get_u64@Base 0.0+201210
frame_get_u8@Base 0.0+201210
frame_set_bit@Base 0.0+201210
frame_set_u16@Base 0.0+201210
frame_set_u32@Base 0.0+201210
frame_set_u64@Base 0.0+201210
frame_set_u8@Base 0.0+201210
free_xc6_routing_bitpos@Base 0.0+201210
get_frames_per_row@Base 0.0+201210
get_iob_sitename@Base 0.0+201210
get_major_framestart@Base 0.0+201210
get_major_minors@Base 0.0+201210
get_major_type@Base 0.0+201210
get_num_iobs@Base 0.0+201210
get_random@Base 0.0+201210
get_rightside_major@Base 0.0+201210
get_vm_mb@Base 0.0+201210
get_xc6_routing_bitpos@Base 0.0+201210
hash_djb2@Base 0.0+201210
hexdump@Base 0.0+201210
iob_xc6slx9_sitenames@Base 0.0+201210
is_empty@Base 0.0+201210
lut2bool@Base 0.0+201210
lut_base_vars@Base 0.0+201210
mod4_calc@Base 0.0+201210
next_word@Base 0.0+201210
parse_boolexpr@Base 0.0+201210
printf_clock@Base 0.0+201210
printf_extrabits@Base 0.0+201210
printf_frames@Base 0.0+201210
printf_iob@Base 0.0+201210
printf_lut6@Base 0.0+201210
printf_ramb16_data@Base 0.0+201210
printf_wrap@Base 0.0+201210
read_lut64@Base 0.0+201210
s_stash_at_bin@Base 0.0+201210
str_cmp@Base 0.0+201210
strarray_add@Base 0.0+201210
strarray_find@Base 0.0+201210
strarray_free@Base 0.0+201210
strarray_init@Base 0.0+201210
strarray_lookup@Base 0.0+201210
strarray_stash@Base 0.0+201210
strarray_used_slots@Base 0.0+201210
to_i@Base 0.0+201210
write_lut64@Base 0.0+201210
libfpga-floorplan.so.0 libfpga0 #MINVER#
printf_conns@Base 0.0+201210
printf_devices@Base 0.0+201210
printf_nets@Base 0.0+201210
printf_ports@Base 0.0+201210
printf_switches@Base 0.0+201210
printf_tiles@Base 0.0+201210
printf_version@Base 0.0+201210
read_floorplan@Base 0.0+201210
write_floorplan@Base 0.0+201210
libfpga-model.so.0 libfpga0 #MINVER#
add_conn_bi@Base 0.0+201210
add_conn_bi_pref@Base 0.0+201210
add_conn_net@Base 0.0+201210
add_conn_range@Base 0.0+201210
add_conn_uni@Base 0.0+201210
add_conn_uni_pref@Base 0.0+201210
add_connpt_2@Base 0.0+201210
add_connpt_name@Base 0.0+201210
add_switch@Base 0.0+201210
add_switch_set@Base 0.0+201210
base2wire@Base 0.0+201210
fdev_logic_inbit@Base 0.0+201210
fdev_logic_outbit@Base 0.0+201210
fpga_build_model@Base 0.0+201210
fpga_free_model@Base 0.0+201210
fpga_str2wire@Base 0.0+201210
fpga_tiletype_str@Base 0.0+201210
fpga_wire2str@Base 0.0+201210
fpga_wire2str_i@Base 0.0+201210
free_devices@Base 0.0+201210
has_connpt@Base 0.0+201210
has_device@Base 0.0+201210
has_device_type@Base 0.0+201210
init_conns@Base 0.0+201210
init_devices@Base 0.0+201210
init_ports@Base 0.0+201210
init_switches@Base 0.0+201210
init_tiles@Base 0.0+201210
is_atx@Base 0.0+201210
is_aty@Base 0.0+201210
is_atyx@Base 0.0+201210
is_in_row@Base 0.0+201210
last_major@Base 0.0+201210
logicin_s@Base 0.0+201210
logicin_str@Base 0.0+201210
logicout_str@Base 0.0+201210
next_non_whitespace@Base 0.0+201210
pf@Base 0.0+201210
pos_in_row@Base 0.0+201210
replicate_routing_switches@Base 0.0+201210
replicate_switches_and_names@Base 0.0+201210
rotate_wire@Base 0.0+201210
seed_strx@Base 0.0+201210
which_row@Base 0.0+201210
wire_base@Base 0.0+201210
wire_to_len@Base 0.0+201210
wpref@Base 0.0+201210

37
debian/rules vendored
View File

@ -1,37 +0,0 @@
#!/usr/bin/make -f
# This file is in the public domain.
# You may freely use, modify, distribute, and relicense it.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PREFIX=/usr
build clean install binary-arch binary-indep binary:
+dh --parallel $(opt_no_act) $@
override_dh_auto_build:
$(MAKE) fp2bit bit2fp
override_dh_auto_clean:
$(MAKE) clean
sh debian/clean.sh
override_dh_installchangelogs:
dpkg-parsechangelog --format rfc822 --all | \
awk -f debian/changelog.upstream.awk
dh_installchangelogs debian/changelog.upstream
# Remove auto test for fast develop
# will include auto_test in the end
override_dh_auto_test:
REPO = git://github.com/Wolfgang-Spraul/fpgatools.git
BRANCH = master
debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
get-orig-source:
REPO='$(REPO)' BRANCH='$(BRANCH)' \
sh '$(debiandir_SQ)'get-orig-source.sh
%:
dh $@

View File

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

1
debian/watch vendored
View File

@ -1 +0,0 @@
# We track fpgatools git revisions, thus no need for a watch file.