rpms/zd1211-firmware/EL-5 zd1211-firmware-1.4-build__from_headers.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.2, 1.3 zd1211-firmware.spec, 1.1, 1.2

John W. Linville linville at fedoraproject.org
Mon Jun 28 18:12:34 UTC 2010


Author: linville

Update of /cvs/pkgs/rpms/zd1211-firmware/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv23353

Modified Files:
	.cvsignore sources zd1211-firmware.spec 
Added Files:
	zd1211-firmware-1.4-build__from_headers.patch 
Log Message:
Update to current package from rawhide

zd1211-firmware-1.4-build__from_headers.patch:
 Makefile          |   33 +++++++++++++++
 create_fw_files.c |  116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+)

--- NEW FILE zd1211-firmware-1.4-build__from_headers.patch ---
diff -uNr zd1211-firmware/create_fw_files.c zd1211rw_fw_2007-03-19_snap/create_fw_files.c
--- zd1211-firmware/create_fw_files.c	1970-01-01 01:00:00.000000000 +0100
+++ zd1211rw_fw_2007-03-19_snap/create_fw_files.c	2006-12-25 11:02:17.000000000 +0100
@@ -0,0 +1,116 @@
+#include <errno.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
+#define ZD1211 1
+
+const uint8_t ws11uph[]
+#include "WS11UPh.h"
+
+const uint8_t ws11uphr[]
+#include "WS11UPhR.h"
+
+const uint8_t ws11uphm[]
+#include "WS11UPhm.h"
+
+const uint8_t ws11ub[]
+#include "WS11Ub.h"
+
+const uint8_t ws11ur[]
+#include "WS11Ur.h"
+
+#undef ZD1211
+
+#define ZD1211B 1
+
+const uint8_t zd1211b_ws11uph[]
+#include "WS11UPh.h"
+
+const uint8_t zd1211b_ws11uphr[]
+#include "WS11UPhR.h"
+
+const uint8_t zd1211b_ws11uphm[]
+#include "WS11UPhm.h"
+
+const uint8_t zd1211b_ws11ub[]
+#include "WS11Ub.h"
+
+const uint8_t zd1211b_ws11ur[]
+#include "WS11Ur.h"
+
+#undef ZD1211B
+
+
+static int write_fw_file(const char *path, const uint8_t *bytes, size_t size)
+{
+	FILE *f = NULL;
+
+	fprintf(stderr,"Write file %s (%zu bytes) ... ", path, size);
+	fflush(stderr);
+	f = fopen(path, "w");
+	if (!f) {
+		fprintf(stderr, "couldn't open %s - error %s (%d)\n",
+			path, strerror(errno), errno);
+		goto error;
+	}
+
+	size_t s = fwrite(bytes, 1, size, f);
+	if (s != size) {
+		fprintf(stderr, "Error while writing.\n");
+		goto error;
+	}
+
+	fclose(f);
+	fprintf(stderr, "done\n");
+	return 0;
+error:
+	if (f)
+		fclose(f);
+	return 1;
+}
+
+int main (void)
+{
+	int r;
+
+	r = write_fw_file("zd1211_uph",  ws11uph,  sizeof(ws11uph));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_uphr", ws11uphr, sizeof(ws11uphr));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_uphm", ws11uphm, sizeof(ws11uphm));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_ub",   ws11ub,   sizeof(ws11ub));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_ur",   ws11ur,   sizeof(ws11ur));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uph",  zd1211b_ws11uph,
+		                          sizeof(zd1211b_ws11uph));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uphr", zd1211b_ws11uphr,
+		                          sizeof(zd1211b_ws11uphr));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uphm", zd1211b_ws11uphm,
+		                          sizeof(zd1211b_ws11uphm));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_ub",   zd1211b_ws11ub,
+		                          sizeof(zd1211b_ws11ub));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_ur",   zd1211b_ws11ur,
+		                          sizeof(zd1211b_ws11ur));
+	if (r)
+		goto error;
+
+	return 0;
+error:
+	return 1;
+}
diff -uNr zd1211-firmware/Makefile zd1211rw_fw_2007-03-19_snap/Makefile
--- zd1211-firmware/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ zd1211rw_fw_2007-03-19_snap/Makefile	2007-10-12 12:44:58.000000000 +0200
@@ -0,0 +1,33 @@
+CC := gcc
+CFLAGS := -Wall
+
+ifneq ($(USER),root) 
+SUDO := 
+endif
+
+FW_DIR := /lib/firmware/zd1211
+
+FILES := zd1211_ub zd1211_uph zd1211_uphm zd1211_uphr zd1211_ur \
+                 zd1211b_ub zd1211b_uph zd1211b_uphm zd1211b_uphr zd1211b_ur
+
+all:: files
+
+create_fw_files:: create_fw_files.c WS11UPh.h WS11UPhR.h WS11UPhm.h WS11Ub.h \
+		 WS11Ur.h
+		 $(CC) $(CFLAGS) $< -o $@
+
+.PHONY: files clean tar
+files:: $(FILES)
+
+$(FILES):: create_fw_files
+	./create_fw_files
+
+clean::
+	rm -f create_fw_files *.o zd1211_u* zd1211b_u*
+
+distclean:: clean
+	rm -f WS11*.h
+
+install:: $(FILES)
+	test -d $(FW_DIR) || $(SUDO) mkdir -p $(FW_DIR)
+	$(SUDO) cp $(FILES) $(FW_DIR)



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	19 Apr 2007 17:32:52 -0000	1.1
+++ .cvsignore	28 Jun 2010 18:12:33 -0000	1.2
@@ -0,0 +1 @@
+zd1211-firmware-1.4.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/EL-5/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- sources	19 Apr 2007 20:18:15 -0000	1.2
+++ sources	28 Jun 2010 18:12:34 -0000	1.3
@@ -1 +1 @@
-d806c01716f30d80042519b0f070feab  zd1211rw_fw_2007-03-19.tar.bz2
+19f28781d76569af8551c9d11294c870  zd1211-firmware-1.4.tar.bz2


