You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
4.2 KiB
158 lines
4.2 KiB
19 years ago
|
Name: zvbi
|
||
|
Version: 0.2.22
|
||
|
Release: 2%{?dist}
|
||
|
Summary: Raw VBI, Teletext and Closed Caption decoding library
|
||
|
|
||
|
Group: System Environment/Libraries
|
||
|
License: GPL
|
||
|
URL: http://zapping.sourceforge.net/ZVBI/index.html
|
||
|
Source0: http://dl.sf.net/zapping/%{name}-%{version}.tar.bz2
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
BuildRequires: doxygen
|
||
|
BuildRequires: gettext
|
||
|
BuildRequires: libpng-devel
|
||
|
BuildRequires: libICE-devel
|
||
|
BuildRequires: xorg-x11-font-utils
|
||
|
BuildRequires: fontconfig
|
||
|
Requires(post): /sbin/chkconfig
|
||
|
Requires(preun): /sbin/chkconfig
|
||
|
Requires(preun): /sbin/service
|
||
|
Requires(postun): /sbin/service
|
||
|
|
||
|
%description
|
||
|
ZVBI provides functions to capture and decode VBI data. The vertical blanking
|
||
|
interval (VBI) is an interval in a television signal that temporarily suspends
|
||
|
transmission of the signal for the electron gun to move back up to the first
|
||
|
line of the television screen to trace the next screen field. The vertical
|
||
|
blanking interval can be used to carry data, since anything sent during the VBI
|
||
|
would naturally not be displayed; various test signals, closed captioning, and
|
||
|
other digital data can be sent during this time period.
|
||
|
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for zvbi
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
Requires: pkgconfig
|
||
|
|
||
|
%description devel
|
||
|
Development files for zvbi
|
||
|
|
||
|
|
||
|
%package fonts
|
||
|
Summary: Fonts from zvbi converted to X11
|
||
|
Group: User Interface/X
|
||
|
|
||
|
%description fonts
|
||
|
Fonts from zvbi converted for use with X11
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
|
||
|
%build
|
||
|
# Note: We don't do --enable-static=no because static libs are needed to build
|
||
|
# x11font during compile time to convert zvbi fonts into x11 fonts. x11font
|
||
|
# is thrown away and not installed because it's not useful for anything else
|
||
|
%configure --disable-rpath --enable-v4l --enable-dvb --enable-proxy
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf %{buildroot}
|
||
|
mkdir -p %{buildroot}%{_datadir}/fonts/%{name}
|
||
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
||
|
make install DESTDIR=%{buildroot}
|
||
|
|
||
|
#Find locales
|
||
|
%find_lang %{name}
|
||
|
|
||
|
#Install init script
|
||
|
install -m0755 daemon/zvbid.init %{buildroot}%{_sysconfdir}/rc.d/init.d/zvbid
|
||
|
|
||
|
#Generate and install fonts
|
||
|
pushd contrib
|
||
|
./x11font
|
||
|
bdftopcf teletext.bdf | gzip -9 -c > %{buildroot}%{_datadir}/fonts/%{name}/teletext.pcf.gz
|
||
|
bdftopcf teletexti.bdf | gzip -9 -c > %{buildroot}%{_datadir}/fonts/%{name}/teletexti.pcf.gz
|
||
|
bdftopcf caption.bdf | gzip -9 -c > %{buildroot}%{_datadir}/fonts/%{name}/caption.pcf.gz
|
||
|
bdftopcf captioni.bdf | gzip -9 -c > %{buildroot}%{_datadir}/fonts/%{name}/captioni.pcf.gz
|
||
|
popd
|
||
|
|
||
|
# %%ghost the fonts.cache-1 file
|
||
|
touch %{buildroot}%{_datadir}/fonts/%{name}/fonts.cache-1
|
||
|
|
||
|
#Some cleanups
|
||
|
rm -f %{buildroot}%{_libdir}/*.a
|
||
|
rm -f %{buildroot}%{_libdir}/*.la
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
|
||
|
%post
|
||
|
/sbin/ldconfig
|
||
|
/sbin/chkconfig --add zvbid
|
||
|
|
||
|
|
||
|
%postun
|
||
|
/sbin/ldconfig
|
||
|
if [ "$1" -ge "1" ]; then
|
||
|
/sbin/service zvbid condrestart >/dev/null 2>&1 || :
|
||
|
fi
|
||
|
|
||
|
|
||
|
%preun
|
||
|
if [ $1 = 0 ]; then
|
||
|
/sbin/service zvbid stop >/dev/null 2>&1 || :
|
||
|
/sbin/chkconfig --del zvbid
|
||
|
fi
|
||
|
|
||
|
|
||
|
%post fonts
|
||
|
if [ -x /usr/bin/fc-cache ]; then
|
||
|
/usr/bin/fc-cache -f %{_datadir}/fonts/%{name}
|
||
|
fi
|
||
|
|
||
|
|
||
|
%postun fonts
|
||
|
if [ "$1" = "0" ]; then
|
||
|
if [ -x /usr/bin/fc-cache ]; then
|
||
|
/usr/bin/fc-cache -f %{_datadir}/fonts
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root,-)
|
||
|
%{_bindir}/%{name}-chains
|
||
|
%{_bindir}/%{name}-ntsc-cc
|
||
|
%{_sbindir}/zvbid
|
||
|
%{_sysconfdir}/rc.d/init.d/zvbid
|
||
|
%{_libdir}/libzvbi-chains.so.0*
|
||
|
%{_libdir}/libzvbi.so.0*
|
||
|
%{_mandir}/man1/zvbi*
|
||
|
%doc ABOUT-NLS AUTHORS BUGS ChangeLog COPYING NEWS README TODO
|
||
|
|
||
|
|
||
|
%files devel
|
||
|
%{_includedir}/libzvbi.h
|
||
|
%{_libdir}/libzvbi-chains.so
|
||
|
%{_libdir}/libzvbi.so
|
||
|
%{_libdir}/pkgconfig/%{name}-0.2.pc
|
||
|
|
||
|
|
||
|
%files fonts
|
||
|
%dir %{_datadir}/fonts/%{name}
|
||
|
%{_datadir}/fonts/%{name}/*.gz
|
||
|
%ghost %{_datadir}/fonts/%{name}/fonts.cache-1
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Fri Sep 01 2006 Ian Chapman <packages@amiga-hardware.com> 0.2.22-2%{?dist}
|
||
|
- Minor spec cleanups
|
||
|
|
||
|
* Tue Aug 29 2006 Ian Chapman <packages@amiga-hardware.com> 0.2.22-1%{?dist}
|
||
|
- Initial release
|