]> git.pld-linux.org Git - packages/zint.git/blame - zint.spec
- updated to 2.9.1 (new soname)
[packages/zint.git] / zint.spec
CommitLineData
9c62fb58
MB
1Summary: Barcode generator
2Summary(pl.UTF-8): Generator kodów kreskowych
3Name: zint
75c6f91a
JB
4Version: 2.9.1
5Release: 1
9c62fb58 6License: GPL v3+
bc35963f 7Group: Applications/Graphics
75c6f91a
JB
8Source0: http://downloads.sourceforge.net/zint/%{name}-%{version}-src.tar.gz
9# Source0-md5: 00511707a3b80023b97a6a79c9b145f0
bc35963f
JB
10BuildRequires: Qt5Core-devel >= 5
11BuildRequires: Qt5Gui-devel >= 5
12BuildRequires: Qt5UiTools-devel >= 5
13BuildRequires: Qt5Widgets-devel >= 5
14BuildRequires: Qt5Xml-devel >= 5
9c62fb58
MB
15BuildRequires: cmake >= 2.6.0
16BuildRequires: libpng-devel
bc35963f
JB
17BuildRequires: libstdc++-devel
18BuildRequires: qt5-build >= 5
19BuildRequires: qt5-qmake >= 5
9c62fb58
MB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Zint is a C library for encoding data in several barcode variants. The
24bundled command-line utility provides a simple interface to the
25library. Features of the library:
26- Over 50 symbologies including all ISO/IEC standards, like QR codes.
27- Unicode translation for symbologies which support Latin-1 and Kanji
28 character sets.
29- Full GS1 support including data verification and automated insertion
30 of FNC1 characters.
31- Support for encoding binary data including NULL (ASCII 0)
32 characters.
33- Health Industry Barcode (HIBC) encoding capabilities.
34- Output in PNG, EPS and SVG formats with user adjustable sizes and
35 colors.
36- Verification stage for SBN, ISBN and ISBN-13 data.
37
bc35963f
JB
38%description -l pl.UTF-8
39Zint to biblioteka C do kodowania danych w kilku wariantach kodów
40koreskowych. Dołączone narzędzie linii poleceń udostępnia prosty
41interfejs do biblioteki. Możliwości biblioteki:
42- ponad 50 zestawów symboli, w tym wszystkie standardy ISO/IEC, typu
43 kody QR
44- tłumaczenie unikodowe symboli obsługujących zestawy znaków Latin-1 i
45 Kanji
46- pełna obsługa GS1, w tym weryfikacja danych i automatyczne
47 wstawianie znaków FNC1
48- obsługa kodowania danych binarnych wraz ze znakami NULL (ASCII 0)
49- możliwość kodowania HIBC (Health Industry Barcode)
50- wyjście w formatach PNG, EPS, SVG z rozmiarami i kolorami
51 wybieranymi przez użytkownika
52- etap weryfikacji dla danych SBN, ISBN i ISBN-13.
53
9c62fb58
MB
54%package devel
55Summary: Header files for zint library
56Summary(pl.UTF-8): Pliki nagłówkowe biblioteki zint
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59
60%description devel
61Header files for zint library.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe biblioteki zint.
65
66%package qt
67Summary: Zint Barcode Studio
68Summary(pl.UTF-8): Zint Barcode Studio
bc35963f 69Group: X11/Applications/Graphics
9c62fb58
MB
70Requires: %{name} = %{version}-%{release}
71
72%description qt
73Zint Barcode Studio is a Qt-based GUI which allows desktop users to
74generate barcodes which can then be embedded in documents or HTML
75pages.
76
77%description qt -l pl.UTF-8
78Zint Barcode Studio jest aplikacją z interfejsem Qt, która umożliwia
79użytkownikom komputerów generować kody kreskowe. Mogą one później
80zostać włączone do dokumentów lub stron HTML.
81
82%package qt-devel
83Summary: Header files for QZint library
84Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QZint
85Group: X11/Development/Libraries
86Requires: %{name}-devel = %{version}-%{release}
bc35963f
JB
87Requires: %{name}-qt = %{version}-%{release}
88Requires: Qt5Gui-devel >= 5
9c62fb58
MB
89
90%description qt-devel
91Header files for QZint library.
92
93%description qt-devel -l pl.UTF-8
94Pliki nagłówkowe biblioteki QZint.
95
96%prep
75c6f91a 97%setup -q -n %{name}-%{version}-src
9c62fb58
MB
98
99find -type f -exec chmod 644 {} \;
100
101%build
75c6f91a
JB
102install -d build
103cd build
104%cmake .. \
bc35963f
JB
105 -DDATA_INSTALL_DIR=%{_datadir}
106
9c62fb58
MB
107%{__make}
108
109%install
110rm -rf $RPM_BUILD_ROOT
111install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
112
75c6f91a 113%{__make} -C build install \
9c62fb58
MB
114 DESTDIR=$RPM_BUILD_ROOT
115
bc35963f
JB
116%{__mv} $RPM_BUILD_ROOT%{_datadir}/cmake/{modules,Modules}
117
9c62fb58
MB
118install zint.png $RPM_BUILD_ROOT%{_pixmapsdir}
119install zint-qt.desktop $RPM_BUILD_ROOT%{_desktopdir}
120
121%clean
122rm -rf $RPM_BUILD_ROOT
123
124%post -p /sbin/ldconfig
125%postun -p /sbin/ldconfig
bc35963f
JB
126
127%post qt -p /sbin/ldconfig
9c62fb58
MB
128%postun qt -p /sbin/ldconfig
129
130%files
131%defattr(644,root,root,755)
bc35963f 132%doc README TODO
9c62fb58
MB
133%attr(755,root,root) %{_bindir}/zint
134%attr(755,root,root) %{_libdir}/libzint.so.*.*.*
75c6f91a 135%attr(755,root,root) %ghost %{_libdir}/libzint.so.2.9
9c62fb58
MB
136
137%files devel
138%defattr(644,root,root,755)
139%attr(755,root,root) %{_libdir}/libzint.so
140%{_includedir}/zint.h
141%{_datadir}/cmake/Modules/FindZint.cmake
142
143%files qt
144%defattr(644,root,root,755)
145%attr(755,root,root) %{_bindir}/zint-qt
146%attr(755,root,root) %{_libdir}/libQZint.so.*.*.*
75c6f91a 147%attr(755,root,root) %ghost %{_libdir}/libQZint.so.2.9
9c62fb58
MB
148%{_pixmapsdir}/zint.png
149%{_desktopdir}/zint-qt.desktop
150
151%files qt-devel
152%defattr(644,root,root,755)
153%attr(755,root,root) %{_libdir}/libQZint.so
154%{_includedir}/qzint.h
This page took 0.107864 seconds and 4 git commands to generate.