]> git.pld-linux.org Git - packages/gfontview.git/commitdiff
- updated to 0.3.1 gfontview-0_3_1-1
authorpius <pius@pld-linux.org>
Wed, 24 Nov 1999 20:18:13 +0000 (20:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added more rpm macros
- added using %%configure macro
- gfontview now looks for rc file in /usr/X11R6/share/misc instead of current
working directory
- added /usr/share/fonts to fontdirs list
- other minor fixes

Changed files:
    gfontview.spec -> 1.7

gfontview.spec

index ea6c355aec761ab997d324b2291ee5288214275b..b0dbf78e9da68edf155b8aa3a35c5e968d231609 100644 (file)
@@ -1,16 +1,16 @@
 Summary:       A font viewer for Type 1 and TrueType fonts
 Summary(pl):   Przegl±darka czcionek Type 1 i TrueType
 Name:          gfontview
-Version:       0.3.0
+Version:       0.3.1
 Release:       1
 Copyright:      GPL
 Group:         X11/Utilities
 Group(pl):     X11/Narzêdzia
-Source0:       http://www.geocities.com/SiliconValley/Foothills/1458/%{name}-0_3_0.tgz
+Source0:       http://www.geocities.com/SiliconValley/Foothills/1458/%{name}-0_3_1.tgz
 Source1:       gfontview.desktop
+Patch:         gfontview-config.patch
 Icon:           gfontview.xpm
-Patch:         gfontview-fproto.patch
-URL:           http://www.geocities.com/SiliconValley/Foothills/1458/
+URL:           http://www.geocities.com/SiliconValley/Foothills/1458/index.html
 BuildRequires: XFree86-devel
 BuildRequires: xpm-devel
 BuildRequires: gtk+-devel >= 1.2.0
@@ -21,7 +21,8 @@ BuildRequires:        libungif-devel
 BuildRequires: libstdc++-devel
 BuildRoot:     /tmp/%{name}-%{version}-root
 
-%define _prefix        /usr/X11R6
+%define        _prefix         /usr/X11R6
+%define                _applnkdir      %{_datadir}/applnk
 
 %description
 gfontview is a Font Viewer for outline fonts (PostScript Type 1 and TrueType). 
@@ -49,18 +50,21 @@ znaku lub fragmentu tekstu w formacie GIF.
 %patch -p0
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
-./configure %{_target_platform} \
-       --prefix=%{_prefix} \
-       --with-libungif
+CXXFLAGS="$RPM_OPT_FLAGS"; LDFLAGS="-s"
+export LDFLAGS CXXFLAGS
+%configure \
+       --with-libungif \
+       --with-fontdir=/usr/share/fonts/Type1
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Utilities
+install -d $RPM_BUILD_ROOT{%{_datadir}/misc,%{_applnkdir}/Utilities}
 
-make install-strip DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Utilities
+make install DESTDIR=$RPM_BUILD_ROOT
+
+install .gfontviewrc $RPM_BUILD_ROOT%{_datadir}/misc/gfontviewrc
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
 
 gzip -9nf README ChangeLog AUTHORS NEWS TODO
 
@@ -72,4 +76,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc {README,ChangeLog,AUTHORS,NEWS,TODO}.gz
 %attr(755,root,root) %{_bindir}/gfontview
 
-/usr/X11R6/share/applnk/Utilities/gfontview.desktop
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/misc/gfontviewrc
+%{_applnkdir}/Utilities/gfontview.desktop
This page took 0.088013 seconds and 4 git commands to generate.