Bläddra i källkod

strip version from paths

Michael van Elst 23 år sedan
förälder
incheckning
f4c130cc10
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      glib/glib.spec

+ 9 - 2
glib/glib.spec

@@ -23,6 +23,9 @@
 ##  SUCH DAMAGE.
 ##
 
+%define       V_glib_major 1.2
+%define       V_glib_minor 10
+
 #   package information
 Name:         glib
 Summary:      The Gtk Utility Library
@@ -32,8 +35,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [BASE]
 Group:        Algorithm
 License:      GPL
-Version:      1.2.10
-Release:      20030131
+Version:      %{V_glib_major}.%{V_glib_minor}
+Release:      20030508
 
 #   package options
 %option       with_threads  no
@@ -57,6 +60,10 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %{l_shtool} subst \
+        -e 's;glib-%{V_glib_major};glib;g' \
+        Makefile.in glib-config.in glib.pc.in \
+        gmodule/Makefile.in
 
 %build
     CC="%{l_cc}" \