Index: zd1211-firmware.spec
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/EL-5/zd1211-firmware.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- zd1211-firmware.spec	19 Apr 2007 20:18:15 -0000	1.1
+++ zd1211-firmware.spec	28 Jun 2010 18:12:34 -0000	1.2
@@ -1,14 +1,13 @@
 %define snap 2007-03-19
 Name:		zd1211-firmware
-Version:	1.3
+Version:	1.4
 Release:	4%{?dist}
 Summary:	Firmware for wireless devices based on zd1211 chipset
 Group:		System Environment/Kernel
-License:	GPL 
-URL:		http://zd1211.ath.cx/
-#URL:		http://www.deine-taler.de/zd1211/
-Source0:	http://www.deine-taler.de/zd1211/snapshots/zd1211rw_fw_%{snap}.tar.bz2
-Patch0:		zd1211rw_fw-Makefile.patch
+License:	GPLv2
+URL:		http://zd1211.wiki.sourceforge.net
+Source0:	http://downloads.sourceforge.net/zd1211/zd1211-firmware-%{version}.tar.bz2
+Patch0:		zd1211-firmware-1.4-build__from_headers.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 
@@ -18,9 +17,9 @@ This package contains the firmware requi
 
 
 %prep
-%setup -q -n zd1211rw_fw_%{snap}
-%patch0 -p1 -b .123
-
+%setup -q -n %{name}
+%patch0 -p1
+sed -i 's/\r//' *.h
 
 %build
 make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
@@ -36,10 +35,28 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc README COPYING
-/lib/firmware/zd1211
+%dir /lib/firmware/zd1211
+/lib/firmware/zd1211/*
 
 
 %changelog
+* Thu Jan  7 2010 John W. Linville <linville at redhat.com> - 1.4-4
+- Add dist tag
+
+* Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Oct 12 2007 kwizart < kwizart at gmail.com > - 1.4-1
+- Update to 1.4
+
+* Tue Aug 14 2007 kwizart < kwizart at gmail.com > - 1.3-5
+- Drop the dist tag
+- Update URL
+- Fix directory ownership
+
 * Mon Mar 19 2007 kwizart < kwizart at gmail.com > - 1.3-4
 - Update to snap 2007-03-19 but still no changes from Dec 26 2006.
 - Drop devel is not usefull



More information about the scm-commits mailing list