sqlite3-vl.spec 15 KB

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