[d52] Initial import (#1033970).
Eric Smith
brouhaha at fedoraproject.org
Tue Dec 17 04:27:19 UTC 2013
commit b23f21ca37e332db105016c04fd8c8d90fd9f7f0
Author: Eric Smith <brouhaha at fedoraproject.org>
Date: Mon Dec 16 21:27:27 2013 -0700
Initial import (#1033970).
.gitignore | 1 +
d52.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
d52v341-nostrip.patch | 22 +++++++++++++++++
sources | 1 +
4 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9554b1c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/d52v341.zip
diff --git a/d52.spec b/d52.spec
new file mode 100644
index 0000000..e796d2b
--- /dev/null
+++ b/d52.spec
@@ -0,0 +1,64 @@
+%global major 3
+%global minor 4
+%global patchlevel 1
+
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
+# Notified upstream of incorrect FSF address on 23-NOV-2013.
+
+Name: d52
+URL: http://www.brouhaha.com/~eric/software/d52/
+Version: %{major}.%{minor}.%{patchlevel}
+Release: 2%{?dist}
+Group: Development/Languages
+License: GPLv3+
+Summary: Disassemblers for 8051, 8048, and Z80 families
+Source: http://www.brouhaha.com/~eric/software/d52/%{name}v%{major}%{minor}%{patchlevel}.zip
+Patch0: d52v341-nostrip.patch
+BuildRequires: dos2unix
+
+%description
+D52 is collection of disassemblers for the 8051, 8048, and Z80
+families of microcontrollers and microprocessors.
+
+%prep
+%setup -q -n d52v%{major}%{minor}%{patchlevel}
+
+for f in Makefile README *.{h,c,ctl,html} cyclefiles/*.{a51,cyc,ctl,d52,HEX,LST,rtf}
+do
+ dos2unix -k $f
+done
+
+# Fedora-specific patch to avoid stripping the executables in the build
+# process, as that interferes with creation of a debuginfo RPM.
+%patch0 -p1 -b .nostrip
+
+%build
+make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
+
+%install
+install -d -m0755 %{buildroot}%{_bindir}
+install -p -m0755 d52 %{buildroot}%{_bindir}
+install -p -m0755 d48 %{buildroot}%{_bindir}
+install -p -m0755 dz80 %{buildroot}%{_bindir}
+
+install -d -m0755 %{buildroot}%{_datadir}/%{name}/cyclefiles
+install -p -m0644 cyclefiles/*.cyc %{buildroot}%{_datadir}/%{name}/cyclefiles
+
+install -d -m0755 %{buildroot}%{_datadir}/%{name}/examples
+install -p -m0644 cyclefiles/*.{a51,d52,bin,ctl,HEX,LST,z80} %{buildroot}%{_datadir}/%{name}/examples
+
+%files
+%{_bindir}/d52
+%{_bindir}/d48
+%{_bindir}/dz80
+%{_datadir}/%{name}
+%doc COPYING README d52manual.html dz80-d48addendum.html
+%doc cyclefiles/cycle_counting.{doc,htm,rtf}
+
+%changelog
+* Sun Dec 15 2013 Eric Smith <eric at brouhaha.com> 3.4.1-2
+- Add comment for patch0.
+
+* Sat Nov 23 2013 Eric Smith <eric at brouhaha.com> 3.4.1-1
+- Initial version.
diff --git a/d52v341-nostrip.patch b/d52v341-nostrip.patch
new file mode 100644
index 0000000..4c3a94a
--- /dev/null
+++ b/d52v341-nostrip.patch
@@ -0,0 +1,22 @@
+diff -up d52v341/Makefile.nostrip d52v341/Makefile
+--- d52v341/Makefile.nostrip 2013-11-23 15:15:48.779167512 -0700
++++ d52v341/Makefile 2013-11-23 15:16:03.955166971 -0700
+@@ -27,15 +27,15 @@ install: d52 d48 dz80
+
+ d52: $(D52OBJS)
+ $(CC) $(CFLAGS) $(D52OBJS) -o d52 $(LIBS)
+- strip d52
++ #strip d52
+
+ d48: $(D48OBJS)
+ $(CC) $(CFLAGS) $(D48OBJS) -o d48 $(LIBS)
+- strip d48
++ #strip d48
+
+ dz80: $(DZ80OBJS)
+ $(CC) $(CFLAGS) $(DZ80OBJS) -o dz80 $(LIBS)
+- strip dz80
++ #strip dz80
+
+ $(OBJDIR)/d52.o: d52.c defs.h d52.h dispass0.c d52pass1.h d52pass2.h dispass3.c d52table.h analyze.h analyze.c analyze52.h analyze52.c common.h
+ $(CC) $(CFLAGS) -c $< -o $@
diff --git a/sources b/sources
index e69de29..4e79dc1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+55147203ba3bfe24ff7e7d2deec499e7 d52v341.zip
More information about the scm-commits
mailing list