zint.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. Name: zint
  2. Version: 2.13.0
  3. Release: 2%{?dist}
  4. Summary: A barcode generator and library
  5. License: GPLv3+
  6. URL: http://www.zint.org.uk
  7. Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.src.tar.gz
  8. Group: Applications/Engineering
  9. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  10. # Reset locales to "C" when exporting to EPS or SVG in order to force
  11. # decimal points in all language environments.
  12. # This issue has been reported upstream:
  13. # http://sourceforge.net/mailarchive/forum.php?thread_name=4BF78012.7090508%40uos.de&forum_name=zint-barcode
  14. Patch0: zint-locale.patch
  15. BuildRequires: cmake
  16. BuildRequires: libpng-devel
  17. BuildRequires: zlib-devel
  18. %description
  19. Zint is a C library for encoding data in several barcode variants. The
  20. bundled command-line utility provides a simple interface to the library.
  21. Features of the library:
  22. - Over 50 symbologies including all ISO/IEC standards, like QR codes.
  23. - Unicode translation for symbologies which support Latin-1 and
  24. Kanji character sets.
  25. - Full GS1 support including data verification and automated insertion of
  26. FNC1 characters.
  27. - Support for encoding binary data including NULL (ASCII 0) characters.
  28. - Health Industry Barcode (HIBC) encoding capabilities.
  29. - Output in the following file formats: PNG, GIF, EPS, WMF, BMP, TIF, SVG.
  30. - Verification stage for SBN, ISBN and ISBN-13 data.
  31. %package -n zint-devel
  32. Summary: Library and header files for %{name}
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description -n zint-devel
  36. C library and header files needed to develop applications using %{name}.
  37. The API documentation can be found ont the project website:
  38. https://zint.org.uk/manual/
  39. %package -n zint-qt
  40. Summary: Zint Barcode Studio GUI and library
  41. Group: Applications/Engineering
  42. Requires: %{name} = %{version}-%{release}
  43. BuildRequires: qt-devel >= 4.4
  44. BuildRequires: desktop-file-utils
  45. %description -n zint-qt
  46. Zint Barcode Studio is a Qt-based GUI which allows desktop users to generate
  47. barcodes which can then be embedded in documents or HTML pages, and a library
  48. which can be used to incorporate barcode generation functionality into other
  49. software.
  50. %package -n zint-qt-devel
  51. Summary: Library and header files for %{name}-qt
  52. Group: Development/Libraries
  53. Requires: %{name}-devel = %{version}-%{release}
  54. Requires: %{name}-qt = %{version}-%{release}
  55. %description -n zint-qt-devel
  56. C library and header files needed to develop applications using %{name}-qt.
  57. %prep
  58. %setup -q
  59. %patch0 -p1
  60. # remove bundled getopt sources (we use the corresponding Fedora package instead)
  61. rm -rf getopt
  62. %build
  63. %cmake CMakeLists.txt
  64. make VERBOSE=1 %{?_smp_mflags}
  65. cat <<EOF >zint-qt.desktop
  66. [Desktop Entry]
  67. Name=Zint Barcode Studio
  68. GenericName=Zint Barcode Studio
  69. Exec=zint-qt
  70. Icon=zint
  71. Terminal=false
  72. Type=Application
  73. Categories=Utility;
  74. EOF
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. make install DESTDIR=$RPM_BUILD_ROOT
  78. rm -rf $RPM_BUILD_ROOT/%{_datadir}/cmake
  79. install -D -p -m 644 frontend_qt4/images/%{name}_white.png %{buildroot}/usr/share/pixmaps/%{name}.png
  80. install -D -p -m 644 %{name}-qt.desktop %{buildroot}%{_datadir}/applications/%{name}-qt.desktop
  81. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-qt.desktop
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT
  84. %post -p /sbin/ldconfig
  85. %postun -p /sbin/ldconfig
  86. %post -n %{name}-qt -p /sbin/ldconfig
  87. %postun -n %{name}-qt -p /sbin/ldconfig
  88. %files
  89. %defattr(-,root,root,-)
  90. %doc COPYING README
  91. %{_bindir}/%{name}
  92. %{_libdir}/libzint.so.*
  93. %files -n %{name}-devel
  94. %defattr(-,root,root,-)
  95. %{_includedir}/%{name}.h
  96. %{_libdir}/libzint.so
  97. %files -n %{name}-qt
  98. %defattr(-,root,root,-)
  99. %{_bindir}/%{name}-qt
  100. %{_libdir}/libQZint.so.*
  101. %{_datadir}/applications/%{name}-qt.desktop
  102. %{_datadir}/pixmaps/%{name}.png
  103. %files -n %{name}-qt-devel
  104. %defattr(-,root,root,-)
  105. %{_includedir}/qzint.h
  106. %{_libdir}/libQZint.so
  107. %changelog
  108. * Sat Feb 1 2020 Harald Oehlmann <oehhar@sourceforge.net> - 2.7.1
  109. - Version -> 2.7.1
  110. * Thu Dec 5 2019 Harald Oehlmann <oehhar@sourceforge.net> - 2.7.0
  111. - Version -> 2.7.0
  112. * Wed Sep 18 2019 Harald Oehlmann <oehhar@sourceforge.net> - 2.6.6
  113. - Version -> 2.6.6
  114. * Mon Sep 1 2019 Harald Oehlmann <oehhar@sourceforge.net> - 2.6.5
  115. - Version -> 2.6.5
  116. * Fri Aug 30 2019 Harald Oehlmann <oehhar@sourceforge.net> - 2.6.4
  117. - Version -> 2.6.4
  118. * Thu Feb 15 2018 Robin Stuart <rstuart114@gmail.com> - 2.6.3
  119. - Version -> 2.6.3
  120. * Sun Oct 22 2017 Robin Stuat <rstuart114@gmail.com> - 2.6.2
  121. - Version -> 2.6.2
  122. * Sun Aug 27 2017 Robin Stuart <rstuart114@gmail.com> - 2.6.1
  123. - Version -> 2.6.1
  124. * Thu May 11 2017 Robin Stuart <rstuart114@gmail.com> - 2.6.0
  125. - Update version number
  126. * Sat May 22 2010 Martin Gieseking <martin.gieseking@uos.de> - 2.3.1-2
  127. - Added patch to fix export issue
  128. * Fri May 21 2010 Martin Gieseking <martin.gieseking@uos.de> - 2.3.1-1
  129. - initial package