Summary: Barcode generator Summary(pl.UTF-8): Generator kodów kreskowych Name: zint Version: 2.12.0 Release: 1 License: BSD (zint library), GPL v3+ (Qt backend, frontends) Group: Applications/Graphics Source0: https://downloads.sourceforge.net/zint/%{name}-%{version}-src.tar.gz # Source0-md5: 6cb6d70fcbca2fa0becec628fb1aa360 URL: https://sourceforge.net/projects/zint/ # Qt6 also possible (with -DZINT_QT6=ON) BuildRequires: Qt5Core-devel >= 5 BuildRequires: Qt5Gui-devel >= 5 BuildRequires: Qt5UiTools-devel >= 5 BuildRequires: Qt5Widgets-devel >= 5 BuildRequires: Qt5Xml-devel >= 5 BuildRequires: cmake >= 3.5 BuildRequires: libpng-devel BuildRequires: libstdc++-devel BuildRequires: qt5-build >= 5 BuildRequires: qt5-qmake >= 5 BuildRequires: rpmbuild(macros) >= 1.605 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl.UTF-8 Zint to biblioteka C do kodowania danych w kilku wariantach kodów koreskowych. Dołączone narzędzie linii poleceń udostępnia prosty interfejs do biblioteki. Możliwości biblioteki: - ponad 50 zestawów symboli, w tym wszystkie standardy ISO/IEC, typu kody QR - tłumaczenie unikodowe symboli obsługujących zestawy znaków Latin-1 i Kanji - pełna obsługa GS1, w tym weryfikacja danych i automatyczne wstawianie znaków FNC1 - obsługa kodowania danych binarnych wraz ze znakami NULL (ASCII 0) - możliwość kodowania HIBC (Health Industry Barcode) - wyjście w formatach PNG, EPS, SVG z rozmiarami i kolorami wybieranymi przez użytkownika - etap weryfikacji dla danych SBN, ISBN i ISBN-13. %package devel Summary: Header files for zint library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki zint License: BSD Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header files for zint library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki zint. %package qt Summary: Zint Barcode Studio Summary(pl.UTF-8): Zint Barcode Studio License: GPL v3+ Group: X11/Applications/Graphics Requires: %{name} = %{version}-%{release} %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. %description qt -l pl.UTF-8 Zint Barcode Studio jest aplikacją z interfejsem Qt, która umożliwia użytkownikom komputerów generować kody kreskowe. Mogą one później zostać włączone do dokumentów lub stron HTML. %package qt-devel Summary: Header files for QZint library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QZint License: GPL v3+ Group: X11/Development/Libraries Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-qt = %{version}-%{release} Requires: Qt5Gui-devel >= 5 %description qt-devel Header files for QZint library. %description qt-devel -l pl.UTF-8 Pliki nagłówkowe biblioteki QZint. %prep %setup -q -n %{name}-%{version}-src find -type f -exec chmod 644 {} \; # build libQZint as shared %{__sed} -i -e '/^add_library/ s/ STATIC / SHARED /' backend_qt/CMakeLists.txt %build install -d build cd build %cmake .. \ -DDATA_INSTALL_DIR=%{_datadir} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %{__mv} $RPM_BUILD_ROOT%{_datadir}/cmake/{modules,Modules} install zint-qt.png $RPM_BUILD_ROOT%{_pixmapsdir} install zint-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc ChangeLog LICENSE README TODO %attr(755,root,root) %{_bindir}/zint %attr(755,root,root) %{_libdir}/libzint.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libzint.so.2.12 %{_mandir}/man1/zint.1* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libzint.so %{_includedir}/zint.h %{_datadir}/cmake/Modules/FindZint.cmake %dir %{_datadir}/zint %{_datadir}/zint/zint*.cmake %files qt %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/zint-qt %attr(755,root,root) %{_libdir}/libQZint.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libQZint.so.2.12 %{_desktopdir}/zint-qt.desktop %{_pixmapsdir}/zint-qt.png %files qt-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libQZint.so %{_includedir}/qzint.h