11ec6e9
# Setup _pkgdocdir if not defined already.
11ec6e9
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
11ec6e9
31ac609
# Logic for creating an unversioned symlink to %%{_pkgdocdir}
31ac609
# in case %%{_pkgdocdir} is actually a versioned directory.
31ac609
# %%global doesn't work here as we need lazy expansion.
31ac609
%define doc_symlink %{lua:if rpm.expand("%{_pkgdocdir}") ~= rpm.expand("%{_docdir}/%{name}") then print (1) end}
31ac609
12da7ba
# Setup macros for compile flags if not defined already.
12da7ba
%{!?build_cflags:%global build_cflags %{optflags}}
12da7ba
%{!?build_ldflags:%global build_ldflags %{?__global_ldflags}}
12da7ba
11ec6e9
# Construct the distribution string for BUILD_ID.
11ec6e9
# Please alter them, if you are building packages
11ec6e9
# for third-party repositories from this spec file.
11ec6e9
%if 0%{?fedora}
11ec6e9
%global dist_string Fedora
11ec6e9
%else
11ec6e9
%if 0%{?rhel}
11ec6e9
%global dist_string Fedora EPEL
11ec6e9
%else
11ec6e9
%global dist_string UNKNOWN
11ec6e9
%endif
11ec6e9
%endif
11ec6e9
11ec6e9
# Some general used defines to reduce boilerplate.
11ec6e9
%global git_url https://github.com/%{name}/%{name}
11ec6e9
11ec6e9
%global make_opts BUILD_ID="%{dist_string} %{version}-%{release}" \\\
11ec6e9
LDFLAGS="%{build_ldflags}" USER_CFLAGS="%{build_cflags}"
11ec6e9
11ec6e9
%global dir_opts PREFIX="%{_prefix}" bindir="%{_bindir}" \\\
11ec6e9
datadir="%{_datadir}/%{name}" htmldir="%{_pkgdocdir}/html" \\\
11ec6e9
infodir="%{_infodir}"
11ec6e9
df98f82
# Run check target by default.
df98f82
%bcond_without check
df98f82
11ec6e9
11ec6e9
Name:           cc65
11ec6e9
Version:        2.18
a4f04fe
Release:        12%{?dist}
11ec6e9
Summary:        A free C compiler for 6502 based systems
11ec6e9
11ec6e9
# For license clarification see:
11ec6e9
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714058#30
11ec6e9
License:        zlib
11ec6e9
URL:            https://cc65.github.io
11ec6e9
Source0:        %{git_url}/archive/V%{version}/%{name}-%{version}.tar.gz
11ec6e9
11ec6e9
# Backported from upstream.
f26de63
Patch0001:      0001-sim65-common-define-for-paravirt-hooks-base-location.patch
f26de63
Patch0002:      0002-Reduced-shadow-for-h2-to-improve-readability.patch
f26de63
Patch0003:      0003-Replace-GIT_SHA-with-a-more-versatile-BUILD_ID-defin.patch
f26de63
Patch0004:      0004-test-ref-otccex-Fix-ramdomly-occurring-segfault.patch
f26de63
Patch0005:      0005-util-zlib-deflater-Fix-several-compiler-warnings.patch
f26de63
Patch0006:      0006-zlib-Use-correct-un-signedness-of-char-in-prototypes.patch
f26de63
Patch0007:      0007-Made-the-ld65-configure-file-s-segment-offset-attrib.patch
f26de63
Patch0008:      0008-Minor-URL-update.patch
f26de63
Patch0009:      0009-src-Makefile-Simplify-BUILD_ID-logic.patch
f26de63
Patch0010:      0010-Changed-empty-parameter-lists-into-void-lists-on-fun.patch
f26de63
Patch0011:      0011-Add-page-0-variables-from-Telemon-2.4.patch
f26de63
Patch0012:      0012-Add-XSCROH-XSCROB-value.patch
f26de63
Patch0013:      0013-cc65-Add-support-for-binary-literals.patch
f26de63
Patch0014:      0014-binlit-Add-a-few-random-leading-zeros.patch
f26de63
Patch0015:      0015-Document-binary-literals.patch
f26de63
Patch0016:      0016-Fix-bug-gotoxy-does-not-working-because-Y-does-not-u.patch
f26de63
Patch0017:      0017-Add-textcolor-and-bgcolor.s.patch
f26de63
Patch0018:      0018-Fix-gotoy-changecolor.patch
f26de63
Patch0019:      0019-fix-typo.patch
f26de63
Patch0020:      0020-fix-import.patch
f26de63
Patch0021:      0021-Fix-typo-and-optimize.patch
f26de63
Patch0022:      0022-Fix-label-optimize-code.patch
f26de63
Patch0023:      0023-Fix-bug-with-bgcolor-and-textcolor.patch
f26de63
Patch0024:      0024-jmp-instead-of-jsr.patch
f26de63
Patch0025:      0025-Fix-bgcolor-and-textcolor-must-return-last-color-jmp.patch
f26de63
Patch0026:      0026-Optimize-Clrscr.patch
f26de63
Patch0027:      0027-Cleaning-import-variables.patch
f26de63
Patch0028:      0028-Fix-comment-and-gotox-force-colour-change.patch
f26de63
Patch0029:      0029-Fix-bug-FF.patch
b7f7297
Patch0030:      0030-Allowed-old-style-K-and-R-function-declarations-to-b.patch
b7f7297
Patch0031:      0031-Add-cclear-and-cclearxy.patch
b7f7297
Patch0032:      0032-Cleaning.patch
b7f7297
Patch0033:      0033-doc-clarify-need-for-.IMPORT-on-some-special-symbols.patch
b7f7297
Patch0034:      0034-Grammatical-modifications.patch
b7f7297
Patch0035:      0035-Use-the-word-macros-universally-not-macroes.patch
b7f7297
Patch0036:      0036-Added-a-charmap-header-that-converts-no-character-en.patch
b7f7297
Patch0037:      0037-Use-MACHID-to-check-for-realtime-clock.patch
b7f7297
Patch0038:      0038-Added-a-.ORG-keyword-to-ca65-structs-unions.patch
b7f7297
Patch0039:      0039-Created-a-target-and-a-library-for-the-Commander-X16.patch
b7f7297
Patch0040:      0040-Updated-the-cx16-start-up-to-the-emulator-s-release-.patch
b7f7297
Patch0041:      0041-Put-the-C64-code-into-cx16-_scrsize.s.patch
b7f7297
Patch0042:      0042-Fixed-a-typo-in-the-cx16-document.patch
b7f7297
Patch0043:      0043-Added-character-codes-to-change-between-the-two-CBM-.patch
b7f7297
Patch0044:      0044-Fixed-cgetc.patch
b7f7297
Patch0045:      0045-Made-the-none-CPU-allow-all-address-sizes.patch
b7f7297
Patch0046:      0046-Fix-Gamate-RVS.patch
b7f7297
Patch0047:      0047-Fix-colors-for-948.patch
b7f7297
Patch0048:      0048-Hello-world-example-for-the-Supervision.patch
b7f7297
Patch0049:      0049-Move-screen-init-into-crt0.s.patch
b7f7297
Patch0050:      0050-Improve-init-code-readability.patch
b7f7297
Patch0051:      0051-Improve-helloworld-example-for-Supervision.patch
b7f7297
Patch0052:      0052-Add-supervisionhello-in-samples-Makefile.patch
b7f7297
Patch0053:      0053-Use-decimal-for-lcd-size-initialization.patch
b7f7297
Patch0054:      0054-Comments.patch
b7f7297
Patch0055:      0055-Improve-comments.patch
b7f7297
Patch0056:      0056-Init-is-no-longer-in-crt0.s.patch
b7f7297
Patch0057:      0057-Significantly-faster-rand-implementation.patch
b7f7297
Patch0058:      0058-Update-comments-in-rand.s.patch
b7f7297
Patch0059:      0059-Added-new-program-descriptions-to-the-list.patch
b7f7297
Patch0060:      0060-Fixed-problems-with-the-Atari-Lynx-s-TGI-driver.patch
b7f7297
Patch0061:      0061-cx16-Update-ROM-banks-to-new-mapping.patch
b7f7297
Patch0062:      0062-Fixed-error-handling-for-missing-names-in-ld65-confi.patch
b7f7297
Patch0063:      0063-Fix-char-35-38-42-47-52.patch
b7f7297
Patch0064:      0064-Fix-4.patch
b7f7297
Patch0065:      0065-M-N-fixed.patch
b7f7297
Patch0066:      0066-Fix-left-arrow-char-77-13-64.patch
b7f7297
Patch0067:      0067-Fix-127-second-left-arrow.patch
b7f7297
Patch0068:      0068-small-m-and-n-fixed.patch
b7f7297
Patch0069:      0069-New-OSI-input-routine-based-on-disassembly-of-ROM-co.patch
b7f7297
Patch0070:      0070-Restructured-according-to-review.patch
b7f7297
Patch0071:      0071-Remove-obsolete-comment.patch
b7f7297
Patch0072:      0072-Remove-source-file-that-was-only-used-for-testing.patch
b7f7297
Patch0073:      0073-Address-review-comments.patch
b7f7297
Patch0074:      0074-Removed-redundant-LDA.patch
b7f7297
Patch0075:      0075-Added-the-GIF-switch-to-the-X16-emulator-s-control-p.patch
b7f7297
Patch0076:      0076-Tentative-solution-for-cgetc-in-Lynx.patch
b7f7297
Patch0077:      0077-Remove-useless-tax.patch
b7f7297
Patch0078:      0078-remove-bra.patch
b7f7297
Patch0079:      0079-Added-VERA-peek-and-poke-to-the-cx16-library.patch
b7f7297
Patch0080:      0080-libsrc-kplot.s-Use-cbm_kernal.inc-symbols-not-hardco.patch
b7f7297
Patch0081:      0081-vic20-cputc-Fix-incorrect-CRAM_PTR-at-startup-when-u.patch
b7f7297
Patch0082:      0082-Second-tentative-fix.patch
b7f7297
Patch0083:      0083-stz.patch
b7f7297
Patch0084:      0084-kbhit-checks-KBEDG-and-getc-resets-KBEDG.patch
b7f7297
Patch0085:      0085-Optimizations.patch
b7f7297
Patch0086:      0086-Reformat-comments-to-style-guide-rules.patch
b7f7297
Patch0087:      0087-Optimize-a-negation-in-signed-division.patch
b7f7297
Patch0088:      0088-Don-t-set-carry-when-already-set.patch
b7f7297
Patch0089:      0089-Swap-the-positive-negative-paths-to-save-a-branch.patch
b7f7297
Patch0090:      0090-Optimize-sign-extension.patch
b7f7297
Patch0091:      0091-Fixed-typos.patch
b7f7297
Patch0092:      0092-Made-assert-send-SIGABRT-when-an-assertion-fails.patch
b7f7297
Patch0093:      0093-Fixed-exit-code-974.patch
b7f7297
Patch0094:      0094-Changed-a-See-also-link-in-the-abort-and-assert-desc.patch
b7f7297
Patch0095:      0095-Updated-cx16-to-match-the-Commander-X16-ROMs-and-emu.patch
b7f7297
Patch0096:      0096-Added-a-standard-mouse-driver-to-the-cx16-library.patch
b7f7297
Patch0097:      0097-Fix-silent-crash-failure-on-warning-from-linker-comm.patch
b7f7297
Patch0098:      0098-make-linker-generated-export-warning-conistent-with-.patch
b7f7297
Patch0099:      0099-Replaced-plain-0-s-and-1-s-in-exit-statements-with-E.patch
b7f7297
Patch0100:      0100-Added-enum-for-cc65-exit-codes.-replaced-stdlib-exit.patch
b7f7297
Patch0101:      0101-Added-comment-to-debugger-exit-with-error.patch
b7f7297
Patch0102:      0102-Replaced-enum-in-cc65.h-by-defines.-added-comment-th.patch
b7f7297
Patch0103:      0103-Removed-CC65_-prefixes-from-exit-statements-in-abort.patch
b7f7297
Patch0104:      0104-Removed-additional-exit-constants-definitions-from-c.patch
b7f7297
Patch0105:      0105-added-additional-empty-line-after-header-guard-in-cc.patch
b7f7297
Patch0106:      0106-Removed-unnecessary-include-cc65.h-from-convert.c.patch
b7f7297
Patch0107:      0107-Fixed-C16-978.patch
b7f7297
Patch0108:      0108-Update-c16.sgml.patch
b7f7297
Patch0109:      0109-Update-c128.sgml.patch
b7f7297
Patch0110:      0110-Update-c64.sgml.patch
b7f7297
Patch0111:      0111-Update-cbm510.sgml.patch
b7f7297
Patch0112:      0112-Update-cx16.sgml.patch
b7f7297
Patch0113:      0113-Update-funcref.sgml.patch
b7f7297
Patch0114:      0114-Update-nes.sgml.patch
b7f7297
Patch0115:      0115-Update-pce.sgml.patch
b7f7297
Patch0116:      0116-Update-plus4.sgml.patch
b7f7297
Patch0117:      0117-Update-vic20.sgml.patch
b7f7297
Patch0118:      0118-Update-color.s.patch
b7f7297
Patch0119:      0119-Update-conio.s.patch
b7f7297
Patch0120:      0120-Update-cputc.s.patch
b7f7297
Patch0121:      0121-Update-fast.s.patch
b7f7297
Patch0122:      0122-Update-isfast.s.patch
b7f7297
Patch0123:      0123-Update-revers.s.patch
b7f7297
Patch0124:      0124-Update-slow.s.patch
b7f7297
Patch0125:      0125-Update-status.s.patch
a4f04fe
Patch0126:      0126-Added-cx16.h-to-the-function-reference-document.patch
a4f04fe
Patch0127:      0127-Expanded-Sim65-zero-page.patch
a4f04fe
Patch0128:      0128-Changed-sim65-s-internal-error-codes-from-9-bit-valu.patch
a4f04fe
Patch0129:      0129-Added-the-missing-BANK_RAM-array-to-the-Commander-X1.patch
a4f04fe
Patch0130:      0130-Updated-the-cx16-library-to-the-Commander-X16-Kernal.patch
a4f04fe
Patch0131:      0131-Made-the-program-chaining-exec-handle-the-X16-emulat.patch
a4f04fe
Patch0132:      0132-Added-real-time-clock-functions-to-the-cx16-library.patch
a4f04fe
Patch0133:      0133-Fixed-the-target-guards-around-the-usage-messages.patch
a4f04fe
Patch0134:      0134-Made-ca65-give-error-messages-when-it-sees-duplicate.patch
a4f04fe
Patch0135:      0135-Changes-in-INSTALL-routine-from-emd-c128-vdc.s.patch
a4f04fe
Patch0136:      0136-Added-reservation-of-second-byte-for-pagecount.patch
a4f04fe
Patch0137:      0137-Changed-the-order-in-which-lo-hi-bytes-of-vdc-addr-a.patch
a4f04fe
Patch0138:      0138-Updated-the-cx16-library-to-the-ROM-s-prerelease-36.patch
a4f04fe
Patch0139:      0139-Minor-cleanup.patch
a4f04fe
Patch0140:      0140-Made-cc65-detect-a-possibly-missing-argument-at-the-.patch
a4f04fe
Patch0141:      0141-added-regression-test-related-to-bug-1001.patch
a4f04fe
Patch0142:      0142-store-y-first-then-a.-fix-by-willymanilly.patch
a4f04fe
Patch0143:      0143-Fixes-Atari-OS-devhdl_t-init-field-needs-an-JMP-byte.patch
a4f04fe
Patch0144:      0144-Corrected-check-in-OptTransfers2-for-register-usage..patch
a4f04fe
Patch0145:      0145-Always-insert-a-LDA-after-the-removed-PLA-during-the.patch
a4f04fe
Patch0146:      0146-Quick-fix-for-the-OptPushPop-bug-reported-in-Issue-3.patch
a4f04fe
Patch0147:      0147-Just-disable-OptPushPop-if-N-Z-is-used-after-the-PLA.patch
a4f04fe
Patch0148:      0148-ctype-size-optimization.patch
a4f04fe
Patch0149:      0149-Changes-resulting-from-code-review.patch
a4f04fe
Patch0150:      0150-Changes-resulting-from-2nd-code-review.patch
a4f04fe
Patch0151:      0151-Fix-bug-in-tgi_line-HRS-X-parameters-are-16-bits.patch
a4f04fe
Patch0152:      0152-Fix-16-bits-values.patch
a4f04fe
Patch0153:      0153-Normalized-Atari-naming.patch
a4f04fe
Patch0154:      0154-Fixed-a-typo-in-commit-2e5fbe89cd3f67b06b292936dfdf4.patch
a4f04fe
Patch0155:      0155-Made-use-of-65C02-opcode-thx-to-polluks.patch
a4f04fe
Patch0156:      0156-Fixed-an-error-message-printer.patch
a4f04fe
Patch0157:      0157-SEGMENT-start-of-0-should-be-valid.patch
a4f04fe
Patch0158:      0158-fix-whitespace.patch
a4f04fe
Patch0159:      0159-Update-get_ostype.s.patch
a4f04fe
Patch0160:      0160-Adjusted-comments-due-to-recent-change.patch
a4f04fe
Patch0161:      0161-cc65-inline-asm-stp-mnemonic-support.patch
a4f04fe
Patch0162:      0162-code-style.patch
a4f04fe
Patch0163:      0163-Aligned-comment.patch
a4f04fe
Patch0164:      0164-Added-missing-tag-and-itemize-Linuxdoc-tags-to-some-.patch
a4f04fe
Patch0165:      0165-fix-the-clean-target-to-remove-any-disk-images.patch
a4f04fe
Patch0166:      0166-Matched-comment-to-the-one-in-the-C-header-file.patch
a4f04fe
Patch0167:      0167-Some-style-adjustments.patch
a4f04fe
Patch0168:      0168-Adjusted-tolower-and-toupper-to-https-github.com-cc6.patch
a4f04fe
Patch0169:      0169-Fixed-tolower-and-toupper-to-save-high-byte.patch
a4f04fe
Patch0170:      0170-Shortened-names-and-adjusted-style.patch
11ec6e9
11ec6e9
BuildRequires:  gcc
11ec6e9
BuildRequires:  make
11ec6e9
11ec6e9
Requires:       %{name}-common = %{version}-%{release}
11ec6e9
12da7ba
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
11ec6e9
Recommends:     %{name}-doc = %{version}-%{release}
11ec6e9
Recommends:     %{name}-utils%{?_isa} = %{version}-%{release}
11ec6e9
%endif
11ec6e9
11ec6e9
%description
11ec6e9
cc65 is a complete cross development package for 65(C)02 systems,
11ec6e9
including a powerful macro assembler, a C compiler, linker,
11ec6e9
librarian and several other tools.
11ec6e9
11ec6e9
cc65 has C and runtime library support for many of the old 6502
11ec6e9
machines, including
11ec6e9
11ec6e9
- the following Commodore machines:
11ec6e9
  - VIC20
