]> git.pld-linux.org Git - packages/fnlib.git/commitdiff
- more rpm macros.
authorkloczek <kloczek@pld-linux.org>
Tue, 29 Jun 1999 19:44:01 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fnlib.spec -> 1.18

fnlib.spec

index a73e27cba4e49d6ec685dbe9ba969e1a27937041..964ce5ef1d57e830cff1b750afe6361b382606a9 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Color Font rendering lobrary for X11R6
 Summary(pl):   Biblioteki do renderowania fontów pod X11R6
 Name:          fnlib
 Version:       0.4
-Release:       9
+Release:       10
 Copyright:     LGPL
 Group:         X11/Libraries
 Group(pl):     X11/Biblioteki
@@ -11,6 +11,9 @@ BuildPrereq:  XFree86-devel
 BuildPrereq:   imlib-devel
 BuildRoot:     /tmp/%{name}-%{version}-root
 
+%define                _prefix         /usr/X11R6
+%define                _sysconfdir     /etc/X11
+
 %description
 Fnlib is a library that provides full scalable 24-bit Color font rendering
 abilities for X.
@@ -49,18 +52,16 @@ Biblioteki statyczne fnlib
 %setup -q
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
-       --prefix=/usr/X11R6 \
-       --sysconfdir=/etc/X11
+LDFLAGS="-s"; export LDFLAGS
+%configure
 
-make fontsdir=/usr/X11R6/share/fnlib_fonts
+make fontsdir=%{_datadir}/fnlib_fonts
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
-strip --strip-unneeded $RPM_BUILD_ROOT/usr/X11R6/lib/lib*.so.*.*
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
 
 gzip -9nf {README,doc/fontinfo.README}
 
This page took 0.086225 seconds and 4 git commands to generate.