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