sqliteのtar玉からRPMを作る

2006/03/14

Categories: other

specをちびっと触ったのでメモ。
[aaa@bbb sqlite-3.3.4]# diff -u /usr/src/redhat/BUILD/sqlite-3.3.4/spec.template spec.template
--- /usr/src/redhat/BUILD/sqlite-3.3.4/spec.template    2005-12-20 02:30:55.000000000 +0900
+++ spec.template       2006-03-14 23:16:30.000000000 +0900
@@ -1,5 +1,5 @@
 %define name sqlite
-%define version SQLITE_VERSION
+%define version 3.3.4
 %define release 1

 Name: %{name}
@@ -30,7 +30,7 @@
 to develop programs that use the sqlite database library.

 %prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{version}

 %build
 CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}

>> Home