sqlite3-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. %define packagename sqlite3
  2. %define archivename sqlite
  3. %define tclver 8.4
  4. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  5. %define with_check %{?_with_check:1}%{!?_with_check:0}
  6. Name: %{packagename}
  7. Summary: SQLite is a C library that implements an embeddable SQL database engine
  8. Summary(ja): SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
  9. Version: 3.6.23.1
  10. Release: 2%{?_dist_release}
  11. Source: http://www.sqlite.org/%{archivename}-%{version}.tar.gz
  12. # Fix build with --enable-load-extension, upstream ticket #3137
  13. Patch1: sqlite-3.6.12-libdl.patch
  14. # Avoid insecure sprintf(), use a system path for lempar.c, patch from Debian
  15. Patch2: sqlite-3.6.23.1-lemon-snprintf.patch
  16. Group: System Environment/Libraries
  17. URL: http://www.sqlite.org
  18. License: Public Domain
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Requires: readline, ncurses
  21. BuildRequires: tcl, readline-devel
  22. %description
  23. SQLite is a C library that implements an embeddable SQL database engine.
  24. Programs that link with the SQLite library can have SQL database access
  25. without running a separate RDBMS process. The distribution comes with a
  26. standalone command-line access program (sqlite3) that can be used to
  27. administer an SQLite database and which serves as an example of how to
  28. use the SQLite library.
  29. %description -l ja
  30. SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
  31. SQLiteライブラリにリンクされたプログラムではSQLデータベースアクセスが
  32. できるようになります。その際、別のRDBMSプロセスは不要です。
  33. %package -n %{name}-devel
  34. Summary: Header files and libraries for developing apps which will use sqlite3
  35. Summary(ja): sqlite3の開発用ヘッダファイル及びライブラリ
  36. Group: Development/Libraries
  37. Requires: %{name} = %{version}-%{release}
  38. %description -n %{name}-devel
  39. The sqlite3-devel package contains the header files and libraries needed
  40. to develop programs that use the SQLite database library.
  41. %description -n %{name}-devel -l ja
  42. sqlite3-develはSQLiteデータベースライブラリを用いるプログラムの開発に
  43. 必要なヘッダファイル及びライブラリを含むパッケージです。
  44. %package -n lemon
  45. Summary: A parser generator
  46. Summary(ja): パーザジェネレータ
  47. Group: Development/Tools
  48. %description -n lemon
  49. Lemon is an LALR(1) parser generator for C or C++. It does the same
  50. job as bison and yacc. But lemon is not another bison or yacc
  51. clone. It uses a different grammar syntax which is designed to reduce
  52. the number of coding errors. Lemon also uses a more sophisticated
  53. parsing engine that is faster than yacc and bison and which is both
  54. reentrant and thread-safe. Furthermore, Lemon implements features
  55. that can be used to eliminate resource leaks, making is suitable for
  56. use in long-running programs such as graphical user interfaces or
  57. embedded controllers.
  58. %description -n lemon -l ja
  59. Lemon は C や C++ 用の LALR(1) パーザジェネレータです。bison や yacc と
  60. 同様に機能しますが、これらのクローンではなく、異なる構文を用いることで
  61. コーディング上のエラーを減らすことを狙っています。また Lemon ではより
  62. 洗練された構文解析エンジンを使っており、yacc や bison より高速に、かつ
  63. 再入可能・スレッドセーフに動作します。さらに Lemon ではリソースのリークを
  64. 防ぐ機能も備わっており、GUI や組み込みコントローラといった長期間動作する
  65. プログラムに適しています。
  66. %package -n %{name}-tcl
  67. Summary: Tcl client library for SQLite
  68. Summary(ja): SQLiteのTclクライアントライブラリ
  69. Group: System Environment/Libraries
  70. Requires: %{name} = %{version}-%{release}
  71. %description -n %{name}-tcl
  72. The sqlite3-tcl package contains the libtclsqlite3 client library,
  73. which utilizes SQLite from Tcl.
  74. %description -n %{name}-tcl -l ja
  75. sqlite3-tclはTclからSQLiteデータベースライブラリを扱うために
  76. 必要なlibtclsqlite3ライブラリを含むパッケージです。
  77. %package -n compat32-%{name}
  78. Summary: SQLite is a C library that implements an embeddable SQL database engine
  79. Summary(ja): SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
  80. Group: System Environment/Libraries
  81. Requires: %{name} = %{version}-%{release}
  82. %description -n compat32-%{name}
  83. SQLite is a C library that implements an embeddable SQL database engine.
  84. Programs that link with the SQLite library can have SQL database access
  85. without running a separate RDBMS process. The distribution comes with a
  86. standalone command-line access program (sqlite3) that can be used to
  87. administer an SQLite database and which serves as an example of how to
  88. use the SQLite library.
  89. %description -n compat32-%{name} -l ja
  90. SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
  91. SQLiteライブラリにリンクされたプログラムではSQLデータベースアクセスが
  92. できるようになります。その際、別のRDBMSプロセスは不要です。
  93. %package -n compat32-%{name}-devel
  94. Summary: Header files and libraries for developing apps which will use sqlite3
  95. Summary(ja): sqlite3の開発用ヘッダファイル及びライブラリ
  96. Group: Development/Libraries
  97. Requires: compat32-%{name} = %{version}-%{release}
  98. %description -n compat32-%{name}-devel
  99. The sqlite3-devel package contains the header files and libraries needed
  100. to develop programs that use the SQLite database library.
  101. %description -n compat32-%{name}-devel -l ja
  102. sqlite3-develはSQLiteデータベースライブラリを用いるプログラムの開発に
  103. 必要なヘッダファイル及びライブラリを含むパッケージです。
  104. %prep
  105. %{__rm} -rf $RPM_BUILD_ROOT
  106. %setup -q -n %{archivename}-%{version}
  107. %patch1 -p1 -b .libdl
  108. %patch2 -p1 -b .lemon-sprintf
  109. cd src
  110. %build
  111. autoconf
  112. export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -Wall -fno-strict-aliasing"
  113. %configure --enable-load-extension \
  114. --enable-threadsafe \
  115. --enable-threads-override-locks
  116. %{__make} %{?_smp_mflags}
  117. %{__make} doc
  118. %install
  119. DESTDIR=${RPM_BUILD_ROOT} %{__make} install
  120. ## remove unuse files
  121. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
  122. install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
  123. install -D -m0755 lemon $RPM_BUILD_ROOT/%{_bindir}/lemon
  124. install -D -m0644 tool/lempar.c $RPM_BUILD_ROOT/%{_datadir}/lemon/lempar.c
  125. %check
  126. %if %{with_check}
  127. %{__make} test
  128. %endif
  129. %clean
  130. %{__rm} -rf $RPM_BUILD_ROOT
  131. %files
  132. %defattr(-, root, root)
  133. %{_bindir}/sqlite3
  134. %{_libdir}/*.so.*
  135. %{_mandir}/*/*
  136. %files -n %{name}-devel
  137. %defattr(-, root, root)
  138. #%{_libdir}/*.a
  139. #%{_libdir}/*.la
  140. %{_libdir}/*.so
  141. %{_libdir}/pkgconfig/*
  142. %{_includedir}/*
  143. %doc doc/*
  144. %files -n lemon
  145. %defattr(-, root, root)
  146. %{_bindir}/lemon
  147. %{_datadir}/lemon
  148. %files -n %{name}-tcl
  149. %defattr(-, root, root)
  150. %{_datadir}/tcl%{tclver}/%{packagename}/*
  151. %if %{build_compat32}
  152. %files -n compat32-%{name}
  153. %defattr(-, root, root)
  154. %{_libdir}/*.so.*
  155. %files -n compat32-%{name}-devel
  156. %defattr(-, root, root)
  157. #%{_libdir}/*.a
  158. #%{_libdir}/*.la
  159. %{_libdir}/*.so
  160. %{_libdir}/pkgconfig/*
  161. %endif
  162. %changelog
  163. * Sat Apr 17 2010 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.6.23.1-2
  164. - new upstream release
  165. - adjust Patch2
  166. * Tue Jan 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.21-1
  167. - new upstream release
  168. * Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.16-1
  169. - new upstream release
  170. * Tue Jun 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.14.2-1
  171. - new upstream release
  172. - remove static library
  173. - add --enable-thereadsafe configure options
  174. - enable RTREE, FTS3 extentions
  175. - dont sync on dirs
  176. * Wed Dec 31 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.6.7-1
  177. - new upstream version
  178. - add lemon subpackage
  179. - add Patch1 (upstream ticket #3137) and Patch2 (from Debian)
  180. - enable loading of external extensions
  181. - correct snprintf use in lemon.c
  182. - add with_check macro
  183. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 3.5.9-2vl5
  184. - removed *.la
  185. - spec in utf-8
  186. * Sat May 17 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.5.9-1vl5
  187. - upstream release
  188. * Sun Apr 27 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.5.8-1vl5
  189. - upstream release
  190. * Sun Mar 23 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.5.7-1vl5
  191. - upstream release
  192. - drop Patch1 (fixed in upstream source)
  193. * Wed Feb 6 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.5.5-0vl1
  194. - upstream release
  195. - add Patch1 to pass tests correctly
  196. - use quick test instead of fulltest (which causes infinite loop)
  197. * Fri Dec 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.5.4-0vl2
  198. - upstream release
  199. - use full test instead of quick test
  200. * Sun Dec 23 2007 NAKAMURA Kenta <kenta@vinelinux.org> 3.4.2-0vl2
  201. - added compat32-* packages for x86_64 architecture support
  202. * Sat Aug 18 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.4.2-0vl1
  203. - upstream release
  204. * Sat Jul 21 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.4.1-0vl1
  205. - upstream release
  206. - stop applying Patch0 (problem seems to be fixed in upstream source.
  207. see http://www.sqlite.org/cvstrac/chngview?cn=4134 )
  208. * Tue Jun 26 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.4.0-0vl1
  209. - upstream release
  210. * Sat May 26 2007 NAKAMURA Kenta <kenta@vinelinux.org> 3.3.17-0vl2
  211. - added Patch0: sqlite-3.3.17-types3_test-x86_64.patch
  212. * Wed May 2 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.17-0vl1
  213. - upstream release
  214. * Wed Apr 11 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.15-0vl1
  215. - upstream release
  216. - drop Patch0 (merged in upstream source)
  217. - move /usr/lib/libsqlite3.so to -devel package
  218. - add %%check scriptlet
  219. * Tue Apr 3 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.14-0vl1
  220. - upstream release
  221. - add Patch0 to make test work correctly
  222. from http://www.sqlite.org/cvstrac/filediff?f=sqlite/Makefile.in&v1=1.164&v2=1.165
  223. * Sun Feb 18 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.13-0vl1
  224. - upstream release
  225. * Sat Jan 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.12-0vl1
  226. - upstream release
  227. * Fri Jan 26 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.11-0vl1
  228. - upstream release
  229. - use macros for make and rm
  230. * Wed Jan 17 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.10-0vl2
  231. - rebuild
  232. - update changelog
  233. * Wed Jan 17 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.10-0vl1
  234. - upstream release
  235. * Wed Nov 29 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.8-0vl1
  236. - upstream release
  237. - fix typo in %%changelog
  238. * Sat Jul 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3.6-0vl3
  239. - changed devel package's Group to Development/Libraries
  240. - changed tcl package's Group to System Environment/Libraries
  241. * Sun Jun 11 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.6-0vl2
  242. - upstream release
  243. * Sat Apr 8 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.5-0vl2
  244. - upstream release
  245. - change Group:
  246. * Wed Feb 15 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.4-0vl2
  247. - upstream release
  248. * Thu Feb 2 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.3.3-0vl2
  249. - upstream release
  250. * Fri Dec 23 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.8-0vl2
  251. - upstream release
  252. * Sun Sep 25 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.7-0vl2
  253. - upstream release
  254. * Tue Aug 30 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.5-0vl2
  255. - upstream release
  256. - drop Patch0 (merged in upstream source)
  257. * Thu Jun 16 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.2-0vl2
  258. - upstream release
  259. * Tue Apr 5 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.1-0vl2
  260. - 1st release for VineSeedPlus
  261. * Mon Apr 4 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.1-0vl1
  262. - upstream release
  263. * Fri Mar 25 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.2.0-0vl1
  264. - upstream release
  265. * Mon Mar 21 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1.6-0vl1
  266. - upstream release
  267. * Thu Mar 17 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1.5-0vl1
  268. - upstream release
  269. - modified Patch0 to fit upstream source
  270. * Mon Feb 28 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1.3-0vl1
  271. - upstream release
  272. * Wed Feb 16 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1.2-0vl0.2
  273. - add Requires: ncurses
  274. * Wed Feb 16 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1.2-0vl0.1
  275. - upstream release
  276. - add Patch0 to 'make doc' succeed
  277. - use 'DESTDIR make install' in place of %%makeinstall
  278. - add new package sqlite3-tcl
  279. * Wed Nov 3 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.0.8-0vl0.2
  280. - fixed Source URL
  281. * Fri Oct 22 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.0.8-0vl0.1
  282. - 1st release for Vine Linux 3.0
  283. - spec file from sqlite(-2.8.15) package
  284. - add BuildRequires: readline-devel
  285. - add Requires: readline
  286. - change configure and makeinstall using macros
  287. - add "rm -rf $RPM_BUILD_ROOT" in %%prep section