Compare commits

...
Sign in to create a new pull request.

26 commits

Author SHA1 Message Date
Fedora Release Engineering
4acba5bac6 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:26:38 +00:00
John W. Linville
e55de2e8fe Update source snapshot from current upstream
Add small fixes to correct FTBFS situation
2025-01-23 10:15:42 -05:00
Fedora Release Engineering
6d4bbd574e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:06:33 +00:00
Miroslav Suchý
7117bad08d Migrate to SPDX license (temporary ids)
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4

Note that this is an SPDX identifier, but it still needs to be migrated to the proper identifiers in the fedora-license-data set.
Please follow https://docs.fedoraproject.org/en-US/legal/update-existing-packages/#_public_domain

If there will be no comments in two weeks, I will merge this.
2024-09-19 07:27:06 +00:00
Fedora Release Engineering
84a676a766 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 07:41:52 +00:00
Software Management Team
a6b9f3eb28 Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:49 +02:00
Fedora Release Engineering
d2a3e94325 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 06:33:13 +00:00
Fedora Release Engineering
86410956f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 16:34:55 +00:00
Fedora Release Engineering
a08bfe6be1 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:16:34 +00:00
Fedora Release Engineering
71b466ff0d Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 10:41:42 +00:00
John W. Linville
048695619a Update source snapshot from current upstream
Add small fixes to correct FTBFS situation
2022-02-11 14:34:35 -05:00
John W. Linville
faddc307d9 Update from current upstream 2022-02-04 13:37:09 -05:00
John W. Linville
78fa2b3b31 Add -fPIE to CFLAGS definition in build section 2022-01-27 14:51:21 -05:00
Fedora Release Engineering
47dcfec1bb - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 02:54:33 +00:00
Fedora Release Engineering
26ee1c3fa4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 19:27:50 +00:00
Fedora Release Engineering
6c4e1f6c17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:07:23 +00:00
Tom Stellard
4cb539f643 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 22:43:33 +00:00
Fedora Release Engineering
9f4b41eca6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 12:41:25 +00:00
Fedora Release Engineering
d6daf5d27f - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 01:49:25 +00:00
Fedora Release Engineering
745135f797 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 01:41:22 +00:00
Fedora Release Engineering
ee7146e31e - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 10:04:35 +00:00
Igor Gnatenko
0248d0142b Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:52 +01:00
John W. Linville
94e559c9e7 Add BuildRequires for discount to handle markdown sources 2018-08-02 15:21:12 -04:00
John W. Linville
959e125837 Update from current upstream 2018-08-02 14:47:05 -04:00
Igor Gnatenko
786e0ef243
Add missing BuildRequires on gcc
make[1]: cc: Command not found

References: https://bugzilla.redhat.com/show_bug.cgi?id=1606531
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-24 16:10:42 +02:00
Fedora Release Engineering
7281178fa1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 07:43:35 +00:00
6 changed files with 246 additions and 34 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
/toolshed-20150416hg6f0dcb7087fe-noroms.tar.gz
/toolshed-20220204hga1b3c7faf452-noroms.tar.gz
/toolshed-20250123hg221d493c19f8-noroms.tar.gz

View file

@ -1 +1 @@
b4d913caa70598041e49961ac5ba153f toolshed-20150416hg6f0dcb7087fe-noroms.tar.gz
SHA512 (toolshed-20250123hg221d493c19f8-noroms.tar.gz) = f297c81e2793ff825d2b71483a971dfd9434152c99134e44426d31e1d72d5f842085990aae23d567d6e5d064d37461d6281820eac334d72166c52ec1f54d4782

View file

