rpms/zvbi/F-7 sources,1.4,1.5 zvbi.spec,1.3,1.4

Ian Chapman (oddsocks) fedora-extras-commits at redhat.com
Sun Jan 6 22:26:56 UTC 2008


Author: oddsocks

Update of /cvs/extras/rpms/zvbi/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5395

Modified Files:
	sources zvbi.spec 
Log Message:



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/zvbi/F-7/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	27 May 2007 22:03:20 -0000	1.4
+++ sources	6 Jan 2008 22:26:18 -0000	1.5
@@ -1 +1 @@
-b63c626baf1fc385df04d88bc9628a4a  zvbi-0.2.25.tar.bz2
+82805319ca61f6ffd7b7bb64d7433448  zvbi-0.2.26.tar.bz2


Index: zvbi.spec
===================================================================
RCS file: /cvs/extras/rpms/zvbi/F-7/zvbi.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- zvbi.spec	27 May 2007 22:03:20 -0000	1.3
+++ zvbi.spec	6 Jan 2008 22:26:18 -0000	1.4
@@ -1,16 +1,20 @@
+%define             fontdir %{_datadir}/fonts/%{name}
+%define             catalogue %{_sysconfdir}/X11/fontpath.d
+
 Name:               zvbi
-Version:            0.2.25
+Version:            0.2.26
 Release:            1%{?dist}
 Summary:            Raw VBI, Teletext and Closed Caption decoding library
 Group:              System Environment/Libraries
-License:            GPL
+License:            GPLv2+
 URL:                http://zapping.sourceforge.net/ZVBI/index.html
-Source0:            http://dl.sf.net/zapping/%{name}-%{version}.tar.bz2
+Source0:            http://downloads.sourceforge.net/zapping/%{name}-%{version}.tar.bz2
 Patch0:             zvbi-0.2.24-tvfonts.patch
+Patch1:             zvbi-0.2.25-openfix.patch
 BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:      doxygen
 BuildRequires:      fontconfig
-BuildRequires:      gettext
+BuildRequires:      gettext >= 0.16.1
 BuildRequires:      libpng-devel
 BuildRequires:      libICE-devel
 BuildRequires:      xorg-x11-font-utils
@@ -44,8 +48,11 @@
 Group:              User Interface/X
 Requires(post):     fontconfig
 Requires(postun):   fontconfig
+# Don't use chkfontpath for F8+, it's legacy.
+%if 0%{?fedora} <= 7
 Requires(post):     chkfontpath
 Requires(postun):   chkfontpath
+%endif
 Obsoletes:          xawtv-tv-fonts < 3.95
 Provides:           xawtv-tv-fonts >= 3.95
 
@@ -56,6 +63,7 @@
 %prep
 %setup -q
 %patch -p1 -b .orig
+%patch1 -p1
 
 #Fix character encodings (note ChangeLog's encoding is broken, hence sed)
 sed -i 's/\xC3\xB2/\xF2/g' ChangeLog
@@ -67,7 +75,7 @@
 %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
+# is thrown away and not installed as it's not useful for anything else
 %configure --disable-rpath --enable-v4l --enable-dvb --enable-proxy
 make %{?_smp_mflags}
 
@@ -87,7 +95,7 @@
 
 %install
 rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_datadir}/fonts/%{name}
+mkdir -p %{buildroot}%{fontdir}
 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
 make install DESTDIR=%{buildroot}
 
@@ -98,11 +106,16 @@
 install -m0755 daemon/zvbid.init %{buildroot}%{_sysconfdir}/rc.d/init.d/zvbid
 
 #Install fonts
-install -m 0644 contrib/*.pcf.gz %{buildroot}%{_datadir}/fonts/%{name}
-install -m 0644 contrib/fonts.* %{buildroot}%{_datadir}/fonts/%{name}
+install -m 0644 contrib/*.pcf.gz %{buildroot}%{fontdir}
+install -m 0644 contrib/fonts.* %{buildroot}%{fontdir}
 
 #%%ghost the fonts.cache-1 and fonts.dir
-touch %{buildroot}%{_datadir}/fonts/%{name}/fonts.cache-1
+touch %{buildroot}%{fontdir}/fonts.cache-1
+
+%if 0%{?fedora} > 7
+mkdir -p %{buildroot}%{catalogue}
+ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name}
+%endif
 
 
 %clean
@@ -130,13 +143,17 @@
 
 %post fonts
 fc-cache -f %{_datadir}/fonts/%{name} || :
-chkfontpath -q -a %{_datadir}/fonts/%{name} || :
+%if 0%{?fedora} <= 7
+chkfontpath -q -a %{fontdir} || :
+%endif
 
 
 %postun fonts
 if [ "$1" = "0" ]; then
     fc-cache -f %{_datadir}/fonts || :
-    chkfontpath -q -r %{_datadir}/fonts/%{name} || :
+%if 0%{?fedora} <= 7
+    chkfontpath -q -r %{fontdir} || :
+%endif
 fi
 
 
@@ -160,17 +177,29 @@
 
 %files fonts
 %dir %{_datadir}/fonts/%{name}
-%{_datadir}/fonts/%{name}/*.gz
-%{_datadir}/fonts/%{name}/fonts.dir
-%{_datadir}/fonts/%{name}/fonts.alias
-%ghost %{_datadir}/fonts/%{name}/fonts.cache-1
+%{fontdir}/*.gz
+%{fontdir}/fonts.dir
+%{fontdir}/fonts.alias
+%if 0%{?fedora} > 7
+%{catalogue}/%{name}
+%endif
+%ghost %{fontdir}/fonts.cache-1
 
 
 %changelog
-* Sun May 27 2007 Ian Chapman <packages at amiga-hardware.com> 0.2.25-1%{?dist}
+* Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.26-1
+- Upgrade to 0.2.26
+
+* Wed Aug 22 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.25-2
+- Release bump for F8 mass rebuild
+- License change due to new guidelines
+- Use fontpath.d for F8+
+- Added patch to fix compilation with open() macro on F8+
+
+* Sun May 27 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.25-1
 - Upgrade to 0.2.25
 
-* Tue Mar 13 2007 Ian Chapman <packages at amiga-hardware.com> 0.2.24-1%{?dist}
+* Tue Mar 13 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.24-1
 - Upgrade to 0.2.24
 - Convert README and ChangeLog to UTF-8
 - Added patch for x11font to generate more font sizes useful for other
@@ -180,8 +209,8 @@
 - Various other minor changes to the spec
 - Added xfs support for the fonts
 
-* Fri Sep 01 2006 Ian Chapman <packages at amiga-hardware.com> 0.2.22-2%{?dist}
+* Fri Sep 01 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.22-2
 - Minor spec cleanups
 
-* Tue Aug 29 2006 Ian Chapman <packages at amiga-hardware.com> 0.2.22-1%{?dist}
-- Initial release
\ No newline at end of file
+* Tue Aug 29 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.22-1
+- Initial release




More information about the fedora-extras-commits mailing list