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