]> git.pld-linux.org Git - packages/libwmf.git/commitdiff
- updated to 0.2.0, removed obsolete DESTDIR and shared patches libwmf-0_2_0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 11 Jun 2001 20:36:29 +0000 (20:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fontmap-pld patch - fonts in /usr/share/fonts, .afm files in subdirectory;
  strip CRs - found in some AFMs
- don't include fonts - require ghostscript-fonts-std instead
- freetype2 now; new BuildRequires: expat-devel, libplot-devel, libjpeg-devel
still uses own, modified version of libgd (2.0.1 now)
WARNING: libwmf 0.2.x is incompatible with 0.1.x - don't remove old ver. yet
(ImageMagick must be patched or updated)

Changed files:
    libwmf-fontmap-pld.patch -> 1.1
    libwmf.spec -> 1.29

libwmf-fontmap-pld.patch [new file with mode: 0644]
libwmf.spec

diff --git a/libwmf-fontmap-pld.patch b/libwmf-fontmap-pld.patch
new file mode 100644 (file)
index 0000000..93ac9bb
--- /dev/null
@@ -0,0 +1,42 @@
+--- libwmf-0.2.0/fonts/libwmf-fontmap.in.orig  Sat May 19 14:12:06 2001
++++ libwmf-0.2.0/fonts/libwmf-fontmap.in       Mon Jun 11 13:24:44 2001
+@@ -33,9 +33,9 @@
+ fi
+ if test "x$font_dir" = "x"; then
+-      font_dir="@prefix@/share/@PACKAGE@/fonts"
++      font_dir="@prefix@/share/@PACKAGE@/fonts /usr/share/fonts/Type1 /usr/share/fonts/TTF"
+ else
+-      font_dir="$font_dir @prefix@/share/@PACKAGE@/fonts"
++      font_dir="$font_dir @prefix@/share/@PACKAGE@/fonts /usr/share/fonts/Type1 /usr/share/fonts/TTF"
+ fi
+ if test $echo_help = yes; then
+@@ -64,9 +64,9 @@
+               font_cwd=`pwd`;
+               echo scanning $i;
+-              for j in `ls *.afm 2> /dev/null`; do
+-                      font_root=`echo $j | sed s/.afm//`
+-                      font_metrics=$font_cwd/$font_root.afm
++              for j in `ls *.afm afm/*.afm 2> /dev/null`; do
++                      font_root=`echo $j | sed -e 's@.*/@@' -e 's@\.afm@@'`
++                      font_metrics=$font_cwd/$j
+                       font_glyphs=
+                       if test -r $font_cwd/$font_root.pfa; then
+                               font_glyphs=$font_cwd/$font_root.pfa
+@@ -75,10 +75,10 @@
+                       fi
+                       if test "x$font_glyphs" != "x"; then
+                               echo font: $font_root
+-                              FontName=`grep "FontName " $font_metrics | sed "s/FontName //"`
+-                              FullName=`grep "FullName " $font_metrics | sed "s/FullName //"`
+-                              FamilyName=`grep "FamilyName " $font_metrics | sed "s/FamilyName //"`
+-                              Weight=`grep "Weight " $font_metrics | sed "s/Weight //"`
++                              FontName=`grep "FontName " $font_metrics | sed "s/FontName //" | tr -d '\r'`
++                              FullName=`grep "FullName " $font_metrics | sed "s/FullName //" | tr -d '\r'`
++                              FamilyName=`grep "FamilyName " $font_metrics | sed "s/FamilyName //" | tr -d '\r'`
++                              Weight=`grep "Weight " $font_metrics | sed "s/Weight //" | tr -d '\r'`
+                               cd $font_pwd
+                               echo '<font format="type1" metrics="'$font_metrics'" glyphs="'$font_glyphs'" name="'$FontName'" fullname="'$FullName'" familyname="'$FamilyName'" weight="'$Weight'" version="0.1" alias="'$FontName'"/>' >> $font_map
+                               cd $font_cwd
index 09fc21b0823d6191ff2bcb62e949ce74333080b4..07ab75f5d528faffa6649ca22b80ea4fa1fbae96 100644 (file)
@@ -1,8 +1,8 @@
 Summary:       libwmf - library to convert wmf files
 Summary(pl):   libwmf - biblioteka z funkcjami do konwersji plików wmf
 Name:          libwmf
-Version:       0.1.21b
-Release:       5
+Version:       0.2.0
+Release:       1
 Epoch:         2
 License:       GPL
 Vendor:                Caolan McNamara <Caolan.McNamara@ul.ie>
@@ -11,13 +11,17 @@ Group(de):  Applikationen/Text
 Group(fr):     Utilitaires/Texte
 Group(pl):     Aplikacje/Tekst
 Source0:       ftp://download.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
-Patch0:                %{name}-DESTDIR.patch
-Patch1:                %{name}-shared.patch
+Patch0:                %{name}-fontmap-pld.patch
 URL:           http://wvware.sourceforge.net/
-BuildRequires: libtool
 BuildRequires: libpng-devel
-BuildRequires: freetype1-devel
+BuildRequires: libjpeg-devel
+BuildRequires: freetype-devel >= 2.0
 BuildRequires: XFree86-devel
+BuildRequires: expat-devel
+BuildRequires: libplot-devel
+Prereq:                /sbin/ldconfig
+Prereq:                sed
+Prereq:                ghostscript-fonts-std
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -62,63 +66,54 @@ This package contains libwmf static libraries.
 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
 
 %prep
-%setup -q -n %{name}
-%patch0 -p1
-%patch1 -p1
+%setup -q
+%patch -p1
 
 %build
 %configure \
-       --enable-shared \
-       --with-ttf=/usr
+       --with-plot
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
-
-# avoid relinking
-for f in *.la ; do
-       sed -e '/^relink_command/d' $f > $f.new
-       mv -f $f.new $f
-done
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} \
-       $RPM_BUILD_ROOT%{_includedir}/xgd
-
-# remove unwanted paths from libtool scripts
-for f in $RPM_BUILD_ROOT%{_libdir}/lib{X,eps,gd,xf,}wmf.la ; do
-       cat $f | awk '/^dependency_libs/ { gsub("-L[ \t]*[^ \t]*/\.libs ","") } //' >$f.tmp
-       mv -f $f.tmp $f
-done
-
-rm -rf notes/testprogram
-gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
+mv -f $RPM_BUILD_ROOT%{_prefix}/doc ./html-doc
+gzip -9nf CREDITS ChangeLog README TODO
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+%{_bindir}/libwmf-fontmap >/dev/null
+
 %postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc *.gz
