adf551c
%global short_version 1.4.0
adf551c
59e7514
%if 0%{?fedora} || 0%{?rhel} >= 8
4184108
%global with_python3_cups 1
4184108
%endif
4184108
adf551c
Name: dymo-cups-drivers
adf551c
Version: %{short_version}.5
a6200d5
Release: 17%{?dist}
adf551c
Summary: DYMO LabelWriter Drivers for CUPS
4184108
License: GPLv2+
adf551c
URL: http://www.dymo.com
adf551c
adf551c
Source0: http://download.dymo.com/dymo/Software/Download%20Drivers/Linux/Download/dymo-cups-drivers-%{short_version}.tar.gz#/%{name}-%{version}.tar.gz
adf551c
adf551c
# https://github.com/matthiasbock/dymo-cups-drivers/pull/6
adf551c
Patch0: dymo-cups-drivers-fix-fsf-address.patch
adf551c
# https://github.com/matthiasbock/dymo-cups-drivers/commit/2433fa303dd9925f8b36b18406863c56766c651b
adf551c
Patch1: dymo-cups-drivers-replace-boolean-or-with-bitwise.patch
adf551c
# https://github.com/matthiasbock/dymo-cups-drivers/commit/d7ef90a48c61c898a3d69f353673d81d7540c892
adf551c
Patch2: dymo-cups-drivers-unused-var-statusok.patch
adf551c
# https://github.com/matthiasbock/dymo-cups-drivers/commit/697cfb8115054fb95b9e91d54d68f47ee3805060
adf551c
Patch3: dymo-cups-drivers-replace-deprecated-type.patch
adf551c
# https://github.com/matthiasbock/dymo-cups-drivers/pull/7
adf551c
Patch4: dymo-cups-drivers-autotools-deprecations.patch
adf551c
adf551c
# Patch files obtained from printer-driver-dymo Debian source package
adf551c
Patch5: 0001-Inheritate-CXXFLAGS-from-the-environment-to-use-dpkg.patch
adf551c
Patch6: 0002-Port-to-newer-cups-headers-ppd_file_t-is-only-define.patch
dcf9414
Patch7: 0005-Include-cups-sidechannel.h-for-cupsBackChannelRead-s.patch
adf551c
adf551c
BuildRequires: autoconf
adf551c
BuildRequires: automake
adf551c
BuildRequires: cups-devel
adf551c
BuildRequires: glibc-headers
adf551c
BuildRequires: libtool
adf551c
BuildRequires: gcc-c++
adf551c
BuildRequires: sed
dbe6028
BuildRequires: make
4184108
%{?with_python3_cups:BuildRequires: python3-cups}
4184108
%{!?with_python3_cups:BuildRequires: python-cups}
adf551c
adf551c
Requires: cups
adf551c
adf551c
%description
adf551c
DYMO LabelWriter and DYMO LabelMANAGER series drivers for CUPS
adf551c
adf551c
%prep
adf551c
%autosetup -p 1
adf551c
adf551c
%build
adf551c
autoreconf --force --install
adf551c
# Must enable c++11 for el7
adf551c
%{configure} CXXFLAGS="${CXXFLAGS} -std=c++11"
adf551c
%make_build
adf551c
adf551c
%install
adf551c
%make_install
adf551c
adf551c
%files
adf551c
%license LICENSE
adf551c
%doc AUTHORS ChangeLog README docs/ samples/
adf551c
%{_cups_serverbin}/filter/*
adf551c
%{_datadir}/cups/model/*
adf551c
adf551c
%changelog
a6200d5
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-17
a6200d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a6200d5
da1e288
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-16
da1e288
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
da1e288
584c2c4
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-15
584c2c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
584c2c4
3b6c199
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-14
3b6c199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3b6c199
391803f
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-13
391803f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
391803f
37330b4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-12
37330b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
37330b4
70d96c7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-11
70d96c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70d96c7
dcf9414
* Tue Jan 28 2020 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-10
dcf9414
- Fix FTBS cupsBackChannelRead was not declared in this scope
dcf9414
e5ba09e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-9
e5ba09e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e5ba09e
59e7514
* Fri Oct 04 2019 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-8
59e7514
- Buildrequire python3-cups for rhel >= 8
59e7514
ed1f022
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-7
ed1f022
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ed1f022
4184108
* Sun Feb 03 2019 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-6
4184108
- BZ1669976: update License tag, buildrequires python3-cups
4184108
3dde749
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0.5-5
3dde749
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3dde749
adf551c
* Tue Jan 08 2019 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-4
adf551c
- don't own cups folders
adf551c
- COPYING not needed, since content is the same as LICENSE
adf551c
- fix autotools deprecration warnings
adf551c
adf551c
* Mon Jan 07 2019 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-3
adf551c
- fix typo calling configure macro
adf551c
- add license and doc files
adf551c
- use _cups_serverbin macro
adf551c
- use autoreconf
adf551c
adf551c
* Mon Nov 26 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-2
adf551c
- Add gcc buildrequires for f29
adf551c
adf551c
* Sat Sep 1 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.4.0.5-1
adf551c
- Initial specfile