Explorar el Código

add a pkg-config(1) file for convenience reasons

Ralf S. Engelschall hace 21 años
padre
commit
7685d78e5d
Se han modificado 2 ficheros con 17 adiciones y 1 borrados
  1. 10 0
      popt/popt.pc
  2. 7 1
      popt/popt.spec

+ 10 - 0
popt/popt.pc

@@ -0,0 +1,10 @@
+prefix=@l_prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: newt
+Description: POPT - Parse Command-Line Options
+Version: @version@
+Libs: -L${libdir} -lpopt
+Cflags: -I${includedir}

+ 7 - 1
popt/popt.spec

@@ -37,10 +37,11 @@ Class:        BASE
 Group:        System
 License:      LGPL
 Version:      %{V_popt}
-Release:      20050726
+Release:      20050820
 
 #   list of sources
 Source0:      ftp://jbj.org/pub/rpm-%{V_rpm}/popt-%{V_popt}.tar.gz
+Source1:      popt.pc
 
 #   build information
 Prefix:       %{l_prefix}
@@ -85,6 +86,11 @@ AutoReqProv:  no
     rm -rf $RPM_BUILD_ROOT
     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
+    %{l_shtool} install -c -m 644 %{l_value -s -a} \
+        -e 's;@version@;%{version};g' \
+        %{SOURCE popt.pc} $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
 
 %files -f files