]>
Commit | Line | Data |
---|---|---|
60435cbd JB |
1 | Summary: Digital camera library for Linux |
2 | Summary(pl.UTF-8): Biblioteka obsługi kamer cyfrowych dla Linuksa | |
3 | Name: camwire | |
8fa2d6d3 | 4 | Version: 1.9.3 |
60435cbd JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | # camwire1 was for libdc1394 < 2.0, camwire2 for libdc1394 2.0+ | |
9 | Source0: http://kauri.auck.irl.cri.nz/~johanns/camwire/download/camwire2/camwire2-%{version}-Source.tar.gz | |
8fa2d6d3 JB |
10 | # Source0-md5: 1a49e2d9a751f3567e4b05a756be3b54 |
11 | Patch0: %{name}-link.patch | |
12 | Patch1: %{name}-etc.patch | |
aa65fbfd | 13 | Patch2: %{name}-lib.patch |
60435cbd JB |
14 | URL: http://kauri.auck.irl.cri.nz/~johanns/camwire/ |
15 | BuildRequires: SDL-devel | |
16 | BuildRequires: cmake >= 2.6 | |
17 | BuildRequires: netpbm-devel | |
18 | BuildRequires: libdc1394-devel >= 2.1.0 | |
19 | BuildRequires: xorg-lib-libX11-devel | |
20 | BuildRequires: xorg-lib-libXext-devel | |
21 | BuildRequires: xorg-lib-libXv-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Camwire is a digital camera library for Linux. It provides a set of C | |
26 | functions to control IEEE1394 digital cameras from a computer. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Camwire to biblioteka obsługi kamer cyfrowych dla Linuksa. Udostępnia | |
30 | zbiór funkcji C do sterowania kamerami cyfrowymi IEEE1394 z poziomu | |
31 | komputera. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for Camwire library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Camwire | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: libdc1394-devel >= 2.1.0 | |
39 | ||
40 | %description devel | |
41 | Header files for Camwire library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki Camwire. | |
45 | ||
46 | %package static | |
47 | Summary: Static Camwire library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka Camwire | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static Camwire library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka Camwire. | |
57 | ||
58 | %package cammonitor | |
59 | Summary: Camera monitor | |
60 | Summary(pl.UTF-8): Monitor kamer | |
61 | Group: X11/Applications/Multimedia | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description cammonitor | |
65 | Camera monitor provides basic access to digital camera functions via a | |
66 | simple terminal and display interface, using the Camwire API. | |
67 | ||
68 | %description cammonitor -l pl.UTF-8 | |
69 | Monitor kamery zapewnia podstawowy dostęp do funkcji kamer cyfrowych | |
70 | poprzez prosty interfejs terminala i wyświetlacza. Wykorzystuje API | |
71 | Camwire. | |
72 | ||
73 | %prep | |
74 | %setup -q -n camwire2-%{version}-Source | |
75 | %patch0 -p1 | |
76 | %patch1 -p1 | |
aa65fbfd | 77 | %patch2 -p1 |
60435cbd JB |
78 | |
79 | %build | |
8fa2d6d3 JB |
80 | # disable unused-result warning, compilation failure with -Werror |
81 | CFLAGS="%{rpmcflags} -Wno-unused-result" | |
60435cbd JB |
82 | %cmake |
83 | %{__make} -j1 | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc CHANGELOG CONFIGURATION README index.html | |
100 | %attr(755,root,root) %{_bindir}/camlatency | |
101 | %attr(755,root,root) %{_bindir}/measureconf_1394 | |
102 | %attr(755,root,root) %{_bindir}/resetbus_1394 | |
103 | %dir %{_sysconfdir}/camwire | |
104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/camwire/*.conf | |
105 | %attr(755,root,root) %{_libdir}/libcamwire.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libcamwire.so.2 | |
107 | %{_datadir}/camwire | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libcamwire.so | |
112 | %{_includedir}/camwire | |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libcamwire.a | |
117 | ||
118 | %files cammonitor | |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) %{_bindir}/cammonitor |