|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: zvbi
|
|
|
|
Name: zvbi
|
|
|
|
Version: 0.2.33
|
|
|
|
Version: 0.2.33
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Summary: Raw VBI, Teletext and Closed Caption decoding library
|
|
|
|
Summary: Raw VBI, Teletext and Closed Caption decoding library
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
# See NEWS for a full breakdown of licensing.
|
|
|
|
# See NEWS for a full breakdown of licensing.
|
|
|
@ -20,10 +20,12 @@ BuildRequires: gettext >= 0.16.1
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: xorg-x11-font-utils
|
|
|
|
BuildRequires: xorg-x11-font-utils
|
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
|
|
|
|
Requires(preun): /sbin/service
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): /sbin/service
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
ZVBI provides functions to capture and decode VBI data. The vertical blanking
|
|
|
|
ZVBI provides functions to capture and decode VBI data. The vertical blanking
|
|
|
@ -74,6 +76,21 @@ Fonts from zvbi converted for use with X11
|
|
|
|
#Fix character encodings
|
|
|
|
#Fix character encodings
|
|
|
|
iconv -f iso8859-1 README -t utf8 > README.conv && /bin/mv -f README.conv README
|
|
|
|
iconv -f iso8859-1 README -t utf8 > README.conv && /bin/mv -f README.conv README
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# systemd service file
|
|
|
|
|
|
|
|
cat >zvbid.service <<EOF
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
|
|
|
Description=Proxy Sharing V4L VBI Device Between Applications
|
|
|
|
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
|
|
|
Type=forking
|
|
|
|
|
|
|
|
ExecStart=%{_sbindir}/zvbid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Note: We don't do --enable-static=no because static libs are needed to build
|
|
|
|
# Note: We don't do --enable-static=no because static libs are needed to build
|
|
|
@ -99,14 +116,17 @@ popd
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{fontdir}
|
|
|
|
mkdir -p %{buildroot}%{fontdir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
#Find locales
|
|
|
|
#Find locales
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
#Install init script
|
|
|
|
#Install init script
|
|
|
|
install -pm0755 daemon/zvbid.init %{buildroot}%{_sysconfdir}/rc.d/init.d/zvbid
|
|
|
|
#mkdir -p %{buildroot}%{_initrddir}
|
|
|
|
|
|
|
|
#install -pm0755 daemon/zvbid.init %{buildroot}%{_sysconfdir}/rc.d/init.d/zvbid
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
install -m644 zvbid.services %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_initrddir}
|
|
|
|
|
|
|
|
|
|
|
|
#Install fonts
|
|
|
|
#Install fonts
|
|
|
|
install -pm0644 contrib/*.pcf.gz %{buildroot}%{fontdir}
|
|
|
|
install -pm0644 contrib/*.pcf.gz %{buildroot}%{fontdir}
|
|
|
@ -127,20 +147,26 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/chkconfig --add zvbid
|
|
|
|
|
|
|
|
|
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
|
|
|
|
/sbin/service zvbid condrestart >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
if [ $1 != 0 ]; then
|
|
|
|
|
|
|
|
/bin/systemctl try-restart zvbid.service >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/service zvbid stop >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable zvbid.service >/dev/null 2>&1 || :
|
|
|
|
/sbin/chkconfig --del zvbid
|
|
|
|
/bin/systemctl stop zvbid.service >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -164,7 +190,8 @@ fi
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_bindir}/%{name}*
|
|
|
|
%{_sbindir}/zvbid
|
|
|
|
%{_sbindir}/zvbid
|
|
|
|
%{_sysconfdir}/rc.d/init.d/zvbid
|
|
|
|
#%{_initrddir}/zvbid
|
|
|
|
|
|
|
|
%{_unitdir}/zvbid.service
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%exclude %{_libdir}/*.a
|
|
|
|
%exclude %{_libdir}/*.a
|
|
|
@ -190,6 +217,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Aug 17 2011 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.2.33-7
|
|
|
|
|
|
|
|
- Migration from SysV to Systemd init system (#730154)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.33-6
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.33-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|