]> git.pld-linux.org Git - SPECS.git/blob - avcap.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / avcap.spec
1 Summary:        Cross-platform, API-independent C++ video capture library 
2 Summary(pl.UTF-8):      Wieloplatformowa, niezależna od API biblioteka C++ do przechwytywania obrazu
3 Name:           avcap
4 Version:        0.1.9
5 Release:        1
6 License:        GPL v3+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/libavcap/%{name}-%{version}.tar.gz
9 # Source0-md5:  7e7ba375c68ab37b984b91ae23d0f164
10 Patch0:         %{name}-v4l2.patch
11 Patch1:         %{name}-c++.patch
12 Patch2:         %{name}-install.patch
13 URL:            http://libavcap.sourceforge.net/
14 BuildRequires:  autoconf >= 2.56
15 BuildRequires:  automake
16 BuildRequires:  libavc1394-devel
17 BuildRequires:  libdv-devel
18 BuildRequires:  libiec61883-devel
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool >= 2:1.5
21 BuildRequires:  pkgconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The avcap-library (avcap: a video capture library) is a cross-API,
26 cross-platform simple and easy to use C++ video capture library. Its
27 aim is to provide a unified API for Linux, Windows and Mac OS X to
28 capture video from appropriate hardware. It hides the system specific
29 quirks and issues of different API's used on different systems to
30 access video capture hardware and hopefully helps to write portable
31 capture-applications.
32
33 %description -l pl.UTF-8
34 Biblioteka avcap (biblioteka do przechwytywania obrazu) to
35 wieloplatformowa, niezależna od lokalnego API, łatwa w użyciu
36 biblioteka C++ do przechwytywania obrazu. Jej celem jest zapewnienie
37 jednolitego API dla Linuksa, Windows i Mac OS X, służącego do
38 przechwytywania obrazu z odpowiedniego sprzętu. Ukrywa zależne od
39 systemu szczegóły związane z różnymi API służącymi do dostępu do
40 urządzeń przechwytywania obrazu i ułatwia pisanie przenośnych
41 aplikacji.
42
43 %package devel
44 Summary:        Header files for avcap library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki avcap
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       libavc1394-devel
49 Requires:       libdv-devel
50 Requires:       libiec61883-devel
51 Requires:       libstdc++-devel
52
53 %description devel
54 Header files for avcap library.
55
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki avcap.
58
59 %package static
60 Summary:        Static avcap library
61 Summary(pl.UTF-8):      Statyczna biblioteka avcap
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 Static avcap library.
67
68 %description static -l pl.UTF-8
69 Statyczna biblioteka avcap.
70
71 %package apidocs
72 Summary:        avcap API documentation
73 Summary(pl.UTF-8):      Dokumentacja API biblioteki avcap
74 Group:          Documentation
75
76 %description apidocs
77 avcap API documentation.
78
79 %description apidocs -l pl.UTF-8
80 Dokumentacja API biblioteki avcap.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85 %patch1 -p1
86 %patch2 -p1
87
88 # keep AX_PREFIX_CONFIG_H, kill libtool macros
89 head -n 87 acinclude.m4 > acinclude.m4.tmp
90 %{__mv} acinclude.m4.tmp acinclude.m4
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure
99
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 # .la kept, *.private dependencies are missing in .pc
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog README
119 %attr(755,root,root) %{_bindir}/captest
120 %attr(755,root,root) %{_libdir}/libavcap.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libavcap.so.6
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libavcap.so
126 %{_libdir}/libavcap.la
127 %{_includedir}/avcap
128 %{_pkgconfigdir}/avcap.pc
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libavcap.a
133
134 %files apidocs
135 %defattr(644,root,root,755)
136 %doc doc/html/*
This page took 0.389193 seconds and 3 git commands to generate.