@ -0,0 +1,12 @@
diff -up ./libmisc/libmisccococonv.c.orig ./libmisc/libmisccococonv.c
--- ./libmisc/libmisccococonv.c.orig 2022-02-04 15:43:37.730514311 -0500
+++ ./libmisc/libmisccococonv.c 2022-02-04 15:43:51.202566302 -0500
@@ -545,7 +545,7 @@ void DECBToNative(char *buffer, u_int si
*
* Returns textual representation of file attributes to standard output
*/
-void OS9AttrToString(int attr_byte, char string[9])
+void OS9AttrToString(int attr_byte, char *string)
{
int i;
char *attrs = "dsewrewr";

View file

@ -1,12 +0,0 @@
diff -up toolshed-20150416hg6f0dcb7087fe/os9/os9ident.c.orig toolshed-20150416hg6f0dcb7087fe/os9/os9ident.c
--- toolshed-20150416hg6f0dcb7087fe/os9/os9ident.c.orig 2015-04-16 14:11:27.860172406 -0400
+++ toolshed-20150416hg6f0dcb7087fe/os9/os9ident.c 2015-04-16 14:11:40.992302666 -0400
@@ -121,7 +121,7 @@ static void ident_osk(OSK_MODULE_t *mod)
printf("Trap Hnlr");
break;
default :
- printf(types[mod->type]);
+ printf("%s", types[mod->type]);
break;
}
printf(", %s",(mod->lang == Objct) ? "68000 obj" : langs[mod->lang]);

View file

@ -0,0 +1,152 @@
diff -up ./ar2/ar.c.orig ./ar2/ar.c
--- ./ar2/ar.c.orig 2022-02-04 15:26:23.682612220 -0500
+++ ./ar2/ar.c 2022-02-04 15:28:00.464944064 -0500
@@ -128,6 +128,10 @@
#include "ar.h"
#include "lz1.h"
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
+
#if defined(BRAINDEAD)
# undef tolower
# define tolower ck_tolower
@@ -885,7 +889,7 @@ void fataln(int code, char *msg, long ar
*/
static char *hlpmsg[] = {
- "ar2 from Toolshed " TOOLSHED_VERSION "\n",
+ "ar2 from Toolshed " TOOLSHED_VSTRING "\n",
"Ar V2.02 - archive file manager\n",
"Usage: ar2 -<cmd>[<modifier>] archive [file .. ]\n",
" <cmd> is one of the following:\n",
diff -up ./cocofuse/cocofuse.c.orig ./cocofuse/cocofuse.c
--- ./cocofuse/cocofuse.c.orig 2022-02-04 15:30:29.809473609 -0500
+++ ./cocofuse/cocofuse.c 2022-02-04 15:29:52.210328510 -0500
@@ -30,6 +30,10 @@
#include <fuse.h>
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
+
static int coco_access(const char *path, int mode);
static int coco_statfs(const char *path, struct statvfs *stbuf);
static int coco_fgetattr(const char *path, struct stat *stbuf,
@@ -699,7 +703,7 @@ static struct fuse_operations coco_files
void usage(const char *name)
{
- printf("cocofuse from Toolshed " TOOLSHED_VERSION "\n");
+ printf("cocofuse from Toolshed " TOOLSHED_VSTRING "\n");
printf("Usage: %s: dskimage mountpoint [FUSE options]\n", name);
}
diff -up ./makewav/makewav.c.orig ./makewav/makewav.c
--- ./makewav/makewav.c.orig 2022-02-04 15:34:00.255285749 -0500
+++ ./makewav/makewav.c 2022-02-04 15:34:12.090331422 -0500
@@ -22,6 +22,10 @@
#include <stdlib.h>
#include <math.h>
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
+
#if defined(__CYGWIN32__) || defined(__linux__) || defined(WIN32)
/* implemented based on OSX man page */
static inline int digittoint(int c)
@@ -230,7 +234,7 @@ int main(int argc, char **argv)
if (argc < 2)
{
fprintf(stderr,
- "makewav from Toolshed " TOOLSHED_VERSION "\n");
+ "makewav from Toolshed " TOOLSHED_VSTRING "\n");
fprintf(stderr,
"makewav - S-record to CoCo/MC-10 audio WAV file\n");
fprintf(stderr, "Copyright (C) 2007 Tim Lindner\n");
diff -up ./os9/os9_main.c.orig ./os9/os9_main.c
--- ./os9/os9_main.c.orig 2022-02-04 15:34:39.767438231 -0500
+++ ./os9/os9_main.c 2022-02-04 15:34:56.591503157 -0500
@@ -12,13 +12,16 @@
#include <cocotypes.h>
#include <cocopath.h>
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
static void show_os9_help(char const *const *helpMessage);
static int do_command(int argc, char **argv);
/* Help message */
static char const *const helpMessage[] = {
- "os9 from Toolshed " TOOLSHED_VERSION "\n",
+ "os9 from Toolshed " TOOLSHED_VSTRING "\n",
"Syntax: os9 {[<opts>]} <command> {[<opts>]}\n",
"Usage: OS-9 File Tools Executive\n",
"Options:\n",
diff -up ./tocgen/tocgen_main.c.orig ./tocgen/tocgen_main.c
--- ./tocgen/tocgen_main.c.orig 2022-02-04 15:31:17.642658204 -0500
+++ ./tocgen/tocgen_main.c 2022-02-04 15:33:18.632125119 -0500
@@ -9,12 +9,15 @@
#include <cocopath.h>
#include <util.h>
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
static int do_tocgen(char *infile, char *outfile, int quiet);
/* Help message */
static char const *const helpMessage[] = {
- "tocgen from Toolshed " TOOLSHED_VERSION "\n",
+ "tocgen from Toolshed " TOOLSHED_VSTRING "\n",
"Syntax: tocgen {[<opts>]} {<infile>} {[<outfile>]} {[<opts>]}\n",
"Usage: Table of contents generator for Sierra AGI games.\n",
"Options:\n",
diff -up ./cecb/cecb_main.c.orig ./cecb/cecb_main.c
--- ./cecb/cecb_main.c.orig 2022-02-04 15:41:39.920059662 -0500
+++ ./cecb/cecb_main.c 2022-02-04 15:42:26.617239873 -0500
@@ -12,12 +12,16 @@
#include <util.h>
#include <cecbpath.h>
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
+
static void show_cecb_help(char const *const *helpMessage);
static int do_command(int argc, char **argv);
/* Help message */
static char const *const helpMessage[] = {
- "cecb from Toolshed " TOOLSHED_VERSION "\n",
+ "cecb from Toolshed " TOOLSHED_VSTRING "\n",
"Syntax: cecb {[<opts>]} <sub command> {[<opts>]}\n",
"Usage: Cassette BASIC File Tools Executive\n",
"Options:\n",
diff -up ./decb/decb_main.c.orig ./decb/decb_main.c
--- ./decb/decb_main.c.orig 2022-02-04 15:41:16.139967884 -0500
+++ ./decb/decb_main.c 2022-02-04 15:41:34.436038498 -0500
@@ -11,13 +11,16 @@
#include "util.h"
+#define TOOLSHED_STR(x) #x
+#define TOOLSHED_VER(num) TOOLSHED_STR(num)
+#define TOOLSHED_VSTRING TOOLSHED_VER(TOOLSHED_VERSION)
static void show_decb_help(char const *const *helpMessage);
static int do_command(int argc, char **argv);
/* Help message */
static char const *const helpMessage[] = {
- "decb from Toolshed " TOOLSHED_VERSION "\n",
+ "decb from Toolshed " TOOLSHED_VSTRING "\n",
"Syntax: decb {[<opts>]} <command> {[<opts>]}\n",
"Usage: Disk BASIC File Tools Executive\n",
"Options:\n",

View file

@ -1,10 +1,11 @@
Name: toolshed
Version: 20150416hg6f0dcb7087fe
Release: 7%{?dist}
Version: 20250123hg221d493c19f8
Release: 2%{?dist}
Summary: Cross-development toolkit for use with the Tandy Color Computer
Group: Development/Tools
License: Public Domain
# Automatically converted from old format: Public Domain - needs further work
License: LicenseRef-Callaway-Public-Domain
URL: http://sourceforge.net/projects/toolshed/
Source0: %{name}-%{version}-noroms.tar.gz
# toolshed contains disassmbled code that we cannot ship. Therefore we use
@ -15,14 +16,13 @@ Source0: %{name}-%{version}-noroms.tar.gz
# ./generate-tarball.sh <date>hg<hash>
Source1: generate-tarball.sh
Patch0: toolshed-printf-format.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: fuse-devel
BuildRequires: discount
%package doc
Summary: Documentation for ToolShed
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Patch0: toolshed-version-stringify.patch
Patch1: toolshed-OS9AttrToString-param.patch
%description
@ -32,38 +32,97 @@ Dragon microcomputers. Tools are included to read/write both OS-9 RBF
disk images and CoCo Disk BASIC disk images, create WAV and CAS files
and much more.
%description doc
Documentation files from the ToolShed project.
%prep
%setup -q
%patch0 -p1
%patch -P0 -p1
%patch -P1 -p1
# Turn-off weird doc permissions...
chmod 0644 doc/*
%build
make %{?_smp_mflags} CFLAGS="%{optflags} -I../../../include -DSYSV" \
make %{?_smp_mflags} CFLAGS="%{optflags} \
-fPIE -DSYSV -Dunix -DUNIX -DSYSV -O3 -I. -I../../../include -Wall \
-DTOOLSHED_VERSION=2.2 -D_FILE_OFFSET_BITS=64 -Wno-unused-result -Werror" \
-C build/unix
%install
mkdir -p %{buildroot}%{_bindir}
make %{?_smp_mflags} -C build/unix install INSTALLDIR=%{buildroot}%{_bindir}
make %{?_smp_mflags} -C build/unix install INSTALLDIR=%{buildroot}%{_bindir} DOCDIR=%{buildroot}%{_docdir}/%{name}
%files
%{_bindir}/*
%files doc
%doc doc/ToolShed.doc
%doc "doc/The Mamou Assembler.doc"
%{_docdir}/%{name}/ToolShed.html
%changelog
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20250123hg221d493c19f8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jan 23 2025 John W. Linville <linville@tuxdriver.com> 20250123hg221d493c19f8-1
- Update source snapshot from current upstream
- Add small fixes to correct FTBFS situation
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20220204hga1b3c7faf452-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Feb 04 2022 John W. Linville <linville@tuxdriver.com> 20220204hga1b3c7faf452-1
- Update source snapshot from current upstream
- Add small fixes to correct FTBFS situation
* Thu Jan 27 2022 John W. Linville <linville@tuxdriver.com> 20180731hg6906ea14f8f5-9
- Add -fPIE to CFLAGS definition in build section
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180731hg6906ea14f8f5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Aug 02 2018 John W. Linville <linville@tuxdriver.com> 20180731hg6906ea14f8f5-2
- Add BuildRequires for discount to handle markdown sources
* Tue Jul 31 2018 John W. Linville <linville@tuxdriver.com> 20180731hg6906ea14f8f5-1
- Update from current upstream
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20150416hg6f0dcb7087fe-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20150416hg6f0dcb7087fe-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild