]>
Commit | Line | Data |
---|---|---|
0bcad4f0 | 1 | # |
23336971 | 2 | # Conditional build: |
660460aa | 3 | %bcond_without static_libs # don't build static library |
a6a5d99a | 4 | |
2d404a1e | 5 | Summary: Library for 1394 Digital Camera Specification |
9697379a | 6 | Summary(pl.UTF-8): Biblioteka dla specyfikacji Kamera Cyfrowa 1394 |
2d404a1e | 7 | Name: libdc1394 |
a6a5d99a ER |
8 | Version: 2.2.1 |
9 | Release: 1 | |
642610b7 | 10 | License: LGPL v2.1+ |
2d404a1e | 11 | Group: Libraries |
03de0ce7 | 12 | Source0: http://downloads.sourceforge.net/libdc1394/%{name}-%{version}.tar.gz |
a6a5d99a | 13 | # Source0-md5: 5c4b78bb8265d6dc971433ec1da381ab |
b6c46fda | 14 | Patch0: %{name}-link.patch |
1fdda699 | 15 | Patch1: %{name}-ac.patch |
2dddc35f JB |
16 | # libdc1394-2.1.2 vs libdc1394_avt-2.1.2 diff (http://www.alliedvisiontec.com/fileadmin/content/PDF/Software/AVT_software/zip_files/AVTFire4Linux3v0.src.tar/libdc1394_avt-2.1.2.tar.gz) |
17 | Patch2: %{name}-avt.patch | |
a6a5d99a | 18 | URL: http://damien.douxchamps.net/ieee1394/libdc1394/ |
b6c46fda JB |
19 | BuildRequires: autoconf >= 2.60 |
20 | BuildRequires: automake >= 1:1.9.6 | |
21 | BuildRequires: libraw1394-devel >= 1.2.0 | |
46925537 | 22 | BuildRequires: libtool |
03de0ce7 | 23 | BuildRequires: libusb-devel >= 1.0 |
ea5cf704 | 24 | BuildRequires: pkgconfig |
2c6204f5 JB |
25 | BuildRequires: xorg-lib-libX11-devel |
26 | BuildRequires: xorg-lib-libXext-devel | |
27 | BuildRequires: xorg-lib-libXv-devel | |
2dddc35f | 28 | Provides: libdc1394(avt) = %{version}-%{release} |
b6c46fda | 29 | Requires: libraw1394 >= 1.2.0 |
03de0ce7 | 30 | Requires: libusb >= 1.0 |
2bf540aa | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d404a1e | 32 | |
33 | %description | |
34 | libdc1394 is a library that is intended to provide a high level | |
35 | programming interface for application developers who wish to control | |
36 | IEEE 1394 based cameras that conform to the 1394-based Digital Camera | |
37 | Specification (found at http://www.1394ta.org/). | |
38 | ||
cfae744b JR |
39 | %description -l pl.UTF-8 |
40 | libdc1394 jest biblioteką, której założeniem jest dostarczenie | |
41 | interfejsu wysokiego poziomu dla twórców oprogramowania pragnących | |
42 | sterować kamerami skonstruowanymi w oparciu o IEEE 1394 zgodnie ze | |
43 | specyfikacją Kamera Cyfrowa 1394 (dostępną pod | |
4b0c83d4 | 44 | http://www.1394ta.org/). |
2d404a1e | 45 | |
46 | %package devel | |
47 | Summary: libdc1394 header files | |
9697379a | 48 | Summary(pl.UTF-8): Pliki nagłówkowe libdc1394 |
2d404a1e | 49 | Group: Development/Libraries |
2dddc35f | 50 | Provides: libdc1394-devel(avt) = %{version}-%{release} |
74d0b2f0 | 51 | Requires: %{name} = %{version}-%{release} |
b6c46fda | 52 | Requires: libraw1394-devel >= 1.2.0 |
03de0ce7 | 53 | Requires: libusb-devel >= 1.0 |
2d404a1e | 54 | |
55 | %description devel | |
56 | libdc1394 header files. | |
57 | ||
cfae744b JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe libdc1394. | |
2d404a1e | 60 | |
61 | %package static | |
c9f6f3d6 | 62 | Summary: Static libdc1394 library |
9697379a | 63 | Summary(pl.UTF-8): Statyczna biblioteka libdc1394 |
c9f6f3d6 | 64 | Group: Development/Libraries |
2dddc35f | 65 | Provides: libdc1394-static(avt) = %{version}-%{release} |
74d0b2f0 | 66 | Requires: %{name}-devel = %{version}-%{release} |
2d404a1e | 67 | |
68 | %description static | |
69 | Static libdc1394 library. | |
70 | ||
cfae744b | 71 | %description static -l pl.UTF-8 |
2d404a1e | 72 | Statyczna biblioteka libdc1394. |
73 | ||
74 | %prep | |
b6c46fda JB |
75 | %setup -q |
76 | %patch0 -p1 | |
1fdda699 | 77 | %patch1 -p1 |
2dddc35f | 78 | %patch2 -p1 |
2d404a1e | 79 | |
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
660460aa | 86 | %configure \ |
87 | %{!?with_static_libs:--disable-static} | |
2d404a1e | 88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
86d0d415 JB |
96 | # man pages for noinst examples |
97 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dc1394_multiview,grab_{color,gray,partial}_image}.1 | |
2dddc35f | 98 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avt_singleview.1 |
86d0d415 | 99 | |
2d404a1e | 100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc AUTHORS ChangeLog NEWS README | |
ea5cf704 | 109 | %attr(755,root,root) %{_bindir}/dc1394_reset_bus |
a6a5d99a | 110 | #%attr(755,root,root) %{_bindir}/dc1394_vloopback |
cfc1c549 | 111 | %attr(755,root,root) %{_libdir}/libdc1394.so.*.*.* |
b6c46fda | 112 | %attr(755,root,root) %ghost %{_libdir}/libdc1394.so.22 |
1fdda699 | 113 | %{_mandir}/man1/dc1394_reset_bus.1* |
a6a5d99a | 114 | #%{_mandir}/man1/dc1394_vloopback.1* |
2d404a1e | 115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
ea5cf704 | 118 | %attr(755,root,root) %{_libdir}/libdc1394.so |
119 | %{_libdir}/libdc1394.la | |
120 | %{_includedir}/dc1394 | |
cfc1c549 | 121 | %{_pkgconfigdir}/libdc1394-2.pc |
2d404a1e | 122 | |
660460aa | 123 | %if %{with static_libs} |
2d404a1e | 124 | %files static |
125 | %defattr(644,root,root,755) | |
ea5cf704 | 126 | %{_libdir}/libdc1394.a |
660460aa | 127 | %endif |