11ec6e9
  - C16/C116 and Plus/4
11ec6e9
  - C64
11ec6e9
  - C128
11ec6e9
  - CBM 510 (aka P500)
11ec6e9
  - the 600/700 family
11ec6e9
  - newer PET machines (not 2001).
11ec6e9
- the Apple ]\[+ and successors.
11ec6e9
- the Atari 8 bit machines.
11ec6e9
- the Atari 2600 console.
11ec6e9
- the Atari 5200 console.
11ec6e9
- GEOS for the C64, C128 and Apple //e.
11ec6e9
- the Bit Corporation Gamate console.
11ec6e9
- the NEC PC-Engine (aka TurboGrafx-16) console.
11ec6e9
- the Nintendo Entertainment System (NES) console.
11ec6e9
- the Watara Supervision console.
11ec6e9
- the VTech Creativision console.
11ec6e9
- the Oric Atmos.
11ec6e9
- the Oric Telestrat.
11ec6e9
- the Lynx console.
11ec6e9
- the Ohio Scientific Challenger 1P.
11ec6e9
11ec6e9
11ec6e9
%package        devel
11ec6e9
Summary:        Development files for %{name}
11ec6e9
BuildArch:      noarch
11ec6e9
11ec6e9
Requires:       %{name} = %{version}-%{release}
11ec6e9
Provides:       %{name}-common = %{version}-%{release}
11ec6e9
11ec6e9
%description    devel
323efd5
This package contains the development files needed to
323efd5
compile and link applications for the 65(C)02 CPU with
323efd5
the %{name} cross compiler toolchain.
11ec6e9
11ec6e9
11ec6e9
%package        doc
11ec6e9
Summary:        Documentation files for %{name}
11ec6e9
BuildArch:      noarch
11ec6e9
11ec6e9
BuildRequires:  linuxdoc-tools
11ec6e9
BuildRequires:  texinfo
11ec6e9
11ec6e9
%description    doc
11ec6e9
This package contains the documentation files for %{name}.
11ec6e9
11ec6e9
11ec6e9
%package        utils
11ec6e9
Summary:        Additional utilities for %{name}
11ec6e9
BuildRequires:  zlib-devel
11ec6e9
11ec6e9
%description    utils
11ec6e9
This package contains the additional utilities for %{name}.
11ec6e9
11ec6e9
They are not needed for compiling applications with %{name},
11ec6e9
but might be handy for some additional tasks.
11ec6e9
11ec6e9
Since these utility programs have some heavier dependencies,
11ec6e9
and also can be used without the need of installing %{name},
11ec6e9
they have been split into this package.
11ec6e9
11ec6e9
11ec6e9
%prep
11ec6e9
%autosetup -p 1
11ec6e9
11ec6e9
11ec6e9
%build
11ec6e9
# Parallel build sometimes fails.
11ec6e9
# It finishes fine in a second run, tho.
11ec6e9
%make_build %{make_opts} %{dir_opts} || \
11ec6e9
%make_build %{make_opts} %{dir_opts}
11ec6e9
11ec6e9
# Build some additional utils.
11ec6e9
%{__mkdir_p} util_bin
11ec6e9
%{__cc} %{build_cflags} util/atari/ataricvt.c \
11ec6e9
  -o util_bin/ataricvt65 %{build_ldflags}
11ec6e9
%{__cc} %{build_cflags} util/cbm/cbmcvt.c \
11ec6e9
  -o util_bin/cbmcvt65 %{build_ldflags}
11ec6e9
%{__cc} %{build_cflags} util/gamate/gamate-fixcart.c \
11ec6e9
  -o util_bin/gamate-fixcart65 %{build_ldflags}
11ec6e9
%{__cc} %{build_cflags} util/zlib/deflater.c \
11ec6e9
  -o util_bin/deflater65 %{build_ldflags} -lz
11ec6e9
11ec6e9
# Build the documentation.
11ec6e9
%make_build doc
11ec6e9
11ec6e9
11ec6e9
%install
11ec6e9
%make_install %{make_opts} %{dir_opts}
11ec6e9
11ec6e9
# Install additional utils.
11ec6e9
%{__install} -p -m 0755 util/ca65html %{buildroot}%{_bindir}
11ec6e9
%{__install} -p -m 0755 util_bin/* %{buildroot}%{_bindir}
11ec6e9
11ec6e9
# Install more documentation.
11ec6e9
%{__mv} %{buildroot}%{_datadir}/%{name}/samples %{buildroot}%{_pkgdocdir}
11ec6e9
%{__install} -p -m 0644 README.md %{buildroot}%{_pkgdocdir}
12da7ba
%if !(0%{?fedora} >= 21 || 0%{?rhel} >= 7)
11ec6e9
%{__install} -p -m 0644 LICENSE %{buildroot}%{_pkgdocdir}
11ec6e9
%endif
31ac609
%if 0%{doc_symlink}
31ac609
%{__ln_s} %{_pkgdocdir} %{buildroot}%{_docdir}/%{name}
31ac609
%endif
11ec6e9
11ec6e9
df98f82
%if %{with check}
11ec6e9
%check
11ec6e9
# We need a clean build without PREFIX et all defined
11ec6e9
# to successfully run the tests from inside the builddir.
11ec6e9
# Unfortunately the testsuite cannot be run threaded.  -_-
11ec6e9
%{__make} clean
11ec6e9
%make_build %{make_opts} || \
11ec6e9
%make_build %{make_opts}
11ec6e9
%{__make} -C test QUIET=1
df98f82
%endif
11ec6e9
11ec6e9
11ec6e9
%files
12da7ba
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
11ec6e9
%license LICENSE
11ec6e9
%else
11ec6e9
%doc %{_pkgdocdir}/LICENSE
11ec6e9
%endif
31ac609
%if 0%{doc_symlink}
31ac609
%doc %{_docdir}/%{name}
31ac609
%endif
11ec6e9
%doc %dir %{_pkgdocdir}
11ec6e9
%doc %{_pkgdocdir}/README.md
11ec6e9
%{_bindir}/ar65
11ec6e9
%{_bindir}/ca65
11ec6e9
%{_bindir}/cc65
11ec6e9
%{_bindir}/chrcvt65
11ec6e9
%{_bindir}/cl65
11ec6e9
%{_bindir}/co65
11ec6e9
%{_bindir}/da65
11ec6e9
%{_bindir}/grc65
11ec6e9
%{_bindir}/ld65
11ec6e9
%{_bindir}/od65
11ec6e9
%{_bindir}/sim65
11ec6e9
%{_bindir}/sp65
11ec6e9
11ec6e9
11ec6e9
%files devel
12da7ba
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
11ec6e9
%license %{_datadir}/licenses/%{name}*
11ec6e9
%else
11ec6e9
%doc %{_pkgdocdir}/LICENSE
11ec6e9
%endif
31ac609
%if 0%{doc_symlink}
31ac609
%doc %{_docdir}/%{name}
31ac609
%endif
11ec6e9
%doc %dir %{_pkgdocdir}
11ec6e9
%doc %{_pkgdocdir}/README.md
11ec6e9
%{_datadir}/%{name}
11ec6e9
11ec6e9
11ec6e9
%files doc
12da7ba
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
11ec6e9
%license %{_datadir}/licenses/%{name}*
11ec6e9
%endif
31ac609
%if 0%{doc_symlink}
31ac609
%doc %{_docdir}/%{name}
31ac609
%endif
11ec6e9
%doc %{_pkgdocdir}
11ec6e9
%{_infodir}/*.info*
11ec6e9
11ec6e9
11ec6e9
%files utils
12da7ba
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
11ec6e9
%license %{_datadir}/licenses/%{name}*
11ec6e9
%else
11ec6e9
%doc %{_pkgdocdir}/LICENSE
11ec6e9
%endif
31ac609
%if 0%{doc_symlink}
31ac609
%doc %{_docdir}/%{name}
31ac609
%endif
11ec6e9
%doc %dir %{_pkgdocdir}
11ec6e9
%doc %{_pkgdocdir}/README.md
11ec6e9
%{_bindir}/ataricvt65
11ec6e9
%{_bindir}/ca65html
11ec6e9
%{_bindir}/cbmcvt65
11ec6e9
%{_bindir}/deflater65
11ec6e9
%{_bindir}/gamate-fixcart65
11ec6e9
11ec6e9
11ec6e9
%changelog
a4f04fe
* Mon Apr 06 2020 Björn Esser <besser82@fedoraproject.org> - 2.18-12
a4f04fe
- Add several bugfix patches from upstream
a4f04fe
0588b85
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-11
0588b85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0588b85
b7f7297
* Wed Nov 20 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-10
b7f7297
- Add several bugfix patches from upstream
b7f7297
e469247
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-9
e469247
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e469247
f26de63
* Mon Jul 22 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-8
f26de63
- Add a set of upstream patches to fix several minor bugs
f26de63
f9c0f6d
* Mon Jul 15 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-7
f9c0f6d
- Add two upstream patches for minor fixes
f9c0f6d
323efd5
* Fri Jul 05 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-6
323efd5
- Clarify the purpose of the devel package in its %%description
323efd5
  a bit more verbose
323efd5
b6cf416
* Fri Jul 05 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-5
b6cf416
- Add an upstream patch to fix ld65 behaviour
b6cf416
5d942bd
* Sun Jun 23 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-4
5d942bd
- Add some stuff for backwards compatibility
31ac609
- Add an unversioned symlink to %%{_pkgdocdir} if needed
5d942bd
fc6d4e6
* Wed Jun 19 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-3
fc6d4e6
- Replace Patch1000 with actual upstream commits
fc6d4e6
e78b4f3
* Sat Jun 15 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-2
a822593
- Update Patch1000
df98f82
- Add an option to disable %%check target
e78b4f3
11ec6e9
* Tue Jun 11 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-1
11ec6e9
- Initial import (#1718684)
11ec6e9
11ec6e9
* Tue Jun 11 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.6
11ec6e9
- Add a link for clarifying the actual license
11ec6e9
- Remove the %%{name} prefix from binaries in the utils package
11ec6e9
  and suffix them with 65 for a more uniform experience
11ec6e9
- Add a few comments
11ec6e9
- Optimize some global definitions to be more vasatile
11ec6e9
11ec6e9
* Tue Jun 11 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.5
11ec6e9
- Fix use of a macro
11ec6e9
- Remove hiphen separator from binaries in utils package
11ec6e9
- Fix an entry in %%changelog
11ec6e9
11ec6e9
* Mon Jun 10 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.4
11ec6e9
- Update Patch1000
11ec6e9
11ec6e9
* Mon Jun 10 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.3
11ec6e9
- Adapt BUILD_ID to be architecture independent
11ec6e9
- Drop Patches 1001 and 2000 as they are not needed anymore
11ec6e9
11ec6e9
* Sun Jun 09 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.2
11ec6e9
- Add downstream patch to undefine a macro mangling version string
11ec6e9
11ec6e9
* Sat Jun 08 2019 Björn Esser <besser82@fedoraproject.org> - 2.18-0.1
11ec6e9
- Initial rpm release (#1718684)