- update to 1.2.0:
* Added IntegerOrRange interface type
* Added non-strict comparison of Values and Attributes (check for Similarity)
* Fixed (Tag) Type() for TagNoValue. No it properly returns TypeVoid
* Added (Group) Similar(), (Groups) Similar() and (Message) Similar()
* Added (*Message) FixGroups()
* (*Message) FixGroup() replaced by NewMessageWithGroups()
* Added Attributes.Clone and Groups.Clone
* Added MakeAttr() and MakeAttrCollection(). MakeAttribute considered deprecated
* Added Formatter, Message.Print considered deprecated
* Formatter: fixed formatting of 1SetOf Collection
* Formatter: one more fix of formatting of 1SetOf Collection
* Message.AttrGroups function made public
* Added DeepCopy method for most types that contain values
* Print PDF file example updated
* Handling of Extended Tags Revisited
* Removed Accept-Encoding HTTP header in example. Go does it better
* Fixed go test on go 1.11
* Fixed Tag.String for negative tag values
* Improved output for Units.String() for unknown units
* Values.Equal now returns false when comparing Values{} and Values(nil)
* Collection.Equal abandoned
* Tests refactoring: systematic testing of Tag methods
* Tests refactoring: systematic testing of Value and Values methods
* Tests refactoring: systematic testing of Type methods
* Tests refactoring: systematic testing of Op methods
* Sparse table for Op.String replaced with map, saving 132K of memory
* Tests refactoring: systematic testing of Status methods
* Sparse table for Op.String replaced with map, saving 10K of memory
* Cosmetic
OBS-URL: https://build.opensuse.org/request/show/1268112
OBS-URL: https://build.opensuse.org/package/show/Printing/goipp?expand=0&rev=5
60 lines
1.6 KiB
RPMSpec
60 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package goipp
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define import_path github.com/OpenPrinting/goipp
|
|
Name: goipp
|
|
Version: 1.2.0
|
|
Release: 0
|
|
Summary: Implementation of the IPP core protocol in pure GO
|
|
License: BSD-2-Clause
|
|
URL: https://github.com/OpenPrinting/goipp
|
|
Source: %{name}-%{version}.tar.gz
|
|
BuildRequires: golang-packaging
|
|
BuildArch: noarch
|
|
|
|
%{go_provides}
|
|
|
|
%description
|
|
The goipp library is fairly complete implementation of IPP core protocol in pure Go.
|
|
Essentially, it is IPP messages parser/composer. Transport is not implemented
|
|
here, because Go standard library has an excellent built-in HTTP client,
|
|
and it doesn't make a lot of sense to wrap it here.
|
|
|
|
High-level requests, like "print a file" are also not implemented,
|
|
only the low-level stuff.
|
|
|
|
%prep
|
|
%autosetup
|
|
%goprep %{import_path}
|
|
|
|
%build
|
|
%gobuild
|
|
|
|
%install
|
|
%gosrc
|
|
|
|
%check
|
|
%gotest %{import_path}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{go_contribsrcdir}/github.com
|
|
|
|
%changelog
|