3 %bcond_without gui # Viewer application
4 %bcond_without gstreamer # alias to disable both GStreamer plugins
5 %bcond_without gstreamer1 # GStreamer 1 plugin
6 %bcond_without gstreamer0_10 # GStreamer 0.10 plugin
8 %if %{without gstreamer}
9 %undefine with_gstreamer1
10 %undefine with_gstreamer0_10
12 Summary: Aravis digital video camera acquisition library
13 Summary(pl.UTF-8): Aravis - biblioteka do pobierania obrazu z kamer cyfrowych
19 Source0: http://ftp.gnome.org/pub/GNOME/sources/aravis/0.3/%{name}-%{version}.tar.xz
20 # Source0-md5: 80b46bbdf270d05f6e3a9cfa5a63f904
21 URL: https://wiki.gnome.org/Projects/Aravis
22 BuildRequires: appstream-glib-devel
23 BuildRequires: gettext-tools
24 BuildRequires: glib2-devel >= 1:2.26
25 BuildRequires: gobject-introspection-devel >= 0.10.0
26 %if %{with gstreamer1} || %{with gui}
27 BuildRequires: gstreamer-devel >= 1.0
28 BuildRequires: gstreamer-plugins-base-devel >= 1.0
30 %if %{with gstreamer0_10}
31 BuildRequires: gstreamer0.10-devel >= 0.10
32 BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10
34 %{?with_gui:BuildRequires: gtk+3-devel >= 3.14.0}
35 BuildRequires: gtk-doc >= 1.14
36 BuildRequires: intltool >= 0.31.2
37 %{?with_gui:BuildRequires: libnotify-devel}
38 BuildRequires: libxml2-devel >= 2.0
39 BuildRequires: pkgconfig >= 1:0.14
40 BuildRequires: rpmbuild(macros) >= 1.592
41 BuildRequires: tar >= 1:1.22
43 BuildRequires: zlib-devel
44 Requires: glib2 >= 1:2.32.0
45 Requires: gtk+3 >= 3.14.0
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Aravis is a GLib/GObject based library for video acquisition using
50 Genicam cameras. It currently only implements an Ethernet camera
51 protocol used for industrial cameras.
53 %description -l pl.UTF-8
54 Aravis to oparta na GLib/GObject biblioteka do pobierania obrazu przy
55 użyciu kamer Genicam. Obecnie ma zaimplementowany tylko protokół
56 kamer ethernetowych używany przez kamery przemysłowe.
59 Summary: Simple viewer of video stream acquired using Aravis
60 Summary(pl.UTF-8): Prosta przeglądarka strumienia obrazu pobranego przy użyciu biblioteki Aravis
61 Group: X11/Applications/Graphics
62 Requires: %{name} = %{version}-%{release}
63 Requires(post,postun): gtk-update-icon-cache
64 Requires: hicolor-icon-theme
67 Aravis Viewer is a simple viewer used to display video streams from
68 GENICAM-based Ethernet industrial cameras.
70 %description viewer -l pl.UTF-8
71 Aravis Viewer to prosta przeglądarka do wyświetlania strumieni obrazu
72 pobranych z ethernetowych kamer przemysłowych opartych na GENICAM.
75 Summary: Header files for Aravis library
76 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Aravis
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: glib2-devel >= 4.0
80 Requires: libxml2-devel >= 2.0
84 Header files for Aravis library.
86 %description devel -l pl.UTF-8
87 Pliki nagłówkowe biblioteki Aravis.
90 Summary: Static Aravis library
91 Summary(pl.UTF-8): Statyczna biblioteka Aravis
92 Group: Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
96 Static Aravis library.
98 %description static -l pl.UTF-8
99 Statyczna biblioteka Aravis.
102 Summary: API documentation for Aravis library
103 Summary(pl.UTF-8): Dokumentacja API biblioteki Aravis
105 Requires: gtk-doc-common
108 API documentation for Aravis library.
110 %description apidocs -l pl.UTF-8
111 Dokumentacja API biblioteki Aravis.
113 %package -n gstreamer0.10-aravis
114 Summary: GStreamer 0.10 plugin for Aravis digital video camera acquisition library
115 Summary(pl.UTF-8): Wtyczka GStreamera 0.10 do biblioteki pobierania obrazu z kamer cyfrowych Aravis
117 Requires: %{name} = %{version}-%{release}
118 Requires: gstreamer0.10 >= 0.10
119 Requires: gstreamer0.10-plugins-base >= 0.10
121 %description -n gstreamer0.10-aravis
122 GStreamer 0.10 plugin for Aravis digital video camera acquisition
125 %description -n gstreamer0.10-aravis -l pl.UTF-8
126 Wtyczka GStreamera 0.10 do biblioteki pobierania obrazu z kamer
129 %package -n gstreamer-aravis
130 Summary: GStreamer 1 plugin for Aravis digital video camera acquisition library
131 Summary(pl.UTF-8): Wtyczka GStreamera 1 do biblioteki pobierania obrazu z kamer cyfrowych Aravis
133 Requires: %{name} = %{version}-%{release}
134 Requires: gstreamer >= 1.0
135 Requires: gstreamer-plugins-base >= 1.0
137 %description -n gstreamer-aravis
138 GStreamer 1 plugin for Aravis digital video camera acquisition
141 %description -n gstreamer-aravis -l pl.UTF-8
142 Wtyczka GStreamera 1 do biblioteki pobierania obrazu z kamer cyfrowych
150 --disable-silent-rules \
151 %{!?with_gstreamer1:--disable-gst-plugin} \
152 %{!?with_gstreamer0_10:--disable-gst-0.10-plugin} \
153 %{!?with_gui:--disable-viewer} \
154 --with-html-dir=%{_gtkdocdir}
159 rm -rf $RPM_BUILD_ROOT
162 DESTDIR=$RPM_BUILD_ROOT
165 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-*/libgstaravis-0.4.la
166 # obsoleted by pkg-config
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaravis-0.4.la
169 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
171 %find_lang %{name}-0.4
174 rm -rf $RPM_BUILD_ROOT
176 %post -p /sbin/ldconfig
177 %postun -p /sbin/ldconfig
180 %update_icon_cache hicolor
183 %update_icon_cache hicolor
185 %files -f %{name}-0.4.lang
186 %defattr(644,root,root,755)
187 %doc AUTHORS NEWS README TODO
188 %attr(755,root,root) %{_bindir}/arv-fake-gv-camera-0.4
189 %attr(755,root,root) %{_bindir}/arv-tool-0.4
190 %attr(755,root,root) %{_libdir}/libaravis-0.4.so.*.*.*
191 %attr(755,root,root) %ghost %{_libdir}/libaravis-0.4.so.0
192 %{_libdir}/girepository-1.0/Aravis-0.4.typelib
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_bindir}/arv-viewer
198 %{_datadir}/aravis-0.4
199 %{_datadir}/appdata/arv-viewer.appdata.xml
200 %{_desktopdir}/arv-viewer.desktop
201 %{_iconsdir}/hicolor/*/apps/aravis.png
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/libaravis-0.4.so
207 %{_includedir}/aravis-0.4
208 %{_datadir}/gir-1.0/Aravis-0.4.gir
209 %{_pkgconfigdir}/aravis-0.4.pc
212 %defattr(644,root,root,755)
213 %{_libdir}/libaravis-0.4.a
216 %defattr(644,root,root,755)
217 %{_gtkdocdir}/aravis-0.4
219 %if %{with gstreamer0_10}
220 %files -n gstreamer0.10-aravis
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/gstreamer-0.10/libgstaravis-0.4.so
225 %if %{with gstreamer1}
226 %files -n gstreamer-aravis
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstaravis-0.4.so