]>
Commit | Line | Data |
---|---|---|
ff764374 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gui # Viewer application | |
da53ea92 | 4 | %bcond_without gstreamer # GStreamer plugin |
854054ed | 5 | |
ff764374 JB |
6 | Summary: Aravis digital video camera acquisition library |
7 | Summary(pl.UTF-8): Aravis - biblioteka do pobierania obrazu z kamer cyfrowych | |
8 | Name: aravis | |
98cd09b0 | 9 | Version: 0.8.5 |
29ad9631 | 10 | Release: 1 |
ff764374 JB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
fb3f3792 | 13 | Source0: https://download.gnome.org/sources/aravis/0.8/%{name}-%{version}.tar.xz |
98cd09b0 | 14 | # Source0-md5: 70e8c5eb3ec6430eeef4dff76c3a4e41 |
ff764374 | 15 | URL: https://wiki.gnome.org/Projects/Aravis |
da53ea92 | 16 | BuildRequires: appstream-glib |
41578c78 | 17 | BuildRequires: audit-libs-devel |
ff764374 | 18 | BuildRequires: gettext-tools |
da53ea92 | 19 | BuildRequires: glib2-devel >= 1:2.44 |
ff764374 | 20 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
da53ea92 | 21 | %if %{with gstreamer} || %{with gui} |
ff764374 JB |
22 | BuildRequires: gstreamer-devel >= 1.0 |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
24 | %endif | |
ff764374 JB |
25 | %{?with_gui:BuildRequires: gtk+3-devel >= 3.14.0} |
26 | BuildRequires: gtk-doc >= 1.14 | |
ff764374 | 27 | %{?with_gui:BuildRequires: libnotify-devel} |
41578c78 | 28 | BuildRequires: libusb-devel >= 1.0 |
ff764374 | 29 | BuildRequires: libxml2-devel >= 2.0 |
da53ea92 JB |
30 | BuildRequires: libxslt-progs |
31 | BuildRequires: meson >= 0.47.0 | |
32 | BuildRequires: ninja >= 1.5 | |
ff764374 | 33 | BuildRequires: pkgconfig >= 1:0.14 |
fb3f3792 | 34 | BuildRequires: rpmbuild(macros) >= 1.752 |
ff764374 JB |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
37 | BuildRequires: zlib-devel | |
da53ea92 | 38 | Requires: glib2 >= 1:2.44 |
ff764374 | 39 | Requires: gtk+3 >= 3.14.0 |
da53ea92 | 40 | Obsoletes: gstreamer0.10-aravis < 0.7 |
ff764374 JB |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | Aravis is a GLib/GObject based library for video acquisition using | |
45 | Genicam cameras. It currently only implements an Ethernet camera | |
46 | protocol used for industrial cameras. | |
47 | ||
48 | %description -l pl.UTF-8 | |
49 | Aravis to oparta na GLib/GObject biblioteka do pobierania obrazu przy | |
854054ed ER |
50 | użyciu kamer Genicam. Obecnie ma zaimplementowany tylko protokół kamer |
51 | ethernetowych używany przez kamery przemysłowe. | |
ff764374 JB |
52 | |
53 | %package viewer | |
54 | Summary: Simple viewer of video stream acquired using Aravis | |
55 | Summary(pl.UTF-8): Prosta przeglądarka strumienia obrazu pobranego przy użyciu biblioteki Aravis | |
56 | Group: X11/Applications/Graphics | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires(post,postun): gtk-update-icon-cache | |
59 | Requires: hicolor-icon-theme | |
60 | ||
61 | %description viewer | |
62 | Aravis Viewer is a simple viewer used to display video streams from | |
63 | GENICAM-based Ethernet industrial cameras. | |
64 | ||
65 | %description viewer -l pl.UTF-8 | |
66 | Aravis Viewer to prosta przeglądarka do wyświetlania strumieni obrazu | |
67 | pobranych z ethernetowych kamer przemysłowych opartych na GENICAM. | |
68 | ||
69 | %package devel | |
70 | Summary: Header files for Aravis library | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Aravis | |
72 | Group: Development/Libraries | |
73 | Requires: %{name} = %{version}-%{release} | |
da53ea92 | 74 | Requires: glib2-devel >= 1:2.44 |
ff764374 JB |
75 | Requires: libxml2-devel >= 2.0 |
76 | Requires: zlib-devel | |
77 | ||
78 | %description devel | |
79 | Header files for Aravis library. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe biblioteki Aravis. | |
83 | ||
84 | %package static | |
85 | Summary: Static Aravis library | |
86 | Summary(pl.UTF-8): Statyczna biblioteka Aravis | |
87 | Group: Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description static | |
91 | Static Aravis library. | |
92 | ||
93 | %description static -l pl.UTF-8 | |
94 | Statyczna biblioteka Aravis. | |
95 | ||
96 | %package apidocs | |
97 | Summary: API documentation for Aravis library | |
98 | Summary(pl.UTF-8): Dokumentacja API biblioteki Aravis | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
fb3f3792 | 101 | %{?noarchpackage} |
ff764374 JB |
102 | |
103 | %description apidocs | |
104 | API documentation for Aravis library. | |
105 | ||
106 | %description apidocs -l pl.UTF-8 | |
107 | Dokumentacja API biblioteki Aravis. | |
108 | ||
ff764374 | 109 | %package -n gstreamer-aravis |
da53ea92 JB |
110 | Summary: GStreamer plugin for Aravis digital video camera acquisition library |
111 | Summary(pl.UTF-8): Wtyczka GStreamera do biblioteki pobierania obrazu z kamer cyfrowych Aravis | |
ff764374 JB |
112 | Group: Libraries |
113 | Requires: %{name} = %{version}-%{release} | |
114 | Requires: gstreamer >= 1.0 | |
115 | Requires: gstreamer-plugins-base >= 1.0 | |
116 | ||
117 | %description -n gstreamer-aravis | |
da53ea92 | 118 | GStreamer plugin for Aravis digital video camera acquisition |
ff764374 JB |
119 | library. |
120 | ||
121 | %description -n gstreamer-aravis -l pl.UTF-8 | |
da53ea92 | 122 | Wtyczka GStreamera do biblioteki pobierania obrazu z kamer cyfrowych |
ff764374 JB |
123 | Aravis. |
124 | ||
125 | %prep | |
126 | %setup -q | |
127 | ||
128 | %build | |
da53ea92 JB |
129 | %meson build \ |
130 | %{!?with_gstreamer:-Dgst-plugin=disabled} \ | |
131 | %{!?with_gui:-Dviewer=disabled} | |
ff764374 | 132 | |
da53ea92 | 133 | %ninja_build -C build |
ff764374 JB |
134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
da53ea92 | 138 | %ninja_install -C build |
ff764374 | 139 | |
da53ea92 | 140 | %find_lang %{name}-0.8 |
ff764374 JB |
141 | |
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
07a9d7ac JB |
145 | %post -p /sbin/ldconfig |
146 | %postun -p /sbin/ldconfig | |
147 | ||
ff764374 JB |
148 | %post viewer |
149 | %update_icon_cache hicolor | |
150 | ||
151 | %postun viewer | |
152 | %update_icon_cache hicolor | |
153 | ||
da53ea92 | 154 | %files -f %{name}-0.8.lang |
ff764374 | 155 | %defattr(644,root,root,755) |
da53ea92 JB |
156 | %doc AUTHORS NEWS.md README.md |
157 | %attr(755,root,root) %{_bindir}/arv-fake-gv-camera-0.8 | |
158 | %attr(755,root,root) %{_bindir}/arv-tool-0.8 | |
159 | %attr(755,root,root) %{_libdir}/libaravis-0.8.so.*.*.* | |
160 | %attr(755,root,root) %ghost %{_libdir}/libaravis-0.8.so.0 | |
161 | %{_libdir}/girepository-1.0/Aravis-0.8.typelib | |
162 | %{_mandir}/man1/arv-tool-0.8.1* | |
ff764374 JB |
163 | |
164 | %if %{with gui} | |
165 | %files viewer | |
166 | %defattr(644,root,root,755) | |
da53ea92 | 167 | %attr(755,root,root) %{_bindir}/arv-viewer-0.8 |
da53ea92 JB |
168 | %{_datadir}/metainfo/arv-viewer-0.8.appdata.xml |
169 | %{_desktopdir}/arv-viewer-0.8.desktop | |
170 | %{_iconsdir}/hicolor/*x*/apps/aravis-0.8.png | |
171 | %{_mandir}/man1/arv-viewer-0.8.1* | |
ff764374 JB |
172 | %endif |
173 | ||
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
da53ea92 JB |
176 | %attr(755,root,root) %{_libdir}/libaravis-0.8.so |
177 | %{_includedir}/aravis-0.8 | |
178 | %{_datadir}/gir-1.0/Aravis-0.8.gir | |
179 | %{_pkgconfigdir}/aravis-0.8.pc | |
ff764374 JB |
180 | |
181 | %files static | |
182 | %defattr(644,root,root,755) | |
da53ea92 | 183 | %{_libdir}/libaravis-0.8.a |
ff764374 JB |
184 | |
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
da53ea92 | 187 | %{_gtkdocdir}/aravis-0.8 |
ff764374 | 188 | |
da53ea92 | 189 | %if %{with gstreamer} |
ff764374 JB |
190 | %files -n gstreamer-aravis |
191 | %defattr(644,root,root,755) | |
da53ea92 | 192 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstaravis.0.8.so |
ff764374 | 193 | %endif |