Merge branch 'tizen' into tizen_3.0
[platform/upstream/libzbar.git] / zbar.spec.in
1 Name: zbar
2 Summary: bar code scanning and decoding
3 Version: @VERSION@
4 Release: 1
5 License: LGPL
6 Group: Development/Libraries
7 URL: http://zbar.sourceforge.net
8 Packager: Vit Hrachovy <fangorn34@users.sourceforge.net>
9 Source: zbar-%{version}.tar.gz
10 Requires: ImageMagick-c++
11 BuildPreReq: pkgconfig, libX11-devel, python-devel, gtk2-devel, pygtk2-devel, qt-devel >= 4, ImageMagick-c++-devel
12 Prefix: %{_prefix}
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
15 %description
16 The ZBar Bar Code Reader is a library for scanning and decoding bar
17 codes from various sources such as video streams, image files or raw
18 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
19 and Interleaved 2 of 5. The flexible, layered architecture features a
20 fast, streaming interface with a minimal memory footprint.
21
22 %package devel
23 Group: Development/Libraries
24 Summary: bar code library extra development files
25 Requires: %{name} = %{version}
26
27 %description devel
28 The ZBar Bar Code Reader is a library for scanning and decoding bar
29 codes from various sources such as video streams, image files or raw
30 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
31 and Interleaved 2 of 5. The flexible, layered architecture features a
32 fast, streaming interface with a minimal memory footprint.
33
34 This package contains header files and additional libraries used for
35 developing applications that read bar codes with this library.
36
37 %package gtk
38 Group: Development/Libraries
39 Summary: bar code reader GTK widget
40 Requires: %{name} = %{version}, gtk2
41
42 %description gtk
43 The ZBar Bar Code Reader is a library for scanning and decoding bar
44 codes from various sources such as video streams, image files or raw
45 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
46 and Interleaved 2 of 5. The flexible, layered architecture features a
47 fast, streaming interface with a minimal memory footprint.
48
49 This package contains a bar code scanning widget for use with GUI
50 applications based on GTK+-2.0.
51
52 %package gtk-devel
53 Group: Development/Libraries
54 Summary: bar code reader GTK widget extra development files
55 Requires: %{name}-gtk = %{version}, %{name}-devel = %{version}, gtk2-devel
56
57 %description gtk-devel
58 The ZBar Bar Code Reader is a library for scanning and decoding bar
59 codes from various sources such as video streams, image files or raw
60 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
61 and Interleaved 2 of 5. The flexible, layered architecture features a
62 fast, streaming interface with a minimal memory footprint.
63
64 This package contains header files and additional libraries used for
65 developing GUI applications based on GTK+-2.0 that include a bar code
66 scanning widget.
67
68 %package pygtk
69 Group: Development/Libraries
70 Summary: bar code reader PyGTK widget
71 Requires: %{name} = %{version}, pygtk2
72
73 %description pygtk
74 The ZBar Bar Code Reader is a library for scanning and decoding bar
75 codes from various sources such as video streams, image files or raw
76 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
77 and Interleaved 2 of 5. The flexible, layered architecture features a
78 fast, streaming interface with a minimal memory footprint.
79
80 This package contains a bar code scanning widget for use in GUI
81 applications based on PyGTK.
82
83 %package qt
84 Group: Development/Libraries
85 Summary: bar code reader Qt widget
86 Requires: %{name} = %{version}, qt >= 4
87
88 %description qt
89 The ZBar Bar Code Reader is a library for scanning and decoding bar
90 codes from various sources such as video streams, image files or raw
91 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
92 and Interleaved 2 of 5. The flexible, layered architecture features a
93 fast, streaming interface with a minimal memory footprint.
94
95 This package contains a bar code scanning widget for use with GUI
96 applications based on Qt4.
97
98 %package qt-devel
99 Group: Development/Libraries
100 Summary: bar code reader Qt widget extra development files
101 Requires: %{name}-qt = %{version}, %{name}-devel = %{version}, qt-devel >= 4
102
103 %description qt-devel
104 The ZBar Bar Code Reader is a library for scanning and decoding bar
105 codes from various sources such as video streams, image files or raw
106 intensity sensors.  It supports EAN, UPC, Code 128, Code 93, Code 39
107 and Interleaved 2 of 5. The flexible, layered architecture features a
108 fast, streaming interface with a minimal memory footprint.
109
110 This package contains header files and additional libraries used for
111 developing GUI applications based on Qt4 that include a bar code
112 scanning widget.
113
114 %prep
115 %setup -q -n zbar-%{version}
116
117 %build
118 ./configure --host=%{_host} --build=%{_build} \
119   CFLAGS="${CFLAGS:-%optflags}" \
120   CXXFLAGS="${CXXFLAGS:-%optflags}" \
121   --prefix=$RPM_BUILD_ROOT/%{_prefix} \
122   --docdir=$RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
123 make
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 make install
128
129 %clean
130 rm -rf $RPM_BUILD_ROOT
131
132 %post
133 ldconfig
134
135 %postun
136 ldconfig
137
138 %files
139 %defattr(-,root,root)
140 %{_bindir}/zbarimg
141 %{_bindir}/zbarcam
142 %{_libdir}/libzbar.so.*
143 %{_datadir}/man/man1/*
144 %doc %{_docdir}/%{name}-%{version}/COPYING
145 %doc %{_docdir}/%{name}-%{version}/HACKING
146 %doc %{_docdir}/%{name}-%{version}/INSTALL
147 %doc %{_docdir}/%{name}-%{version}/LICENSE
148 %doc %{_docdir}/%{name}-%{version}/NEWS
149 %doc %{_docdir}/%{name}-%{version}/README
150 %doc %{_docdir}/%{name}-%{version}/TODO
151
152 %files devel
153 %defattr(-,root,root)
154 %{_libdir}/libzbar.la
155 %{_libdir}/libzbar.a
156 %{_libdir}/libzbar.so
157 %{_libdir}/pkgconfig/zbar.pc
158 %{_includedir}/zbar.h
159 %{_includedir}/zbar/Exception.h
160 %{_includedir}/zbar/Symbol.h
161 %{_includedir}/zbar/Image.h
162 %{_includedir}/zbar/Scanner.h
163 %{_includedir}/zbar/Decoder.h
164 %{_includedir}/zbar/ImageScanner.h
165 %{_includedir}/zbar/Video.h
166 %{_includedir}/zbar/Window.h
167 %{_includedir}/zbar/Processor.h
168
169 %files gtk
170 %defattr(-,root,root)
171 %{_libdir}/libzbargtk.so.*
172
173 %files gtk-devel
174 %defattr(-,root,root)
175 %{_libdir}/libzbargtk.la
176 %{_libdir}/libzbargtk.a
177 %{_libdir}/libzbargtk.so
178 %{_libdir}/pkgconfig/zbar-gtk.pc
179 %{_includedir}/zbar/zbargtk.h
180
181 %files pygtk
182 %defattr(-,root,root)
183 %{_libdir}/python*
184
185 %files qt
186 %defattr(-,root,root)
187 %{_libdir}/libzbarqt.so.*
188
189 %files qt-devel
190 %defattr(-,root,root)
191 %{_libdir}/libzbarqt.la
192 %{_libdir}/libzbarqt.a
193 %{_libdir}/libzbarqt.so
194 %{_libdir}/pkgconfig/zbar-qt.pc
195 %{_includedir}/zbar/QZBar*.h
196
197 %changelog
198 * Thu Apr 21 2009 spadix <spadix@users.sourceforge.net>
199 - version 0.7 project name change
200
201 * Thu Jul 24 2008 spadix <spadix@users.sourceforge.net>
202 - version 0.5 updates (new widget packages)
203
204 * Sat May 31 2008 spadix <spadix@users.sourceforge.net>
205 - version 0.4 updates (description and library version)
206
207 * Tue Feb 19 2008 spadix <spadix@users.sourceforge.net>
208 - version 0.3 updates (dependencies and files)
209
210 * Fri Jun 08 2007 spadix <spadix@users.sourceforge.net>
211 - first release
212
213 * Tue May 22 2007 Vít Hrachový <fangorn34@users.sourceforge.net>
214 - Initial draft