sqlite3-vl.spec 14 KB

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