sqlite3-vl.spec 14 KB

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