]> git.pld-linux.org Git - packages/libdc1394.git/blob - libdc1394.spec
up to 2.2.1
[packages/libdc1394.git] / libdc1394.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4
5 Summary:        Library for 1394 Digital Camera Specification
6 Summary(pl.UTF-8):      Biblioteka dla specyfikacji Kamera Cyfrowa 1394
7 Name:           libdc1394
8 Version:        2.2.1
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libdc1394/%{name}-%{version}.tar.gz
13 # Source0-md5:  5c4b78bb8265d6dc971433ec1da381ab
14 Patch0:         %{name}-link.patch
15 Patch1:         %{name}-ac.patch
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
18 URL:            http://damien.douxchamps.net/ieee1394/libdc1394/
19 BuildRequires:  autoconf >= 2.60
20 BuildRequires:  automake >= 1:1.9.6
21 BuildRequires:  libraw1394-devel >= 1.2.0
22 BuildRequires:  libtool
23 BuildRequires:  libusb-devel >= 1.0
24 BuildRequires:  pkgconfig
25 BuildRequires:  xorg-lib-libX11-devel
26 BuildRequires:  xorg-lib-libXext-devel
27 BuildRequires:  xorg-lib-libXv-devel
28 Provides:       libdc1394(avt) = %{version}-%{release}
29 Requires:       libraw1394 >= 1.2.0
30 Requires:       libusb >= 1.0
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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
44 http://www.1394ta.org/).
45
46 %package devel
47 Summary:        libdc1394 header files
48 Summary(pl.UTF-8):      Pliki nagłówkowe libdc1394
49 Group:          Development/Libraries
50 Provides:       libdc1394-devel(avt) = %{version}-%{release}
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       libraw1394-devel >= 1.2.0
53 Requires:       libusb-devel >= 1.0
54
55 %description devel
56 libdc1394 header files.
57
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe libdc1394.
60
61 %package static
62 Summary:        Static libdc1394 library
63 Summary(pl.UTF-8):      Statyczna biblioteka libdc1394
64 Group:          Development/Libraries
65 Provides:       libdc1394-static(avt) = %{version}-%{release}
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static libdc1394 library.
70
71 %description static -l pl.UTF-8
72 Statyczna biblioteka libdc1394.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 %configure \
87         %{!?with_static_libs:--disable-static}
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 # man pages for noinst examples
97 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dc1394_multiview,grab_{color,gray,partial}_image}.1
98 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avt_singleview.1
99
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
109 %attr(755,root,root) %{_bindir}/dc1394_reset_bus
110 #%attr(755,root,root) %{_bindir}/dc1394_vloopback
111 %attr(755,root,root) %{_libdir}/libdc1394.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libdc1394.so.22
113 %{_mandir}/man1/dc1394_reset_bus.1*
114 #%{_mandir}/man1/dc1394_vloopback.1*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libdc1394.so
119 %{_libdir}/libdc1394.la
120 %{_includedir}/dc1394
121 %{_pkgconfigdir}/libdc1394-2.pc
122
123 %if %{with static_libs}
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libdc1394.a
127 %endif
This page took 0.083057 seconds and 3 git commands to generate.