1 # $Id$ |
1 Name: libdc1394 |
2 |
2 Summary: 1394-based digital camera control library |
3 #define svn_snapshot .svn459 |
3 Vendor: Europalab Software |
4 #define real_version 2.0.0-rc8%{svn_snapshot} |
4 Packager: Michael Schloh von Bennewitz |
5 #%define real_version 2.1.0 |
5 Distribution: MeeGo Thirdparty |
6 %define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0} |
6 Version: 2.1.2 |
7 |
7 Release: 20101201 |
8 Summary: 1394-based digital camera control library |
8 License: LGPLv2+ |
9 Name: libdc1394 |
9 Group: System Environment/Libraries |
10 Version: 2.1.2 |
10 URL: http://sourceforge.net/projects/libdc1394/ |
11 Release: 3%{?svn_snapshot}%{?dist} |
11 Source: http://dl.sf.net/libdc1394/libdc1394-%{version}.tar.gz |
12 License: LGPLv2+ |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
13 Group: System Environment/Libraries |
13 BuildRequires: kernel-headers |
14 URL: http://sourceforge.net/projects/libdc1394/ |
14 BuildRequires: libraw1394-devel libusb1-devel |
15 Source: http://dl.sf.net/libdc1394/libdc1394-%{version}.tar.gz |
15 BuildRequires: libX11-devel libXv-devel |
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
16 BuildRequires: doxygen |
17 ExcludeArch: s390 s390x |
|
18 |
|
19 BuildRequires: kernel-headers |
|
20 BuildRequires: libraw1394-devel libusb1-devel |
|
21 BuildRequires: doxygen |
|
22 BuildRequires: libX11-devel libXv-devel |
|
23 %if %{svn_build} |
|
24 BuildRequires: libtool |
|
25 %endif |
|
26 |
17 |
27 %description |
18 %description |
28 Libdc1394 is a library that is intended to provide a high level programming |
19 Libdc1394 is a library that is intended to provide a high level programming |
29 interface for application developers who wish to control IEEE 1394 based |
20 interface for application developers who wish to control IEEE 1394 based |
30 cameras that conform to the 1394-based Digital Camera Specification. |
21 cameras that conform to the 1394-based Digital Camera Specification. |
31 |
22 |
32 %package devel |
23 %package devel |
33 Summary: Header files and libraries for %{name} |
24 Summary: Header files and libraries for %{name} |
34 Group: Development/Libraries |
25 Vendor: Europalab Software |
35 Requires: %{name} = %{version}-%{release}, libraw1394-devel |
26 Packager: Michael Schloh von Bennewitz |
36 Requires: pkgconfig |
27 Distribution: MeeGo Thirdparty |
|
28 Group: Development/Libraries |
|
29 Requires: %{name} = %{version}-%{release} |
|
30 Requires: pkgconfig, libraw1394-devel |
37 |
31 |
38 %description devel |
32 %description devel |
39 This package contains the header files and libraries |
33 This package contains the header files and libraries |
40 for %{name}. If you like to develop programs using %{name}, |
34 for %{name}. If you like to develop programs using %{name}, |
41 you will need to install %{name}-devel. |
35 you will need to install %{name}-devel. |
42 |
36 |
43 %package docs |
37 %package docs |
44 Summary: Development documentation for %{name} |
38 Summary: Development documentation for %{name} |
45 Group: Documentation |
39 Vendor: Europalab Software |
|
40 Packager: Michael Schloh von Bennewitz |
|
41 Distribution: MeeGo Thirdparty |
|
42 Group: Documentation |
46 |
43 |
47 %description docs |
44 %description docs |
48 This package contains the development documentation for %{name}. |
45 This package contains the development documentation for %{name}. |
49 |
46 |
50 %package tools |
47 %package tools |
51 Summary: Tools for use with %{name} |
48 Summary: Tools for use with %{name} |
52 Group: Applications/System |
49 Vendor: Europalab Software |
|
50 Packager: Michael Schloh von Bennewitz |
|
51 Distribution: MeeGo Thirdparty |
|
52 Group: Applications/System |
53 Requires: %{name} = %{version} |
53 Requires: %{name} = %{version} |
54 |
54 |
55 %description tools |
55 %description tools |
56 This package contains tools that are useful when working and |
56 This package contains tools that are useful when working and |
57 developing with %{name}. |
57 developing with %{name}. |
58 |
58 |
59 %prep |
59 %prep |
60 %setup -q -n libdc1394-%{version} |
60 %setup -q -n libdc1394-%{version} |
61 |
61 |
62 %build |
62 %build |
63 %if %{svn_build} |
63 %configure --enable-doxygen-html --enable-doxygen-dot |
64 cp /usr/share/libtool/ltmain.sh . |
|
65 aclocal |
|
66 autoheader |
|
67 autoconf |
|
68 automake --add-missing |
|
69 %endif |
|
70 %configure --disable-static --enable-doxygen-html --enable-doxygen-dot |
|
71 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
64 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
72 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
65 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
73 make %{?_smp_mflags} |
66 make %{?_smp_mflags} |
74 make doc |
67 make doc |
75 |
68 |
76 %install |
69 %install |
77 %{__rm} -rf %{buildroot} |
70 %{__rm} -rf %{buildroot} |
78 make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" |
71 make install DESTDIR=%{buildroot} |
79 mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version} |
72 mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version} |
80 %{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version} |
73 %{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version} |
81 for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do |
74 for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do |
82 %{__install} -p -m 0644 examples/$p %{buildroot}%{_bindir}/dc1394_$p |
75 %{__install} -p -m 0644 examples/$p %{buildroot}%{_bindir}/dc1394_$p |
83 done |
76 done |
84 %{__install} -p -m 0644 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview |
77 %{__install} -p -m 0644 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview |
85 for f in grab_color_image grab_gray_image grab_partial_image; do |
78 for f in grab_color_image grab_gray_image grab_partial_image; do |
86 mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1 |
79 mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1 |
87 done |
80 done |
88 |
81 |
89 %post -p /sbin/ldconfig |
82 %post -p /sbin/ldconfig |
90 |
83 |
91 %postun -p /sbin/ldconfig |
84 %postun -p /sbin/ldconfig |