-
Notifications
You must be signed in to change notification settings - Fork 19
/
aravis.spec
133 lines (105 loc) · 4.1 KB
/
aravis.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Name: aravis
Version: 0.1.15
Release: 1%{?dist}
Summary: Aravis digital video camera acquisition library
Group: System/Libraries
License: GPLv2+
URL: http://live.gnome.org/Aravis
Source0: aravis-%{version}.tar.bz2
BuildRequires: pkgconfig(glib-2.0) >= 2.26
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(gstreamer-base-0.10) >= 0.10.31
BuildRequires: pkgconfig(gstreamer-app-0.10)
BuildRequires: pkgconfig(gstreamer-interfaces-0.10)
BuildRequires: desktop-file-utils
Source10: aravis.png
%global fullname %{name}-0.2
Requires: pkgconfig(glib-2.0) >= 2.26
Requires: pkgconfig(gobject-2.0)
Requires: pkgconfig(gio-2.0)
Requires: pkgconfig(libxml-2.0)
Requires: pkgconfig(gthread-2.0)
%description
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently only implements an ethernet camera protocol used for industrial cameras.
%package devel
Summary: Aravis digital video camera acquisition library -- Development files
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently only implements an ethernet camera protocol used for industrial cameras.
This package contains the development files for Aravis.
%package viewer
Summary: Aravis digital video camera acquisition library -- Viewer
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: pkgconfig(libnotify)
Requires: pkgconfig(gtk+-3.0)
Requires: pkgconfig(gstreamer-base-0.10) >= 0.10.31
Requires: pkgconfig(gstreamer-app-0.10)
Requires: pkgconfig(gstreamer-interfaces-0.10)
%description viewer
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently only implements an ethernet camera protocol used for industrial cameras.
This package contains the simple video viewer application.
%package gstreamer-plugin
Summary: Aravis digital video camera acquisition library -- GStreamer plugin
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: pkgconfig(gstreamer-base-0.10) >= 0.10.31
Requires: pkgconfig(gstreamer-app-0.10)
Requires: pkgconfig(gstreamer-interfaces-0.10)
%description gstreamer-plugin
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently only implements an ethernet camera protocol used for industrial cameras.
This package contains the GStreamer plugin.
%prep
%setup -q
%build
%configure --enable-gtk3 --enable-viewer --enable-notify --enable-gst-plugin
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%find_lang %{fullname}
desktop-file-install --vendor="" \
--dir=%{buildroot}%{_datadir}/applications/ \
%{buildroot}%{_datadir}/applications/arv-viewer.desktop
%files -f %{fullname}.lang
%{_bindir}/arv-tool-0.2
%{_bindir}/arv-fake-gv-camera-0.2
%{_datadir}/%{fullname}/*.xml
%{_libdir}/lib%{fullname}*
%{_libdir}/girepository-1.0/*
/usr/doc/%{fullname}
%files devel
%{_datadir}/gtk-doc/html/%{fullname}
%{_includedir}/%{fullname}
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/*
%files viewer
%{_bindir}/arv-viewer
%{_datadir}/%{fullname}/*.ui
%{_datadir}/icons/hicolor/22x22/apps/*
%{_datadir}/icons/hicolor/32x32/apps/*
%{_datadir}/icons/hicolor/48x48/apps/*
%{_datadir}/icons/hicolor/256x256/apps/*
%{_datadir}/applications/arv-viewer.desktop
%post viewer
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi
update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database &> /dev/null || :
%postun viewer
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi
update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database &> /dev/null || :
%files gstreamer-plugin
%{_libdir}/gstreamer-0.10/*
%changelog