From 6c6f22cf49309c75436a51773b52eb2261574d4f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 6 Oct 2009 21:29:05 +0000 Subject: [PATCH 01/25] Initialize branch F-11 for wb_builder --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..25c7708 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-11 From 454110f07da0d974553346eee82735724e45c841 Mon Sep 17 00:00:00 2001 From: Chitlesh GOORAH Date: Sat, 10 Oct 2009 19:53:17 +0000 Subject: [PATCH 02/25] new package --- .cvsignore | 1 + import.log | 1 + sources | 1 + wb_builder-args.patch | 95 ++++++++++++++++++++++++++++++++ wb_builder-strict-warnings.patch | 95 ++++++++++++++++++++++++++++++++ wb_builder.spec | 84 ++++++++++++++++++++++++++++ 6 files changed, 277 insertions(+) create mode 100644 import.log create mode 100644 wb_builder-args.patch create mode 100644 wb_builder-strict-warnings.patch create mode 100644 wb_builder.spec diff --git a/.cvsignore b/.cvsignore index e69de29..94c5625 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +wb_builder-1.0.3.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..2d18d3e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +wb_builder-1_0_3-2_fc11:F-11:wb_builder-1.0.3-2.fc11.src.rpm:1255204327 diff --git a/sources b/sources index e69de29..569bbbc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9bad12675121a7d09467ad847b79b539 wb_builder-1.0.3.tar.gz diff --git a/wb_builder-args.patch b/wb_builder-args.patch new file mode 100644 index 0000000..6bd8b32 --- /dev/null +++ b/wb_builder-args.patch @@ -0,0 +1,95 @@ +--- wishbone.pl 2009-08-30 11:36:15.520240129 +0200 ++++ wishbone.pl_mod 2009-09-03 07:01:29.148541129 +0200 +@@ -191,6 +191,7 @@ + }; + + sub read_defines { ++my $arg = @ARGV; + $priority=0; + $masters=0; + $slaves=0; +@@ -225,10 +226,10 @@ + if ($a =~ /^(interconnect)( *)(=)( *)(crossbarswitch|sharedbus)(;?)$/) { + $interconnect = $5; } + +- if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($*)/) { ++ if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($arg)/) { + $signal_groups = $5; }; + +- if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($*)/) { ++ if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($arg)/) { + $use_cyc_sel = $5; }; + + if ($a =~ /^(mux_type)( *)(=)( *)(mux|andor|tristate)(;?)$/) { +@@ -237,7 +238,7 @@ + if ($a =~ /^(optimize)( *)(=)( *)(speed|area);?$/) { + $optimize = $5; }; + +- if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($*)/) { ++ if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($arg)/) { + $dat_size = $5 if $1 eq 'dat_size'; + $adr_size = $5 if $1 eq 'adr_size'; + $tgd_bits = $5 if $1 eq 'tgd_bits'; +@@ -246,20 +247,20 @@ + $granularity = $5 if $1 eq 'granularity'; + }; + +- if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($*)/) { ++ if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($arg)/) { + if ($3 eq "tga"){$rename_tga=$7}; + if ($3 eq "tgc"){$rename_tgc=$7}; + if ($3 eq "tgd"){$rename_tgd=$7}; + }; + + # master port setup +- if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($*)/) { ++ if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($arg)/) { + if($1 eq "master") { + master_init($3); + }; + $a = ; +- until ($a =~ /^(end master)($*)/) { +- if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($*)/) { ++ until ($a =~ /^(end master)($arg)/) { ++ if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($arg)/) { + $master[$masters]{"$2"}=$7; + if (($2 eq "rty_i") && ($7 == 1)) { + $rty_i++; }; +@@ -273,23 +274,23 @@ + if ($2 eq "priority") { + $priority += $7; }; + }; #end if +- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { ++ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { + $master[$masters]{"$2"}=$6; }; + # priority for crossbarswitch +- if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($*)/) { ++ if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($arg)/) { + $master[$masters]{("priority_"."$4")}=$8; }; + $a = ; + }; + }; + + # slave port setup +- if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($*)/) { ++ if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($arg)/) { + if ($1 eq "slave") { + slave_init($3); + }; + $a = ; +- until ($a =~ /^(end slave)($*)/) { +- if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($*)/) { ++ until ($a =~ /^(end slave)($arg)/) { ++ if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($arg)/) { + $slave[$slaves]{"$2"}=$7; + if (($2 eq "rty_o") && ($7 == 1)) { + $rty_o++; }; +@@ -300,7 +301,7 @@ + if (($2 eq "tga_i") && ($7 == 1)) { + $tga_i++; }; + }; #end if +- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { ++ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { + $slave[$slaves]{"$2"}=$6; }; + $a = ; + }; diff --git a/wb_builder-strict-warnings.patch b/wb_builder-strict-warnings.patch new file mode 100644 index 0000000..1242936 --- /dev/null +++ b/wb_builder-strict-warnings.patch @@ -0,0 +1,95 @@ +--- wishbone.pl~ 2006-11-28 01:22:43.000000000 +0530 ++++ wishbone.pl 2009-08-29 22:32:53.684609104 +0530 +@@ -66,21 +66,24 @@ + use Time::Local; + use Getopt::Long; + ++use strict; ++use warnings; ++ + # description: users manual + + my $version='1.0.3'; + my $infile = "wishbone.defines"; +-my $outfile = wb; ++my $outfile = "wb"; + + my $a; + my $i=0; + my $j=0; + + # default settings +-my $syscon=syscon; +-my $intercon=intercon; ++my $syscon="syscon"; ++my $intercon="intercon"; + my $target="generic"; +-my $hdl=vhdl; ++my $hdl="vhdl"; + my $ext=".vhd"; + my $signal_groups=0; + my $comment="--"; +@@ -121,7 +124,24 @@ + my $amp=0; + my $asp=0; + my $del=0; +-my $i; ++#my $i; ++ ++my @master; ++my @slave; ++my $frame; ++my $c; ++my $am; ++my $ind; ++my $tmp; ++my $depend; ++my $l; ++my $only_master; ++my $k; ++my $noGUI; ++my $genHeader; ++my $help; ++my $file = ""; ++my $tmp1; + + # open input file + #if (open(FILE,"<$file")) { +@@ -804,7 +824,8 @@ + }; + + sub generate_defines { +- open(OUTFILE,"> $_[0]") or die "could not open $infile for writing"; ++ $infile = $_[0]; ++ open(OUTFILE,">$infile") or die "could not open $infile for writing"; + printf OUTFILE "# Generated by PERL program wishbone.pl.\n"; + printf OUTFILE "# File used as input for wishbone arbiter generation\n"; + $tmp=localtime(time); +@@ -884,13 +905,13 @@ + printf OUTFILE "%s\n%s Wishbone slaves:\n",$comment,$comment; + for ($i=1; $i <= $slaves; $i++) { + printf OUTFILE "%s %s\n",$comment,$slave[$i]{"wbs"}; +- if ($slave[$i]{"size"} ne ffffffff) { ++ if ($slave[$i]{"size"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr"},$slave[$i]{"size"}}; +- if ($slave[$i]{"size1"} ne ffffffff) { ++ if ($slave[$i]{"size1"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr1"},$slave[$i]{"size1"}}; +- if ($slave[$i]{"size2"} ne ffffffff) { ++ if ($slave[$i]{"size2"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr2"},$slave[$i]{"size2"}}; +- if ($slave[$i]{"size3"} ne ffffffff) { ++ if ($slave[$i]{"size3"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr3"},$slave[$i]{"size3"}}; + }; + print OUTFILE "$comment---------------------------------------------------------------------------------------\n"; +@@ -1933,7 +1954,8 @@ + + sub gen_optional{ + my ($sig_name,$n_o,$n_i)=@_; +- my $i,$j; ++ my $i; ++ my $j; + + return if ($n_o == 0) && ($n_i == 0); + print OUTFILE " -- $sig_name Slave -> Master [Optional]\n"; diff --git a/wb_builder.spec b/wb_builder.spec new file mode 100644 index 0000000..8e0512a --- /dev/null +++ b/wb_builder.spec @@ -0,0 +1,84 @@ +Name: wb_builder +Version: 1.0.3 +Release: 2%{?dist} +Summary: Wishbone Bus Builder + +Group: Applications/Engineering +License: GPLv2 +URL: http://sourceforge.net/projects/fpgalibre/ +Source0: http://download.sourceforge.net/sourceforge/fpgalibre/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# fixes some Perl strict warnings and errors +Patch0: wb_builder-strict-warnings.patch +Patch1: wb_builder-args.patch + +BuildArch: noarch + +%description +This package includes a HDL generator from a text description or via +GUI input for the Wishbone Bus. + +The Wishbone Bus is an open source hardware computer bus intended +to let the parts of an integrated circuit communicate with each other. +The aim is to allow the connection of differing cores to each other +inside of a chip. The Wishbone Bus is used by many designs in the +OpenCores project. + +%prep +%setup -q + +%patch0 -p0 -b .perl-warnings +%patch1 -p0 -b .perl-args + +# ---- Filtering Requires: ---- +# In the perl script, "use IEEE.std_logic_1164.all" is meant +# to generate VHDL code and not for Perl + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ +sed -e '/perl(IEEE.std_logic_1164.all)/d' +EOF + +%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req +chmod +x %{__perl_requires} +# ------------------------------------------ + + +#fixing rpmlint warnings: file-not-utf8 +for f in LEEME.txt README.txt ; +do + iconv -f iso8859-1 -t utf-8 $f > $f.conv + mv -f $f.conv $f +done + + +%build + + +%install +%{__rm} -rf %{buildroot} + +install -d %{buildroot}%{_bindir} +install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder + + + +%clean +%{__rm} -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LEEME.txt LICENSE README.txt users_manual.pdf +%{_bindir}/wishbonebuilder + + +%changelog +* Sun Aug 30 2009 Chitlesh Goorah - 1.0.3-2 +- Added patch from Shakthi Kannan +- Patched broken arguments + +* Sat Apr 25 2009 Chitlesh Goorah - 1.0.3-1 +- Initial Package From dc6b9693e97f3a06a96fbdbd7dd8e2af95d21df6 Mon Sep 17 00:00:00 2001 From: Chitlesh GOORAH Date: Sat, 10 Oct 2009 20:06:41 +0000 Subject: [PATCH 03/25] new package --- .cvsignore | 1 + import.log | 1 + sources | 1 + wb_builder-args.patch | 95 ++++++++++++++++++++++++++++++++ wb_builder-strict-warnings.patch | 95 ++++++++++++++++++++++++++++++++ wb_builder.spec | 84 ++++++++++++++++++++++++++++ 6 files changed, 277 insertions(+) create mode 100644 import.log create mode 100644 wb_builder-args.patch create mode 100644 wb_builder-strict-warnings.patch create mode 100644 wb_builder.spec diff --git a/.cvsignore b/.cvsignore index e69de29..94c5625 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +wb_builder-1.0.3.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..7fe7f0e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +wb_builder-1_0_3-2_fc11:HEAD:wb_builder-1.0.3-2.fc11.src.rpm:1255205075 diff --git a/sources b/sources index e69de29..569bbbc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9bad12675121a7d09467ad847b79b539 wb_builder-1.0.3.tar.gz diff --git a/wb_builder-args.patch b/wb_builder-args.patch new file mode 100644 index 0000000..6bd8b32 --- /dev/null +++ b/wb_builder-args.patch @@ -0,0 +1,95 @@ +--- wishbone.pl 2009-08-30 11:36:15.520240129 +0200 ++++ wishbone.pl_mod 2009-09-03 07:01:29.148541129 +0200 +@@ -191,6 +191,7 @@ + }; + + sub read_defines { ++my $arg = @ARGV; + $priority=0; + $masters=0; + $slaves=0; +@@ -225,10 +226,10 @@ + if ($a =~ /^(interconnect)( *)(=)( *)(crossbarswitch|sharedbus)(;?)$/) { + $interconnect = $5; } + +- if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($*)/) { ++ if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($arg)/) { + $signal_groups = $5; }; + +- if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($*)/) { ++ if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($arg)/) { + $use_cyc_sel = $5; }; + + if ($a =~ /^(mux_type)( *)(=)( *)(mux|andor|tristate)(;?)$/) { +@@ -237,7 +238,7 @@ + if ($a =~ /^(optimize)( *)(=)( *)(speed|area);?$/) { + $optimize = $5; }; + +- if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($*)/) { ++ if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($arg)/) { + $dat_size = $5 if $1 eq 'dat_size'; + $adr_size = $5 if $1 eq 'adr_size'; + $tgd_bits = $5 if $1 eq 'tgd_bits'; +@@ -246,20 +247,20 @@ + $granularity = $5 if $1 eq 'granularity'; + }; + +- if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($*)/) { ++ if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($arg)/) { + if ($3 eq "tga"){$rename_tga=$7}; + if ($3 eq "tgc"){$rename_tgc=$7}; + if ($3 eq "tgd"){$rename_tgd=$7}; + }; + + # master port setup +- if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($*)/) { ++ if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($arg)/) { + if($1 eq "master") { + master_init($3); + }; + $a = ; +- until ($a =~ /^(end master)($*)/) { +- if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($*)/) { ++ until ($a =~ /^(end master)($arg)/) { ++ if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($arg)/) { + $master[$masters]{"$2"}=$7; + if (($2 eq "rty_i") && ($7 == 1)) { + $rty_i++; }; +@@ -273,23 +274,23 @@ + if ($2 eq "priority") { + $priority += $7; }; + }; #end if +- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { ++ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { + $master[$masters]{"$2"}=$6; }; + # priority for crossbarswitch +- if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($*)/) { ++ if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($arg)/) { + $master[$masters]{("priority_"."$4")}=$8; }; + $a = ; + }; + }; + + # slave port setup +- if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($*)/) { ++ if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($arg)/) { + if ($1 eq "slave") { + slave_init($3); + }; + $a = ; +- until ($a =~ /^(end slave)($*)/) { +- if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($*)/) { ++ until ($a =~ /^(end slave)($arg)/) { ++ if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($arg)/) { + $slave[$slaves]{"$2"}=$7; + if (($2 eq "rty_o") && ($7 == 1)) { + $rty_o++; }; +@@ -300,7 +301,7 @@ + if (($2 eq "tga_i") && ($7 == 1)) { + $tga_i++; }; + }; #end if +- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { ++ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { + $slave[$slaves]{"$2"}=$6; }; + $a = ; + }; diff --git a/wb_builder-strict-warnings.patch b/wb_builder-strict-warnings.patch new file mode 100644 index 0000000..1242936 --- /dev/null +++ b/wb_builder-strict-warnings.patch @@ -0,0 +1,95 @@ +--- wishbone.pl~ 2006-11-28 01:22:43.000000000 +0530 ++++ wishbone.pl 2009-08-29 22:32:53.684609104 +0530 +@@ -66,21 +66,24 @@ + use Time::Local; + use Getopt::Long; + ++use strict; ++use warnings; ++ + # description: users manual + + my $version='1.0.3'; + my $infile = "wishbone.defines"; +-my $outfile = wb; ++my $outfile = "wb"; + + my $a; + my $i=0; + my $j=0; + + # default settings +-my $syscon=syscon; +-my $intercon=intercon; ++my $syscon="syscon"; ++my $intercon="intercon"; + my $target="generic"; +-my $hdl=vhdl; ++my $hdl="vhdl"; + my $ext=".vhd"; + my $signal_groups=0; + my $comment="--"; +@@ -121,7 +124,24 @@ + my $amp=0; + my $asp=0; + my $del=0; +-my $i; ++#my $i; ++ ++my @master; ++my @slave; ++my $frame; ++my $c; ++my $am; ++my $ind; ++my $tmp; ++my $depend; ++my $l; ++my $only_master; ++my $k; ++my $noGUI; ++my $genHeader; ++my $help; ++my $file = ""; ++my $tmp1; + + # open input file + #if (open(FILE,"<$file")) { +@@ -804,7 +824,8 @@ + }; + + sub generate_defines { +- open(OUTFILE,"> $_[0]") or die "could not open $infile for writing"; ++ $infile = $_[0]; ++ open(OUTFILE,">$infile") or die "could not open $infile for writing"; + printf OUTFILE "# Generated by PERL program wishbone.pl.\n"; + printf OUTFILE "# File used as input for wishbone arbiter generation\n"; + $tmp=localtime(time); +@@ -884,13 +905,13 @@ + printf OUTFILE "%s\n%s Wishbone slaves:\n",$comment,$comment; + for ($i=1; $i <= $slaves; $i++) { + printf OUTFILE "%s %s\n",$comment,$slave[$i]{"wbs"}; +- if ($slave[$i]{"size"} ne ffffffff) { ++ if ($slave[$i]{"size"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr"},$slave[$i]{"size"}}; +- if ($slave[$i]{"size1"} ne ffffffff) { ++ if ($slave[$i]{"size1"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr1"},$slave[$i]{"size1"}}; +- if ($slave[$i]{"size2"} ne ffffffff) { ++ if ($slave[$i]{"size2"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr2"},$slave[$i]{"size2"}}; +- if ($slave[$i]{"size3"} ne ffffffff) { ++ if ($slave[$i]{"size3"} ne "ffffffff") { + printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr3"},$slave[$i]{"size3"}}; + }; + print OUTFILE "$comment---------------------------------------------------------------------------------------\n"; +@@ -1933,7 +1954,8 @@ + + sub gen_optional{ + my ($sig_name,$n_o,$n_i)=@_; +- my $i,$j; ++ my $i; ++ my $j; + + return if ($n_o == 0) && ($n_i == 0); + print OUTFILE " -- $sig_name Slave -> Master [Optional]\n"; diff --git a/wb_builder.spec b/wb_builder.spec new file mode 100644 index 0000000..8e0512a --- /dev/null +++ b/wb_builder.spec @@ -0,0 +1,84 @@ +Name: wb_builder +Version: 1.0.3 +Release: 2%{?dist} +Summary: Wishbone Bus Builder + +Group: Applications/Engineering +License: GPLv2 +URL: http://sourceforge.net/projects/fpgalibre/ +Source0: http://download.sourceforge.net/sourceforge/fpgalibre/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# fixes some Perl strict warnings and errors +Patch0: wb_builder-strict-warnings.patch +Patch1: wb_builder-args.patch + +BuildArch: noarch + +%description +This package includes a HDL generator from a text description or via +GUI input for the Wishbone Bus. + +The Wishbone Bus is an open source hardware computer bus intended +to let the parts of an integrated circuit communicate with each other. +The aim is to allow the connection of differing cores to each other +inside of a chip. The Wishbone Bus is used by many designs in the +OpenCores project. + +%prep +%setup -q + +%patch0 -p0 -b .perl-warnings +%patch1 -p0 -b .perl-args + +# ---- Filtering Requires: ---- +# In the perl script, "use IEEE.std_logic_1164.all" is meant +# to generate VHDL code and not for Perl + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ +sed -e '/perl(IEEE.std_logic_1164.all)/d' +EOF + +%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req +chmod +x %{__perl_requires} +# ------------------------------------------ + + +#fixing rpmlint warnings: file-not-utf8 +for f in LEEME.txt README.txt ; +do + iconv -f iso8859-1 -t utf-8 $f > $f.conv + mv -f $f.conv $f +done + + +%build + + +%install +%{__rm} -rf %{buildroot} + +install -d %{buildroot}%{_bindir} +install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder + + + +%clean +%{__rm} -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LEEME.txt LICENSE README.txt users_manual.pdf +%{_bindir}/wishbonebuilder + + +%changelog +* Sun Aug 30 2009 Chitlesh Goorah - 1.0.3-2 +- Added patch from Shakthi Kannan +- Patched broken arguments + +* Sat Apr 25 2009 Chitlesh Goorah - 1.0.3-1 +- Initial Package From 08b117cee0b895a50d7be19a9c3ebb5da2526519 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 22:43:12 +0000 Subject: [PATCH 04/25] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 82578a4..70f63d6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: wb_builder -# $Id$ +# $Id: Makefile,v 1.1 2009/10/06 21:28:58 kevin Exp $ NAME := wb_builder SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 9b87ea7f69a48560bf7d4ef99d8acf7c0a7c0d10 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:15:31 +0000 Subject: [PATCH 05/25] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 82578a4..70f63d6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: wb_builder -# $Id$ +# $Id: Makefile,v 1.1 2009/10/06 21:28:58 kevin Exp $ NAME := wb_builder SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 1f85839c9f9d8e02e91840418f50d14c8a1017c5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:13:18 +0000 Subject: [PATCH 06/25] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- import.log | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 70f63d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wb_builder -# $Id: Makefile,v 1.1 2009/10/06 21:28:58 kevin Exp $ -NAME := wb_builder -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log deleted file mode 100644 index 7fe7f0e..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -wb_builder-1_0_3-2_fc11:HEAD:wb_builder-1.0.3-2.fc11.src.rpm:1255205075 From 3627877d01ca644288411318804fc6d5c693a42a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:13:19 +0000 Subject: [PATCH 07/25] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 70f63d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wb_builder -# $Id: Makefile,v 1.1 2009/10/06 21:28:58 kevin Exp $ -NAME := wb_builder -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 25c7708..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-11 diff --git a/import.log b/import.log deleted file mode 100644 index 2d18d3e..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -wb_builder-1_0_3-2_fc11:F-11:wb_builder-1.0.3-2.fc11.src.rpm:1255204327 From 22b62dae594faa02a3a6807f03bb936647b9cb43 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 7 Feb 2011 20:09:53 -0600 Subject: [PATCH 08/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 8e0512a..3b651d2 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Mon Feb 07 2011 Fedora Release Engineering - 1.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Sun Aug 30 2009 Chitlesh Goorah - 1.0.3-2 - Added patch from Shakthi Kannan - Patched broken arguments From 89cc27a7dc37e4c20f12906427179d764122d00a Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 14 Jan 2012 02:10:35 -0600 Subject: [PATCH 09/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 3b651d2..281ba9f 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sat Jan 14 2012 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Mon Feb 07 2011 Fedora Release Engineering - 1.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 35e7c1d73199831693c705bb60a2047f387c556d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 22:17:20 -0500 Subject: [PATCH 10/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 281ba9f..569af94 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sun Jul 22 2012 Fedora Release Engineering - 1.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Sat Jan 14 2012 Fedora Release Engineering - 1.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From b8ef09a98aadc8c3029b2ced719679fba2e24cb0 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 20:59:52 -0600 Subject: [PATCH 11/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 569af94..f7d30e9 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Fri Feb 15 2013 Fedora Release Engineering - 1.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Sun Jul 22 2012 Fedora Release Engineering - 1.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 44e979709814c40d11467972dca64a6adad32b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 17 Jul 2013 16:32:41 +0200 Subject: [PATCH 12/25] Perl 5.18 rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index f7d30e9..e7cf73b 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Wed Jul 17 2013 Petr Pisar - 1.0.3-7 +- Perl 5.18 rebuild + * Fri Feb 15 2013 Fedora Release Engineering - 1.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From bd4947b4371ac3fdef0c263cd5e9889d32cdebe5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 01:40:12 -0500 Subject: [PATCH 13/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index e7cf73b..e7f2de2 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sun Aug 04 2013 Fedora Release Engineering - 1.0.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Wed Jul 17 2013 Petr Pisar - 1.0.3-7 - Perl 5.18 rebuild From 6bae4ed3adcfd9c39d8cd76d65c2834ba4986fca Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 23:15:50 -0500 Subject: [PATCH 14/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index e7f2de2..37ffbaa 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 1.0.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sun Aug 04 2013 Fedora Release Engineering - 1.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From fbee5755e7f555ba42d9b3f39da0c4385daa3764 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 02:16:56 +0000 Subject: [PATCH 15/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 37ffbaa..32d25ab 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 1.0.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sun Jun 08 2014 Fedora Release Engineering - 1.0.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From ba5b516b8dcc1253a8a39f6aaaf4c63c8a03828e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 02:55:07 +0000 Subject: [PATCH 16/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 32d25ab..7a744ba 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -76,6 +76,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 1.0.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Fri Jun 19 2015 Fedora Release Engineering - 1.0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From ada7ee5340056900fddb0bf371d100ee7c5d760d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 24 Jun 2016 10:15:41 +0200 Subject: [PATCH 17/25] Mandatory Perl build-requires added --- wb_builder.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/wb_builder.spec b/wb_builder.spec index 7a744ba..075d715 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -14,6 +14,7 @@ Patch0: wb_builder-strict-warnings.patch Patch1: wb_builder-args.patch BuildArch: noarch +BuildRequires: perl-generators %description This package includes a HDL generator from a text description or via From 0c1e5dc7fa920313f2e0afb40dbafa7ef7614b79 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 17:16:26 +0000 Subject: [PATCH 18/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 075d715..08ad8b7 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -77,6 +77,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Feb 05 2016 Fedora Release Engineering - 1.0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 7265f3457fd8d4ee6c98c789431be14d289ffa97 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 21:30:51 +0000 Subject: [PATCH 19/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index 08ad8b7..ace3f49 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -77,6 +77,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 3e2d7dd4786d75d7fe3d599c59888ab0383c81cb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 20:47:18 +0000 Subject: [PATCH 20/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index ace3f49..f4636d0 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -77,6 +77,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From b01880d138cd0afb41818cffa36547edf2a31c2a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 00:48:04 +0100 Subject: [PATCH 21/25] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- wb_builder.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index f4636d0..6ae2e2e 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -7,7 +7,6 @@ Group: Applications/Engineering License: GPLv2 URL: http://sourceforge.net/projects/fpgalibre/ Source0: http://download.sourceforge.net/sourceforge/fpgalibre/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # fixes some Perl strict warnings and errors Patch0: wb_builder-strict-warnings.patch From 15a033adf1779c4590fdf6efc90c63da14f01ef0 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 09:13:58 +0100 Subject: [PATCH 22/25] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- wb_builder.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/wb_builder.spec b/wb_builder.spec index 6ae2e2e..e4c2a8a 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -65,9 +65,6 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder -%clean -%{__rm} -rf %{buildroot} - %files %defattr(-,root,root,-) From a6c1df2e0cc7a988d0002d078a7e0a093520b688 Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Tue, 10 Apr 2018 19:13:22 -0300 Subject: [PATCH 23/25] - spec cleanup and modernization --- wb_builder.spec | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/wb_builder.spec b/wb_builder.spec index e4c2a8a..bc00c9c 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -13,7 +13,7 @@ Patch0: wb_builder-strict-warnings.patch Patch1: wb_builder-args.patch BuildArch: noarch -BuildRequires: perl-generators +BuildRequires: perl-generators %description This package includes a HDL generator from a text description or via @@ -26,10 +26,7 @@ inside of a chip. The Wishbone Bus is used by many designs in the OpenCores project. %prep -%setup -q - -%patch0 -p0 -b .perl-warnings -%patch1 -p0 -b .perl-args +%autosetup # ---- Filtering Requires: ---- # In the perl script, "use IEEE.std_logic_1164.all" is meant @@ -58,21 +55,20 @@ done %install -%{__rm} -rf %{buildroot} - install -d %{buildroot}%{_bindir} install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder - - %files -%defattr(-,root,root,-) %doc LEEME.txt LICENSE README.txt users_manual.pdf +%license LICENSE %{_bindir}/wishbonebuilder %changelog +* Tue Apr 10 2018 Filipe Rosset - 1.0.3-15 +- spec cleanup and modernization + * Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From b2a1db475908f8fcb35ca210dd9b67ba959509e7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 08:44:31 +0000 Subject: [PATCH 24/25] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- wb_builder.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wb_builder.spec b/wb_builder.spec index bc00c9c..9e7b019 100644 --- a/wb_builder.spec +++ b/wb_builder.spec @@ -1,6 +1,6 @@ Name: wb_builder Version: 1.0.3 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Wishbone Bus Builder Group: Applications/Engineering @@ -66,6 +66,9 @@ install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Apr 10 2018 Filipe Rosset - 1.0.3-15 - spec cleanup and modernization From 0551ce37bf59a15e1b562f1e4abc0936d417b4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 24 Dec 2018 13:51:05 +0100 Subject: [PATCH 25/25] Orphaned for 6+ weeks --- .gitignore | 1 - dead.package | 1 + sources | 1 - wb_builder-args.patch | 95 ------------------------- wb_builder-strict-warnings.patch | 95 ------------------------- wb_builder.spec | 116 ------------------------------- 6 files changed, 1 insertion(+), 308 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources delete mode 100644 wb_builder-args.patch delete mode 100644 wb_builder-strict-warnings.patch delete mode 100644 wb_builder.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 94c5625..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -wb_builder-1.0.3.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/sources b/sources deleted file mode 100644 index 569bbbc..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -9bad12675121a7d09467ad847b79b539 wb_builder-1.0.3.tar.gz diff --git a/wb_builder-args.patch b/wb_builder-args.patch deleted file mode 100644 index 6bd8b32..0000000 --- a/wb_builder-args.patch +++ /dev/null @@ -1,95 +0,0 @@ ---- wishbone.pl 2009-08-30 11:36:15.520240129 +0200 -+++ wishbone.pl_mod 2009-09-03 07:01:29.148541129 +0200 -@@ -191,6 +191,7 @@ - }; - - sub read_defines { -+my $arg = @ARGV; - $priority=0; - $masters=0; - $slaves=0; -@@ -225,10 +226,10 @@ - if ($a =~ /^(interconnect)( *)(=)( *)(crossbarswitch|sharedbus)(;?)$/) { - $interconnect = $5; } - -- if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($*)/) { -+ if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($arg)/) { - $signal_groups = $5; }; - -- if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($*)/) { -+ if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($arg)/) { - $use_cyc_sel = $5; }; - - if ($a =~ /^(mux_type)( *)(=)( *)(mux|andor|tristate)(;?)$/) { -@@ -237,7 +238,7 @@ - if ($a =~ /^(optimize)( *)(=)( *)(speed|area);?$/) { - $optimize = $5; }; - -- if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($*)/) { -+ if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($arg)/) { - $dat_size = $5 if $1 eq 'dat_size'; - $adr_size = $5 if $1 eq 'adr_size'; - $tgd_bits = $5 if $1 eq 'tgd_bits'; -@@ -246,20 +247,20 @@ - $granularity = $5 if $1 eq 'granularity'; - }; - -- if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($*)/) { -+ if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($arg)/) { - if ($3 eq "tga"){$rename_tga=$7}; - if ($3 eq "tgc"){$rename_tgc=$7}; - if ($3 eq "tgd"){$rename_tgd=$7}; - }; - - # master port setup -- if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($*)/) { -+ if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($arg)/) { - if($1 eq "master") { - master_init($3); - }; - $a = ; -- until ($a =~ /^(end master)($*)/) { -- if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($*)/) { -+ until ($a =~ /^(end master)($arg)/) { -+ if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($arg)/) { - $master[$masters]{"$2"}=$7; - if (($2 eq "rty_i") && ($7 == 1)) { - $rty_i++; }; -@@ -273,23 +274,23 @@ - if ($2 eq "priority") { - $priority += $7; }; - }; #end if -- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { -+ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { - $master[$masters]{"$2"}=$6; }; - # priority for crossbarswitch -- if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($*)/) { -+ if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($arg)/) { - $master[$masters]{("priority_"."$4")}=$8; }; - $a = ; - }; - }; - - # slave port setup -- if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($*)/) { -+ if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($arg)/) { - if ($1 eq "slave") { - slave_init($3); - }; - $a = ; -- until ($a =~ /^(end slave)($*)/) { -- if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($*)/) { -+ until ($a =~ /^(end slave)($arg)/) { -+ if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($arg)/) { - $slave[$slaves]{"$2"}=$7; - if (($2 eq "rty_o") && ($7 == 1)) { - $rty_o++; }; -@@ -300,7 +301,7 @@ - if (($2 eq "tga_i") && ($7 == 1)) { - $tga_i++; }; - }; #end if -- if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) { -+ if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) { - $slave[$slaves]{"$2"}=$6; }; - $a = ; - }; diff --git a/wb_builder-strict-warnings.patch b/wb_builder-strict-warnings.patch deleted file mode 100644 index 1242936..0000000 --- a/wb_builder-strict-warnings.patch +++ /dev/null @@ -1,95 +0,0 @@ ---- wishbone.pl~ 2006-11-28 01:22:43.000000000 +0530 -+++ wishbone.pl 2009-08-29 22:32:53.684609104 +0530 -@@ -66,21 +66,24 @@ - use Time::Local; - use Getopt::Long; - -+use strict; -+use warnings; -+ - # description: users manual - - my $version='1.0.3'; - my $infile = "wishbone.defines"; --my $outfile = wb; -+my $outfile = "wb"; - - my $a; - my $i=0; - my $j=0; - - # default settings --my $syscon=syscon; --my $intercon=intercon; -+my $syscon="syscon"; -+my $intercon="intercon"; - my $target="generic"; --my $hdl=vhdl; -+my $hdl="vhdl"; - my $ext=".vhd"; - my $signal_groups=0; - my $comment="--"; -@@ -121,7 +124,24 @@ - my $amp=0; - my $asp=0; - my $del=0; --my $i; -+#my $i; -+ -+my @master; -+my @slave; -+my $frame; -+my $c; -+my $am; -+my $ind; -+my $tmp; -+my $depend; -+my $l; -+my $only_master; -+my $k; -+my $noGUI; -+my $genHeader; -+my $help; -+my $file = ""; -+my $tmp1; - - # open input file - #if (open(FILE,"<$file")) { -@@ -804,7 +824,8 @@ - }; - - sub generate_defines { -- open(OUTFILE,"> $_[0]") or die "could not open $infile for writing"; -+ $infile = $_[0]; -+ open(OUTFILE,">$infile") or die "could not open $infile for writing"; - printf OUTFILE "# Generated by PERL program wishbone.pl.\n"; - printf OUTFILE "# File used as input for wishbone arbiter generation\n"; - $tmp=localtime(time); -@@ -884,13 +905,13 @@ - printf OUTFILE "%s\n%s Wishbone slaves:\n",$comment,$comment; - for ($i=1; $i <= $slaves; $i++) { - printf OUTFILE "%s %s\n",$comment,$slave[$i]{"wbs"}; -- if ($slave[$i]{"size"} ne ffffffff) { -+ if ($slave[$i]{"size"} ne "ffffffff") { - printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr"},$slave[$i]{"size"}}; -- if ($slave[$i]{"size1"} ne ffffffff) { -+ if ($slave[$i]{"size1"} ne "ffffffff") { - printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr1"},$slave[$i]{"size1"}}; -- if ($slave[$i]{"size2"} ne ffffffff) { -+ if ($slave[$i]{"size2"} ne "ffffffff") { - printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr2"},$slave[$i]{"size2"}}; -- if ($slave[$i]{"size3"} ne ffffffff) { -+ if ($slave[$i]{"size3"} ne "ffffffff") { - printf OUTFILE "%s baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr3"},$slave[$i]{"size3"}}; - }; - print OUTFILE "$comment---------------------------------------------------------------------------------------\n"; -@@ -1933,7 +1954,8 @@ - - sub gen_optional{ - my ($sig_name,$n_o,$n_i)=@_; -- my $i,$j; -+ my $i; -+ my $j; - - return if ($n_o == 0) && ($n_i == 0); - print OUTFILE " -- $sig_name Slave -> Master [Optional]\n"; diff --git a/wb_builder.spec b/wb_builder.spec deleted file mode 100644 index 9e7b019..0000000 --- a/wb_builder.spec +++ /dev/null @@ -1,116 +0,0 @@ -Name: wb_builder -Version: 1.0.3 -Release: 16%{?dist} -Summary: Wishbone Bus Builder - -Group: Applications/Engineering -License: GPLv2 -URL: http://sourceforge.net/projects/fpgalibre/ -Source0: http://download.sourceforge.net/sourceforge/fpgalibre/%{name}-%{version}.tar.gz - -# fixes some Perl strict warnings and errors -Patch0: wb_builder-strict-warnings.patch -Patch1: wb_builder-args.patch - -BuildArch: noarch -BuildRequires: perl-generators - -%description -This package includes a HDL generator from a text description or via -GUI input for the Wishbone Bus. - -The Wishbone Bus is an open source hardware computer bus intended -to let the parts of an integrated circuit communicate with each other. -The aim is to allow the connection of differing cores to each other -inside of a chip. The Wishbone Bus is used by many designs in the -OpenCores project. - -%prep -%autosetup - -# ---- Filtering Requires: ---- -# In the perl script, "use IEEE.std_logic_1164.all" is meant -# to generate VHDL code and not for Perl - -cat << \EOF > %{name}-req -#!/bin/sh -%{__perl_requires} $* |\ -sed -e '/perl(IEEE.std_logic_1164.all)/d' -EOF - -%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req -chmod +x %{__perl_requires} -# ------------------------------------------ - - -#fixing rpmlint warnings: file-not-utf8 -for f in LEEME.txt README.txt ; -do - iconv -f iso8859-1 -t utf-8 $f > $f.conv - mv -f $f.conv $f -done - - -%build - - -%install -install -d %{buildroot}%{_bindir} -install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder - - -%files -%doc LEEME.txt LICENSE README.txt users_manual.pdf -%license LICENSE -%{_bindir}/wishbonebuilder - - -%changelog -* Sat Jul 14 2018 Fedora Release Engineering - 1.0.3-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Apr 10 2018 Filipe Rosset - 1.0.3-15 -- spec cleanup and modernization - -* Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Feb 05 2016 Fedora Release Engineering - 1.0.3-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jun 19 2015 Fedora Release Engineering - 1.0.3-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Jun 08 2014 Fedora Release Engineering - 1.0.3-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 1.0.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Jul 17 2013 Petr Pisar - 1.0.3-7 -- Perl 5.18 rebuild - -* Fri Feb 15 2013 Fedora Release Engineering - 1.0.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Jul 22 2012 Fedora Release Engineering - 1.0.3-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Sat Jan 14 2012 Fedora Release Engineering - 1.0.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Feb 07 2011 Fedora Release Engineering - 1.0.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun Aug 30 2009 Chitlesh Goorah - 1.0.3-2 -- Added patch from Shakthi Kannan -- Patched broken arguments - -* Sat Apr 25 2009 Chitlesh Goorah - 1.0.3-1 -- Initial Package