[ccd2iso] - Adding a manual page from debian distro
Mohammed Safwat Kamel El-Afifi
msk61 at fedoraproject.org
Thu Dec 20 07:03:05 UTC 2012
commit 25d6e75bc03de5630ed2fddc072b5248089f8473
Author: Mohammed Safwat Kamel El-Afifi <Mohammed_ElAfifi at yahoo.com>
Date: Thu Dec 20 09:01:31 2012 +0200
- Adding a manual page from debian distro
ccd2iso-0.3-compilerWarnings.patch | 1 -
ccd2iso-0.3-manual.patch | 42 ++++++++++++++++++++++++++++++++++++
ccd2iso.spec | 13 ++++++++++-
3 files changed, 54 insertions(+), 2 deletions(-)
---
diff --git a/ccd2iso-0.3-compilerWarnings.patch b/ccd2iso-0.3-compilerWarnings.patch
index 6193950..d539174 100644
--- a/ccd2iso-0.3-compilerWarnings.patch
+++ b/ccd2iso-0.3-compilerWarnings.patch
@@ -47,4 +47,3 @@ diff -u src.orig/clonecd.h src/clonecd.h
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-0.3-manual.patch b/ccd2iso-0.3-manual.patch
new file mode 100644
index 0000000..23ad72d
--- /dev/null
+++ b/ccd2iso-0.3-manual.patch
@@ -0,0 +1,42 @@
+--- ccd2iso.1.orig 1970-01-01 02:00:00.000000000 +0200
++++ ccd2iso.1 2012-12-19 05:46:47.829384848 +0200
+@@ -0,0 +1,39 @@
++.TH CCD2ISO 1 "June 2006" "ccd2iso 0.3" "User Commands"
++.SH NAME
++ccd2iso \- convert IMG format to ISO format
++.SH SYNOPSIS
++.B ccd2iso
++.B "[FOO.IMG]" "[BAR.ISO]"
++.SH DESCRIPTION
++.B ccd2iso
++converts
++.B FOO.IMG
++to ISO format and writes the result to
++.BR "BAR.ISO" "."
++If fewer arguments than expected are given,
++.B ccd2iso
++will print its help message and quit. If more arguments than expected are given,
++.B ccd2iso
++will silently ignore them and use only the first two arguments.
++
++IMG files are raw-data copies of optical media, generated primarily by the Windows
++application CloneCD, and are primarily used to store CDs with odd properties, such
++as sectors which need to have read errors when read. Conversion to ISO format removes
++this information, as ISO format does not support this.
++
++IMG files almost always include a SUB file, which contains additional data for the disc format,
++and a CCD file, which is a plaintext configuration file describing the disc layout. ccd2iso does not
++make use of these files, but the applications which generate them expect them to have the same
++.B FOO
++prefix as the IMG file.
++.SH LIMITATIONS
++ccd2iso currently only copies the first session of multisession discs, as well as outputting a harmless warning of
++.BR "Unrecognized sector mode" "."
++
++ccd2iso utterly ignores the additional data in CCD or SUB files.
++.SH SEE ALSO
++.BR "mdf2iso" "(1), " "nrg2iso" "(1)"
++.SH AUTHOR
++This manual page was written by Rich Ercolani <rercola at acm.jhu.edu>, for the Debian GNU/Linux distribution
++(but it may, of course, be used by others), because the original program lacked a manual page. It may be
++distributed under the same terms as ccd2iso, the GNU GPL version 2 or later, at your option.
diff --git a/ccd2iso.spec b/ccd2iso.spec
index 5843cca..1cdead4 100644
--- a/ccd2iso.spec
+++ b/ccd2iso.spec
@@ -1,6 +1,6 @@
Name: ccd2iso
Version: 0.3
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: CloneCD image to ISO image file converter
Group: Applications/Archiving
@@ -10,6 +10,9 @@ Source0: http://downloads.sourceforge.net/project/ccd2iso/ccd2iso/ccd2iso
# Fix compiler warnings.
# https://sourceforge.net/tracker/?func=detail&aid=3032074&group_id=94638&atid=608543
Patch0: %{name}-%{version}-compilerWarnings.patch
+# Add a manual page from debian distro.
+# Sent upstream via email 20121201
+Patch1: %{name}-%{version}-manual.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
@@ -23,6 +26,7 @@ program to a format understood by most Free Software CD writing programs.
%prep
%setup -q
%patch0
+%patch1
sed 's/\r//' TODO > TODO.tmp
touch -r TODO TODO.tmp
mv TODO.tmp TODO
@@ -37,6 +41,9 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT
rm INSTALL NEWS
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+install -d $RPM_BUILD_ROOT%{_mandir}/man1/
+install -p -m644 ccd2iso.1 $RPM_BUILD_ROOT%{_mandir}/man1/ccd2iso.1
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/ccd2iso.1
%clean
@@ -46,11 +53,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO
+%{_mandir}/man1/ccd2iso.1.gz
%{_bindir}/%{name}
%changelog
+* Thu Dec 20 2012 Mohammed El-Afifi <Mohammed_ElAfifi at yahoo.com> - 0.3-10
+- Adding a manual page from debian distro
+
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list