]>
Commit | Line | Data |
---|---|---|
1387ff98 JB |
1 | # |
2 | # Conditional build | |
3 | %bcond_with v4l1 # Video4Linux 1 support | |
4 | # | |
62ae95b8 JB |
5 | Summary: Library to access differend kinds of video capturing devices |
6 | Summary(pl.UTF-8): Biblioteka dostępu do różnych urządzeń przechwytujących obraz | |
7 | Name: libunicap | |
8 | Version: 0.9.12 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: Libraries | |
12 | #Source0Download: http://unicap-imaging.org/download.htm | |
13 | Source0: http://unicap-imaging.org/downloads/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 353657b4da519251d4cc6dee5a232391 | |
1387ff98 JB |
15 | Patch0: %{name}-v4l2.patch |
16 | Patch1: %{name}-link.patch | |
62ae95b8 | 17 | URL: http://unicap-imaging.org/ |
1387ff98 JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake | |
20 | BuildRequires: gettext-devel | |
62ae95b8 | 21 | BuildRequires: gtk-doc >= 1.4 |
1387ff98 JB |
22 | BuildRequires: intltool >= 0.35.0 |
23 | %{?with_v4l1:BuildRequires: linux-libc-headers < 7:2.6.38} | |
62ae95b8 | 24 | BuildRequires: libraw1394-devel >= 1.1.0 |
1387ff98 | 25 | BuildRequires: libtool |
62ae95b8 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | unicap is a library to access different kinds of (video) capture | |
30 | devices. | |
31 | ||
32 | Currently unicap provides support for IIDC cameras, Video4Linux, | |
33 | Video4Linux2 and video-to-firewire converters. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | unicap to biblioteka dostępu do różnych rodzajów urządzeń | |
37 | przechwytujących obraz. | |
38 | ||
39 | Obecnie obsługuje kamery IIDC, Video4Linux, Video4Linux2 oraz | |
40 | z interfejsem FireWire. | |
41 | ||
42 | %package devel | |
43 | Summary: Header files for unicap library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki unicap | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
49 | Header files for unicap library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki unicap. | |
53 | ||
54 | %package static | |
55 | Summary: Static unicap library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka unicap | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static unicap library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka unicap. | |
65 | ||
66 | %package apidocs | |
67 | Summary: unicap API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki unicap | |
69 | Group: Documentation | |
70 | Requires: gtk-doc-common | |
71 | ||
72 | %description apidocs | |
73 | API documentation for unicap library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki unicap. | |
77 | ||
78 | %package -n udev-libunicap | |
79 | Summary: Udev rules for unicap-supported devices | |
80 | Summary(pl.UTF-8): Reguły udeva dla urządzeń obsługiwanych przez unicap | |
81 | Group: Applications/System | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | Requires: udev-core | |
84 | ||
85 | %description -n udev-libunicap | |
86 | Udev rules for unicap-supported devices. | |
87 | ||
88 | %description -n udev-libunicap -l pl.UTF-8 | |
89 | Reguły udeva dla urządzeń obsługiwanych przez unicap. | |
90 | ||
91 | %prep | |
92 | %setup -q | |
1387ff98 JB |
93 | %patch0 -p1 |
94 | %patch1 -p1 | |
62ae95b8 JB |
95 | |
96 | %build | |
1387ff98 JB |
97 | %{__libtoolize} |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
62ae95b8 | 102 | %configure \ |
1387ff98 JB |
103 | --with-html-dir=%{_gtkdocdir} \ |
104 | %{!?with_v4l1:--disable-v4l} | |
62ae95b8 JB |
105 | %{__make} |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/unicap2/cpi/lib*.{la,a} | |
114 | ||
115 | %find_lang unicap | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files -f unicap.lang | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS ChangeLog README | |
126 | %attr(755,root,root) %{_libdir}/libunicap.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libunicap.so.2 | |
128 | %dir %{_libdir}/unicap2 | |
129 | %dir %{_libdir}/unicap2/cpi | |
130 | %attr(755,root,root) %{_libdir}/unicap2/cpi/libdcam.so | |
131 | %attr(755,root,root) %{_libdir}/unicap2/cpi/libeuvccam_cpi.so | |
1387ff98 | 132 | %if %{with v4l1} |
62ae95b8 | 133 | %attr(755,root,root) %{_libdir}/unicap2/cpi/libv4l.so |
1387ff98 | 134 | %endif |
62ae95b8 JB |
135 | %attr(755,root,root) %{_libdir}/unicap2/cpi/libv4l2cpi.so |
136 | %attr(755,root,root) %{_libdir}/unicap2/cpi/libvid21394.so | |
137 | ||
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_libdir}/libunicap.so | |
141 | %{_libdir}/libunicap.la | |
142 | %{_includedir}/unicap | |
143 | %{_pkgconfigdir}/libunicap.pc | |
144 | ||
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/libunicap.a | |
148 | ||
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
151 | %{_gtkdocdir}/libunicap | |
152 | ||
153 | %files -n udev-libunicap | |
154 | %defattr(644,root,root,755) | |
155 | /etc/udev/rules.d/50-euvccam.rules |