[ccd2iso/f14/master] Initial import (#562585).

Mohammed Safwat Kamel El-Afifi msk61 at fedoraproject.org
Sat Oct 30 05:59:56 UTC 2010


commit 66ab586444c33ac05f3d5863957aeaa88a53cfb0
Author: Mohammed Safwat Kamel El-Afifi <Mohammed_ElAfifi at yahoo.com>
Date:   Sat Oct 30 07:58:33 2010 +0200

    Initial import (#562585).

 .gitignore                         |    1 +
 ccd2iso-0.3-compilerWarnings.patch |   50 ++++++++++++++++++++++
 ccd2iso.spec                       |   80 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 4 files changed, 132 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9c1cb3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ccd2iso-0.3.tar.gz
diff --git a/ccd2iso-0.3-compilerWarnings.patch b/ccd2iso-0.3-compilerWarnings.patch
new file mode 100644
index 0000000..6193950
--- /dev/null
+++ b/ccd2iso-0.3-compilerWarnings.patch
@@ -0,0 +1,50 @@
+diff -u src.orig/ccd2iso.c src/ccd2iso.c
+--- src.orig/ccd2iso.c	2006-12-15 17:58:32.000000000 +0200
++++ src/ccd2iso.c	2010-07-09 15:36:20.723182026 +0300
+@@ -27,6 +27,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ 
+ #include "clonecd.h"
+ 
+@@ -93,7 +94,7 @@
+ 			if (bytes_read < sizeof(ccd_sector))
+ 			{
+ 				printf("Error at sector %d.\n", sect_num);
+-				printf("The sector does not contain complete data. Sector size must be %d, while actual data read is %d\n",
++				printf("The sector does not contain complete data. Sector size must be %zd, while actual data read is %d\n",
+ 					sizeof(ccd_sector), bytes_read);
+ 				return 1;
+ 			}
+diff -u src.orig/clonecd.h src/clonecd.h
+--- src.orig/clonecd.h	2006-12-15 10:25:08.000000000 +0200
++++ src/clonecd.h	2010-07-09 15:30:36.405702058 +0300
+@@ -29,14 +29,14 @@
+ typedef struct {
+ 	unsigned char sectaddr_min, sectaddr_sec, sectaddr_frac;
+ 	unsigned char mode;
+-} ccd_sectheader_header __attribute__((packed));
++} __attribute__((packed)) ccd_sectheader_header;
+ 
+ typedef unsigned char ccd_sectheader_subheader[8];  //??? No idea about the struct
+ 
+ typedef struct {
+ 	ccd_sectheader_syn syn;
+ 	ccd_sectheader_header header;
+-} ccd_sectheader __attribute__((packed));
++} __attribute__((packed)) ccd_sectheader;
+ 
+ typedef struct {
+ 	ccd_sectheader sectheader;
+@@ -54,7 +54,7 @@
+ 			ccd_ecc ecc;
+ 		} mode2;
+ 	} content;
+-} ccd_sector __attribute__((packed));
++} __attribute__((packed)) ccd_sector;
+ 
+ 
+ const ccd_sectheader_syn CCD_SYN_DATA = { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00 };
+Common subdirectories: src.orig/.deps and src/.deps
diff --git a/ccd2iso.spec b/ccd2iso.spec
new file mode 100644
index 0000000..2d4b1a4
--- /dev/null
+++ b/ccd2iso.spec
@@ -0,0 +1,80 @@
+Name:           ccd2iso
+Version:        0.3
+Release:        6%{?dist}
+Summary:        CloneCD image to ISO image file converter
+
+Group:          Applications/Archiving
+License:        GPLv2+
+URL:            http://ccd2iso.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/project/ccd2iso/ccd2iso/ccd2iso-%{version}/ccd2iso-%{version}.tar.gz
+# Fix compiler warnings.
+# https://sourceforge.net/tracker/?func=detail&aid=3032074&group_id=94638&atid=608543
+Patch0:         %{name}-%{version}-compilerWarnings.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#BuildRequires:  
+#Requires:       
+
+%description
+The %{name} project converts CD backup files created using the non-free CloneCD
+program to a format understood by most Free Software CD writing programs.
+
+
+%prep
+%setup -q
+%patch0
+sed 's/\r//' TODO > TODO.tmp
+touch -r TODO TODO.tmp
+mv TODO.tmp TODO
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+rm INSTALL NEWS
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README TODO
+%{_bindir}/%{name}
+
+
+
+%changelog
+* Sun Jul 25 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-6
+- Removing the %%{name} macro from URL links
+
+* Fri Jul 09 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-5
+- Using the %%{name} macro throughout the whole file wherever applicable
+- Adding a patch to address compiler warnings
+- Fixing end-of-line errors in TODO directly in the %%prep section(without a
+  patch)
+- Excluding the INSTALL file from package contents
+- Correcting the license to GPLv2+ to conform with the header notice in the
+  source files
+
+* Sun Apr 18 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-4
+- Changing the license to reflect the right version of GPL
+- Clarifying the patch purpose
+
+* Wed Feb 17 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-3
+- Using downloads.sourceforge.net instead of a mirror for Sourceforge URL in the
+  Source0 field
+- Adding  INSTALL="install -p" in the %%install section to preserve timestamps
+- Fixing rpmlint errors
+
+* Tue Feb 16 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-2
+- Using %%{version} with the Source0 field
+
+* Wed Jan 13 2010 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..6c5001f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a7df1c46cb710f2fc8ebd88c2e64ce65  ccd2iso-0.3.tar.gz


More information about the scm-commits mailing list