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