[2145] | 1 | Summary: A barcode generator and library |
---|
| 2 | Summary(ja): Zintバーコード作成プログラム |
---|
| 3 | Name: zint |
---|
[3809] | 4 | Version: 2.4.2 |
---|
[8749] | 5 | Release: 2%{?_dist_release} |
---|
[2145] | 6 | License: GPLv3+ |
---|
| 7 | URL: http://www.zint.org.uk |
---|
[3809] | 8 | Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
| 9 | Patch0: zint-2.4.0-qr-kanji.patch |
---|
| 10 | Patch1: %{name}-rpath.patch |
---|
[8749] | 11 | Patch2: %{name}-2.4.2-libpng16.patch |
---|
[2145] | 12 | Group: Applications/Engineering |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | BuildRequires: cmake |
---|
| 15 | BuildRequires: libpng-devel |
---|
| 16 | BuildRequires: zlib-devel |
---|
[3809] | 17 | BuildRequires: qt4-devel |
---|
| 18 | BuildRequires: desktop-file-utils |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | Vendor: Project Vine |
---|
[2145] | 21 | Packager: owa |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | Zint is a C library for encoding data in several barcode variants. The |
---|
| 25 | bundled command-line utility provides a simple interface to the library. |
---|
| 26 | Features of the library: |
---|
| 27 | - Over 50 symbologies including all ISO/IEC standards, like QR codes. |
---|
| 28 | - Unicode translation for symbologies which support Latin-1 and |
---|
| 29 | Kanji character sets. |
---|
| 30 | - Full GS1 support including data verification and automated insertion of |
---|
| 31 | FNC1 characters. |
---|
| 32 | - Support for encoding binary data including NULL (ASCII 0) characters. |
---|
| 33 | - Health Industry Barcode (HIBC) encoding capabilities. |
---|
| 34 | - Output in PNG, EPS and SVG formats with user adjustable sizes and colors. |
---|
| 35 | - Verification stage for SBN, ISBN and ISBN-13 data. |
---|
| 36 | |
---|
| 37 | %package devel |
---|
| 38 | Summary: Library and header files for %{name} |
---|
| 39 | Summary(ja): Zintバーコードの開発用ライブラリとヘッダファイル |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | |
---|
| 43 | %description devel |
---|
| 44 | C library and header files needed to develop applications using %{name}. |
---|
| 45 | The API documentation can be found ont the project website: |
---|
| 46 | http://www.zint.org.uk/zintSite/Manual.aspx |
---|
| 47 | |
---|
| 48 | %package qt |
---|
| 49 | Summary: Zint Barcode Studio GUI and library |
---|
| 50 | Summary(ja): Zintバーコード作成GUI(QT)とライブラリ |
---|
| 51 | Group: Applications/Engineering |
---|
| 52 | Requires: %{name} = %{version}-%{release} |
---|
| 53 | BuildRequires: qt4-devel >= 4.4 |
---|
| 54 | BuildRequires: desktop-file-utils |
---|
| 55 | |
---|
| 56 | %description qt |
---|
| 57 | Zint Barcode Studio is a Qt-based GUI which allows desktop users to generate |
---|
| 58 | barcodes which can then be embedded in documents or HTML pages, and a library |
---|
| 59 | which can be used to incorporate barcode generation functionality into other |
---|
| 60 | software. |
---|
| 61 | |
---|
| 62 | %package qt-devel |
---|
| 63 | Summary: Library and header files for %{name}-qt |
---|
| 64 | Summary(ja): ZintバーコードのGUI(QT)開発用ライブラリとヘッダファイル |
---|
| 65 | Group: Development/Libraries |
---|
| 66 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 67 | Requires: %{name}-qt = %{version}-%{release} |
---|
| 68 | |
---|
| 69 | %description qt-devel |
---|
| 70 | C library and header files needed to develop applications using %{name}-qt. |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %prep |
---|
| 74 | %setup -q |
---|
[3809] | 75 | %patch0 -p 1 -b .qr-kanji |
---|
| 76 | %patch1 -p 1 -b .rpath |
---|
[8749] | 77 | %patch2 -p1 -b .libpng16 |
---|
[2145] | 78 | |
---|
[3809] | 79 | # remove BSD-licensed file required for Windows only |
---|
| 80 | # (just to ensure that this package is plain GPLv3+) |
---|
[2145] | 81 | rm -f backend/ms_stdint.h |
---|
| 82 | # remove bundled getopt sources (we use the corresponding Fedora package instead) |
---|
| 83 | rm -f frontend/getopt*.* |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %build |
---|
| 87 | %cmake CMakeLists.txt |
---|
| 88 | make VERBOSE=1 %{?_smp_mflags} |
---|
| 89 | |
---|
[3809] | 90 | |
---|
| 91 | %install |
---|
| 92 | rm -rf $RPM_BUILD_ROOT |
---|
| 93 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 94 | |
---|
| 95 | rm -rf $RPM_BUILD_ROOT/%{_datadir}/cmake |
---|
| 96 | |
---|
| 97 | cat <<EOF >%{name}-qt.desktop |
---|
[2145] | 98 | [Desktop Entry] |
---|
| 99 | Encoding=UTF-8 |
---|
| 100 | Name=Zint Barcode Studio |
---|
| 101 | Name[ja]=Zintバーコードスタジオ |
---|
| 102 | Comment=Zint Barcode Studio |
---|
| 103 | Comment[ja]=バーコードを作成するツールです |
---|
| 104 | GenericName=Zint Barcode Studio |
---|
| 105 | Exec=zint-qt |
---|
| 106 | Icon=zint |
---|
| 107 | Terminal=false |
---|
| 108 | Type=Application |
---|
| 109 | Categories=Utility; |
---|
| 110 | EOF |
---|
| 111 | |
---|
[3809] | 112 | install -D -p -m 644 %{name}.png %{buildroot}/usr/share/pixmaps/%{name}.png |
---|
[2145] | 113 | install -D -p -m 644 %{name}-qt.desktop %{buildroot}%{_datadir}/applications/%{name}-qt.desktop |
---|
| 114 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-qt.desktop |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %clean |
---|
| 118 | rm -rf $RPM_BUILD_ROOT |
---|
| 119 | |
---|
| 120 | %post -p /sbin/ldconfig |
---|
| 121 | %postun -p /sbin/ldconfig |
---|
[3809] | 122 | %post qt -p /sbin/ldconfig |
---|
| 123 | %postun qt -p /sbin/ldconfig |
---|
[2145] | 124 | %files |
---|
| 125 | %defattr(-,root,root,-) |
---|
| 126 | %doc COPYING readme |
---|
| 127 | %{_bindir}/%{name} |
---|
| 128 | %{_libdir}/libzint.so.* |
---|
| 129 | |
---|
| 130 | %files devel |
---|
| 131 | %defattr(-,root,root,-) |
---|
| 132 | %{_includedir}/%{name}.h |
---|
| 133 | %{_libdir}/libzint.so |
---|
| 134 | |
---|
| 135 | %files qt |
---|
| 136 | %defattr(-,root,root,-) |
---|
| 137 | %{_bindir}/%{name}-qt |
---|
| 138 | %{_libdir}/libQZint.so.* |
---|
| 139 | %{_datadir}/applications/%{name}-qt.desktop |
---|
[3809] | 140 | %{_datadir}/pixmaps/%{name}.png |
---|
[2145] | 141 | |
---|
| 142 | %files qt-devel |
---|
| 143 | %defattr(-,root,root,-) |
---|
| 144 | %{_includedir}/qzint.h |
---|
| 145 | %{_libdir}/libQZint.so |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %changelog |
---|
[8749] | 149 | * Sun Jul 6 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.2-2 |
---|
| 150 | - rebuilt with current environment. |
---|
| 151 | - added Patch2 for libpng16. |
---|
| 152 | |
---|
[3809] | 153 | * Sat May 07 2011 Shu KONNO <owa@bg.wakwak.com> 2.4.2-1 |
---|
| 154 | - updated zint to 2.4.2 |
---|
| 155 | - added %{name}-rpath.patch |
---|
| 156 | - added BR: qt4-devel, desktop-file-utils |
---|
| 157 | |
---|
| 158 | * Sat Nov 06 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-2 |
---|
| 159 | - added zint-2.4.0-qr-kanji.patch (BTS:1062) |
---|
| 160 | - install %{name}.png |
---|
| 161 | |
---|
[2145] | 162 | * Thu Oct 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-1 |
---|
| 163 | - initial build for Vine |
---|
| 164 | |
---|