1 |
%define name zvbi |
2 |
%define version 0.2.33 |
3 |
%define release %mkrel 6 |
4 |
%define libname %mklibname %name 0 |
5 |
%define develname %mklibname %name -d |
6 |
|
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release} |
10 |
Summary: Raw VBI, Teletext and Closed Caption decoding library |
11 |
License: GPL |
12 |
Group: Video |
13 |
Url: http://zapping.sourceforge.net/ |
14 |
Source0: http://prdownloads.sourceforge.net/zapping/%name-%version.tar.bz2 |
15 |
Patch0: zvbi-0.2.31-linkage_fix.diff |
16 |
Patch2: zvbi-0.2.7-fix-build.patch |
17 |
Patch3: zvbi-0.2.33-include_stat_h.patch |
18 |
Patch4: zvbi-0.2.33-libpng15.patch |
19 |
BuildRequires: libx11-devel |
20 |
BuildRequires: gtk-doc |
21 |
BuildRequires: libpng-devel |
22 |
BuildRequires: doxygen |
23 |
BuildRequires: gettext-devel |
24 |
Requires: gettext >= 0.10.36 |
25 |
|
26 |
%description |
27 |
Non versionated files of zvbi, mainly libzvbi0 translations |
28 |
|
29 |
%package -n %{libname} |
30 |
Summary: Raw VBI, Teletext and Closed Caption decoding library |
31 |
Group: Video |
32 |
%description -n %{libname} |
33 |
VBI stands for Vertical Blanking Interval, a gap between the image |
34 |
data transmitted in an analog video signal. This gap is used to |
35 |
transmit AM modulated data for various data services like Teletext and |
36 |
Closed Caption. |
37 |
|
38 |
The zvbi library provides routines to: |
39 |
* read from raw VBI sampling devices (both V4L and V4L2 API are supported), |
40 |
* a versatile raw vbi bit slicer, |
41 |
* decoders for various data services and basic search, |
42 |
* demodulate raw to sliced VBI data, |
43 |
* interpret the data of several popular services. |
44 |
* render and export functions for text pages. |
45 |
|
46 |
The library is the vbi decoding backbone of the Zapping Gnome TV viewer |
47 |
and Zapzilla Teletext browser. |
48 |
|
49 |
|
50 |
%package -n %{develname} |
51 |
Summary: Header files for developing apps which will use libzvbi |
52 |
Group: Development/C |
53 |
Requires: %{libname} = %{version} |
54 |
Provides: lib%{name}-devel = %{version}-%{release} |
55 |
Provides: %{name}-devel |
56 |
Obsoletes: %{name}-devel |
57 |
Obsoletes: %{mklibname zvbi 0 -d} |
58 |
|
59 |
%description -n %{develname} |
60 |
Header files and static library of bzip2 functions, for developing apps which |
61 |
will use the zvbi library (aka libzvbi) |
62 |
|
63 |
%prep |
64 |
%setup -q |
65 |
%patch0 -p1 -b .linkage_fix |
66 |
%patch2 -p0 -b .build |
67 |
%patch3 -p1 -b .stat |
68 |
%patch4 -p0 -b .png |
69 |
|
70 |
%build |
71 |
autoreconf -fi |
72 |
|
73 |
%configure2_5x |
74 |
# gtkdoc fix: |
75 |
cp /usr/share/gtk-doc/data/gtkdoc-common.pl doc/ |
76 |
%make |
77 |
|
78 |
%install |
79 |
rm -rf %{buildroot} |
80 |
%{makeinstall_std} |
81 |
%find_lang %name |
82 |
|
83 |
# don't ship .a, .la |
84 |
find %{buildroot} -name *.a | xargs rm -f |
85 |
find %{buildroot} -name *.la | xargs rm -f |
86 |
|
87 |
%clean |
88 |
rm -rf %{buildroot} |
89 |
|
90 |
%files -f %name.lang |
91 |
%defattr(644,root,root,755) |
92 |
%doc COPYING |
93 |
%attr(755,root,root) %_bindir/* |
94 |
%attr(755,root,root) %_sbindir/* |
95 |
%_mandir/man1/* |
96 |
|
97 |
%files -n %libname |
98 |
%defattr (-, root, root) |
99 |
%doc AUTHORS COPYING NEWS README |
100 |
%_libdir/libzvbi*.so.* |
101 |
|
102 |
%files -n %{develname} |
103 |
%defattr(644,root,root,755) |
104 |
%doc BUGS ChangeLog COPYING TODO doc/html |
105 |
%_libdir/lib*.so |
106 |
%_libdir/pkgconfig/* |
107 |
%_includedir/libzvbi.h |