Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:graphics
zint
zint.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zint.spec of Package zint
# # spec file for package zint # # Copyright (c) 2022 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 so_ver 2_12 Name: zint Version: 2.12.0 Release: 0 Summary: Barcode generator library License: GPL-3.0-or-later URL: https://sourceforge.net/projects/zint/ Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.gz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5UiTools) BuildRequires: cmake(Qt5Widgets) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(zlib) %description Zint is a C library for encoding data in several barcode variants. The bundled command-line utility provides a simple interface to the library. Features of the library: - Over 50 symbologies including all ISO/IEC standards, like QR codes. - Unicode translation for symbologies which support Latin-1 and Kanji character sets. - Full GS1 support including data verification and automated insertion of FNC1 characters. - Support for encoding binary data including NULL (ASCII 0) characters. - Health Industry Barcode (HIBC) encoding capabilities. - Output in PNG, EPS and SVG formats with user adjustable sizes and colors. - Verification stage for SBN, ISBN and ISBN-13 data. %package qt Summary: Zint Barcode Studio %description qt Zint Barcode Studio is a Qt-based GUI which allows desktop users to generate barcodes which can then be embedded in documents or HTML pages. %package -n libzint%{so_ver} Summary: Zint library %description -n libzint%{so_ver} Zint library. %package -n libzint-devel Summary: Development files for Zint library Requires: libzint%{so_ver} = %{version} %description -n libzint-devel C library and header files needed to develop applications that use the Zint library. The API documentation can be found on the project website: http://www.zint.org.uk/zintSite/Manual.aspx %package -n libQZint%{so_ver} Summary: Qt version of Zint library %description -n libQZint%{so_ver} Qt version of Zint library. %package -n libQZint-devel Summary: Development files for Qt version of Zint library Requires: libQZint%{so_ver} = %{version} Requires: libzint-devel = %{version} %description -n libQZint-devel C library and header files needed to develop applications that use libQZint. %prep %autosetup -p1 -n %{name}-%{version}-src # remove bundled getopt sources (we use the corresponding package instead) rm -r getopt # zint 2.10 wrongly creates a static QZint library sed -i 's#STATIC#SHARED#' backend_qt/CMakeLists.txt %build %cmake -DDATA_INSTALL_DIR=%{_datadir} %cmake_build %install %cmake_install install -D -p -m 644 zint-qt.png %{buildroot}%{_datadir}/pixmaps/zint-qt.png install -D -p -m 644 zint-qt.desktop %{buildroot}%{_datadir}/applications/zint-qt.desktop # Wrong subdir name mv %{buildroot}%{_datadir}/cmake/modules %{buildroot}%{_datadir}/cmake/Modules # Wrong location mkdir -p %{buildroot}%{_libdir}/cmake mv %{buildroot}%{_datadir}/zint %{buildroot}%{_libdir}/cmake %suse_update_desktop_file -r zint-qt Graphics 2DGraphics VectorGraphics %post -n libzint%{so_ver} -p /sbin/ldconfig %postun -n libzint%{so_ver} -p /sbin/ldconfig %post -n libQZint%{so_ver} -p /sbin/ldconfig %postun -n libQZint%{so_ver} -p /sbin/ldconfig %files %doc ChangeLog README %{_bindir}/zint %{_mandir}/man1/zint.1%{?ext_man} %files qt %{_bindir}/zint-qt %{_datadir}/applications/zint-qt.desktop %{_datadir}/pixmaps/zint-qt.png %files -n libzint%{so_ver} %license LICENSE %{_libdir}/libzint.so.* %{_libdir}/cmake/zint/ %files -n libzint-devel %{_includedir}/zint.h %{_libdir}/libzint.so %files -n libQZint%{so_ver} %{_libdir}/libQZint.so.* %files -n libQZint-devel %{_includedir}/qzint.h %{_libdir}/libQZint.so # FindZint.cmake tries to find libzint *and* libqzint. # It must be in a package that pulls libzint-devel and libQZint-devel %{_datadir}/cmake/Modules/FindZint.cmake %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor