]>
Commit | Line | Data |
---|---|---|
ff764374 JB |
1 | # |
2 | # Conditional build: | |
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 | |
854054ed | 7 | |
ff764374 JB |
8 | %if %{without gstreamer} |
9 | %undefine with_gstreamer1 | |
10 | %undefine with_gstreamer0_10 | |
11 | %endif | |
12 | Summary: Aravis digital video camera acquisition library | |
13 | Summary(pl.UTF-8): Aravis - biblioteka do pobierania obrazu z kamer cyfrowych | |
14 | Name: aravis | |
41578c78 | 15 | Version: 0.6.4 |
29ad9631 | 16 | Release: 1 |
ff764374 JB |
17 | License: LGPL v2+ |
18 | Group: Libraries | |
41578c78 JB |
19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/aravis/0.6/%{name}-%{version}.tar.xz |
20 | # Source0-md5: 632227c75701dd687648b01e54a03206 | |
ff764374 JB |
21 | URL: https://wiki.gnome.org/Projects/Aravis |
22 | BuildRequires: appstream-glib-devel | |
41578c78 | 23 | BuildRequires: audit-libs-devel |
ff764374 JB |
24 | BuildRequires: gettext-tools |
25 | BuildRequires: glib2-devel >= 1:2.26 | |
26 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
27 | %if %{with gstreamer1} || %{with gui} | |
28 | BuildRequires: gstreamer-devel >= 1.0 | |
29 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
30 | %endif | |
31 | %if %{with gstreamer0_10} | |
32 | BuildRequires: gstreamer0.10-devel >= 0.10 | |
33 | BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10 | |
34 | %endif | |
35 | %{?with_gui:BuildRequires: gtk+3-devel >= 3.14.0} | |
36 | BuildRequires: gtk-doc >= 1.14 | |
37 | BuildRequires: intltool >= 0.31.2 | |
38 | %{?with_gui:BuildRequires: libnotify-devel} | |
41578c78 | 39 | BuildRequires: libusb-devel >= 1.0 |
ff764374 JB |
40 | BuildRequires: libxml2-devel >= 2.0 |
41 | BuildRequires: pkgconfig >= 1:0.14 | |
42 | BuildRequires: rpmbuild(macros) >= 1.592 | |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: xz | |
45 | BuildRequires: zlib-devel | |
46 | Requires: glib2 >= 1:2.32.0 | |
47 | Requires: gtk+3 >= 3.14.0 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | Aravis is a GLib/GObject based library for video acquisition using | |
52 | Genicam cameras. It currently only implements an Ethernet camera | |
53 | protocol used for industrial cameras. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Aravis to oparta na GLib/GObject biblioteka do pobierania obrazu przy | |
854054ed ER |
57 | użyciu kamer Genicam. Obecnie ma zaimplementowany tylko protokół kamer |
58 | ethernetowych używany przez kamery przemysłowe. | |
ff764374 JB |
59 | |
60 | %package viewer | |
61 | Summary: Simple viewer of video stream acquired using Aravis | |
62 | Summary(pl.UTF-8): Prosta przeglądarka strumienia obrazu pobranego przy użyciu biblioteki Aravis | |
63 | Group: X11/Applications/Graphics | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Requires(post,postun): gtk-update-icon-cache | |
66 | Requires: hicolor-icon-theme | |
67 | ||
68 | %description viewer | |
69 | Aravis Viewer is a simple viewer used to display video streams from | |
70 | GENICAM-based Ethernet industrial cameras. | |
71 | ||
72 | %description viewer -l pl.UTF-8 | |
73 | Aravis Viewer to prosta przeglądarka do wyświetlania strumieni obrazu | |
74 | pobranych z ethernetowych kamer przemysłowych opartych na GENICAM. | |
75 | ||
76 | %package devel | |
77 | Summary: Header files for Aravis library | |
78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Aravis | |
79 | Group: Development/Libraries | |
80 | Requires: %{name} = %{version}-%{release} | |
41578c78 | 81 | Requires: glib2-devel >= 1:2.32.0 |
ff764374 JB |
82 | Requires: libxml2-devel >= 2.0 |
83 | Requires: zlib-devel | |
84 | ||
85 | %description devel | |
86 | Header files for Aravis library. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe biblioteki Aravis. | |
90 | ||
91 | %package static | |
92 | Summary: Static Aravis library | |
93 | Summary(pl.UTF-8): Statyczna biblioteka Aravis | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | ||
97 | %description static | |
98 | Static Aravis library. | |
99 | ||
100 | %description static -l pl.UTF-8 | |
101 | Statyczna biblioteka Aravis. | |
102 | ||
103 | %package apidocs | |
104 | Summary: API documentation for Aravis library | |
105 | Summary(pl.UTF-8): Dokumentacja API biblioteki Aravis | |
106 | Group: Documentation | |
107 | Requires: gtk-doc-common | |
854054ed ER |
108 | %if "%{_rpmversion}" >= "5" |
109 | BuildArch: noarch | |
110 | %endif | |
ff764374 JB |
111 | |
112 | %description apidocs | |
113 | API documentation for Aravis library. | |
114 | ||
115 | %description apidocs -l pl.UTF-8 | |
116 | Dokumentacja API biblioteki Aravis. | |
117 | ||
118 | %package -n gstreamer0.10-aravis | |
119 | Summary: GStreamer 0.10 plugin for Aravis digital video camera acquisition library | |
120 | Summary(pl.UTF-8): Wtyczka GStreamera 0.10 do biblioteki pobierania obrazu z kamer cyfrowych Aravis | |
121 | Group: Libraries | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | Requires: gstreamer0.10 >= 0.10 | |
124 | Requires: gstreamer0.10-plugins-base >= 0.10 | |
125 | ||
126 | %description -n gstreamer0.10-aravis | |
127 | GStreamer 0.10 plugin for Aravis digital video camera acquisition | |
128 | library. | |
129 | ||
130 | %description -n gstreamer0.10-aravis -l pl.UTF-8 | |
131 | Wtyczka GStreamera 0.10 do biblioteki pobierania obrazu z kamer | |
132 | cyfrowych Aravis. | |
133 | ||
134 | %package -n gstreamer-aravis | |
135 | Summary: GStreamer 1 plugin for Aravis digital video camera acquisition library | |
136 | Summary(pl.UTF-8): Wtyczka GStreamera 1 do biblioteki pobierania obrazu z kamer cyfrowych Aravis | |
137 | Group: Libraries | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | Requires: gstreamer >= 1.0 | |
140 | Requires: gstreamer-plugins-base >= 1.0 | |
141 | ||
142 | %description -n gstreamer-aravis | |
143 | GStreamer 1 plugin for Aravis digital video camera acquisition | |
144 | library. | |
145 | ||
146 | %description -n gstreamer-aravis -l pl.UTF-8 | |
147 | Wtyczka GStreamera 1 do biblioteki pobierania obrazu z kamer cyfrowych | |
148 | Aravis. | |
149 | ||
150 | %prep | |
151 | %setup -q | |
152 | ||
153 | %build | |
154 | %configure \ | |
155 | --disable-silent-rules \ | |
156 | %{!?with_gstreamer1:--disable-gst-plugin} \ | |
157 | %{!?with_gstreamer0_10:--disable-gst-0.10-plugin} \ | |
158 | %{!?with_gui:--disable-viewer} \ | |
159 | --with-html-dir=%{_gtkdocdir} | |
160 | ||
161 | %{__make} | |
162 | ||
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %{__make} install \ | |
167 | DESTDIR=$RPM_BUILD_ROOT | |
168 | ||
169 | # loadable modules | |
41578c78 | 170 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-*/libgstaravis.0.6.la |
ff764374 | 171 | # obsoleted by pkg-config |
41578c78 | 172 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaravis-0.6.la |
ff764374 | 173 | # packaged as %doc |
41578c78 | 174 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/aravis |
ff764374 | 175 | |
41578c78 | 176 | %find_lang %{name}-0.6 |
ff764374 JB |
177 | |
178 | %clean | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
07a9d7ac JB |
181 | %post -p /sbin/ldconfig |
182 | %postun -p /sbin/ldconfig | |
183 | ||
ff764374 JB |
184 | %post viewer |
185 | %update_icon_cache hicolor | |
186 | ||
187 | %postun viewer | |
188 | %update_icon_cache hicolor | |
189 | ||
41578c78 | 190 | %files -f %{name}-0.6.lang |
ff764374 | 191 | %defattr(644,root,root,755) |
29ad9631 | 192 | %doc AUTHORS NEWS README.md TODO |
41578c78 JB |
193 | %attr(755,root,root) %{_bindir}/arv-fake-gv-camera-0.6 |
194 | %attr(755,root,root) %{_bindir}/arv-tool-0.6 | |
195 | %attr(755,root,root) %{_libdir}/libaravis-0.6.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libaravis-0.6.so.0 | |
197 | %{_libdir}/girepository-1.0/Aravis-0.6.typelib | |
198 | %{_mandir}/man1/arv-tool-0.6.1* | |
ff764374 JB |
199 | |
200 | %if %{with gui} | |
201 | %files viewer | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_bindir}/arv-viewer | |
41578c78 | 204 | %{_datadir}/aravis-0.6 |
ff764374 JB |
205 | %{_datadir}/appdata/arv-viewer.appdata.xml |
206 | %{_desktopdir}/arv-viewer.desktop | |
41578c78 JB |
207 | %{_iconsdir}/hicolor/*x*/apps/aravis.png |
208 | %{_iconsdir}/hicolor/scalable/devices/aravis-*-symbolic.svg | |
209 | %{_mandir}/man1/arv-viewer.1* | |
ff764374 JB |
210 | %endif |
211 | ||
212 | %files devel | |
213 | %defattr(644,root,root,755) | |
41578c78 JB |
214 | %attr(755,root,root) %{_libdir}/libaravis-0.6.so |
215 | %{_includedir}/aravis-0.6 | |
216 | %{_datadir}/gir-1.0/Aravis-0.6.gir | |
217 | %{_pkgconfigdir}/aravis-0.6.pc | |
ff764374 JB |
218 | |
219 | %files static | |
220 | %defattr(644,root,root,755) | |
41578c78 | 221 | %{_libdir}/libaravis-0.6.a |
ff764374 JB |
222 | |
223 | %files apidocs | |
224 | %defattr(644,root,root,755) | |
41578c78 | 225 | %{_gtkdocdir}/aravis-0.6 |
ff764374 JB |
226 | |
227 | %if %{with gstreamer0_10} | |
228 | %files -n gstreamer0.10-aravis | |
229 | %defattr(644,root,root,755) | |
41578c78 | 230 | %attr(755,root,root) %{_libdir}/gstreamer-0.10/libgstaravis.0.6.so |
ff764374 JB |
231 | %endif |
232 | ||
233 | %if %{with gstreamer1} | |
234 | %files -n gstreamer-aravis | |
235 | %defattr(644,root,root,755) | |
41578c78 | 236 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstaravis.0.6.so |
ff764374 | 237 | %endif |