-# only these binaries - other conflicts with gd
-%attr(755,root,root) %{_bindir}/bdftogd
-%attr(755,root,root) %{_bindir}/wmftofig
-%attr(755,root,root) %{_bindir}/wmftopng
-%attr(755,root,root) %{_bindir}/wmftoeps
-%attr(755,root,root) %{_bindir}/xwmf
+%attr(755,root,root) %{_bindir}/libwmf-fontmap
+%attr(755,root,root) %{_bindir}/wmf2eps
+%attr(755,root,root) %{_bindir}/wmf2fig
+%attr(755,root,root) %{_bindir}/wmf2gd
+%attr(755,root,root) %{_bindir}/wmf2magick
+%attr(755,root,root) %{_bindir}/wmf2plot
+%attr(755,root,root) %{_bindir}/wmf2svg
+%attr(755,root,root) %{_bindir}/wmf2x
 %attr(755,root,root) %{_libdir}/*.so.*.*
+%dir %{_datadir}/libwmf
+%dir %{_datadir}/libwmf/fonts
+%ghost %{_datadir}/libwmf/fonts/fontmap
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc examples notes winepatches
-%{_includedir}/*
-%{_libdir}/*.so
+%doc html-doc examples
+%attr(755,root,root) %{_bindir}/libwmf-config
+%attr(755,root,root) %{_libdir}/*.so
 %attr(755,root,root) %{_libdir}/*.la
+%{_includedir}/*
 
 %files static
 %defattr(644,root,root,755)
This page took 0.088475 seconds and 4 git commands to generate.