rpms/zvbi/devel zvbi.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ian Chapman (oddsocks) fedora-extras-commits at redhat.com
Thu Sep 7 21:12:08 UTC 2006


Author: oddsocks

Update of /cvs/extras/rpms/zvbi/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20043/devel

Modified Files:
	.cvsignore sources 
Added Files:
	zvbi.spec 
Log Message:
auto-import zvbi-0.2.22-2 on branch devel from zvbi-0.2.22-2.src.rpm


--- NEW FILE zvbi.spec ---
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 at amiga-hardware.com> 0.2.22-2%{?dist}
- Minor spec cleanups

* Tue Aug 29 2006 Ian Chapman <packages at amiga-hardware.com> 0.2.22-1%{?dist}
- Initial release

Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/zvbi/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	7 Sep 2006 21:11:23 -0000	1.1
+++ .cvsignore	7 Sep 2006 21:12:08 -0000	1.2
@@ -0,0 +1 @@
+zvbi-0.2.22.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/zvbi/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 Sep 2006 21:11:23 -0000	1.1
+++ sources	7 Sep 2006 21:12:08 -0000	1.2
@@ -0,0 +1 @@
+a01cbe39a48579ba92582ff75a5e37c2  zvbi-0.2.22.tar.bz2




More information about the scm-commits mailing list