Changes of Revision 5
[-] | Added | sqlite2.spec |
x 1
2 +%define __arch_install_post /bin/true 3 + 4 + 5 +Name: sqlite2 6 +Version: 2.8.17 7 +Release: 3%{?dist} 8 + 9 +Summary: Embeddable SQL engine in a C library 10 +Group: System Environment/Libraries 11 +License: Public Domain 12 +URL: http://www.sqlite.org/ 13 +Source0: http://www.sqlite.org/sqlite-%{version}.tar.gz 14 +Patch1: sqlite-2.8.15.rpath.patch 15 +Patch2: sqlite-2.8.15-makefile.patch 16 +Patch3: sqlite-2.8.3.test.rh9.patch 17 +Patch4: sqlite-64bit-fixes.patch 18 +Patch5: sqlite-2.8.15-arch-double-differences.patch 19 + 20 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 21 +BuildRequires: ncurses-devel readline-devel %{_includedir}/tcl.h 22 +Obsoletes: sqlite < 3 23 + 24 +%description 25 +SQLite is a small, fast, embeddable SQL database engine that supports 26 +most of SQL92, including transactions with atomic commit and rollback, 27 +subqueries, compound queries, triggers, and views. A complete database 28 +is stored in a single cross-platform disk file. The native C/C++ API 29 +is simple and easy to use. Bindings for other languages are also 30 +available. 31 + 32 +%package devel 33 +Summary: Development files for SQLite 34 +Group: Development/Libraries 35 +Requires: %{name} = %{version}-%{release} 36 +Requires: pkgconfig 37 +Obsoletes: sqlite-devel < 3 38 + 39 +%description devel 40 +SQLite is a small, fast, embeddable SQL database engine that supports 41 +most of SQL92, including transactions with atomic commit and rollback, 42 +subqueries, compound queries, triggers, and views. 43 +This package contains static library and header files for developing 44 +applications using sqlite. 45 + 46 +%package tcl 47 +Summary: Tcl bindings for sqlite 48 +Group: System Environment/Libraries 49 +Requires: tcl >= 8.3.3, %{name} = %{version}-%{release} 50 +Obsoletes: sqlite-tcl < 3 51 + 52 +%description tcl 53 +SQLite is a small, fast, embeddable SQL database engine that supports 54 +most of SQL92, including transactions with atomic commit and rollback, 55 +subqueries, compound queries, triggers, and views. 56 +This package contains tcl bindings for sqlite. 57 + 58 +%prep 59 +%setup -q -n sqlite-%{version} 60 +%patch1 -p1 -b .rpath 61 +%patch2 -p1 62 +%patch3 -p1 63 +%patch4 -p1 64 +%patch5 -p1 65 +sed -i.rpath 's!__VERSION__!%{version}!g' Makefile.in 66 +# Patch additional /usr/lib locations where we don't have $(libdir) 67 +# to substitute with. 68 +sed -i.lib 's!@exec_prefix@/lib!%{_libdir}!g' Makefile.in 69 + 70 +%build 71 +CFLAGS="$RPM_OPT_FLAGS -DNDEBUG=1" 72 +%configure --enable-utf8 --disable-static 73 +make 74 +make tclsqlite libtclsqlite.la doc 75 +#obs. make test doesn't like root 76 +%if %{fedora} < 9 77 +make test 78 +%endif 79 + 80 +%install 81 +rm -rf $RPM_BUILD_ROOT 82 +DIRECTORY=$RPM_BUILD_ROOT%{_libdir}/sqlite-%version 83 +install -d $DIRECTORY 84 +echo 'package ifneeded sqlite 2 [list load [file join $dir libtclsqlite.so]]' > $DIRECTORY/pkgIndex.tcl 85 + 86 +%makeinstall 87 +install -D -m 0644 sqlite.1 $RPM_BUILD_ROOT%{_mandir}/man1/sqlite.1 88 + 89 +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' 90 + 91 +%clean 92 +rm -rf $RPM_BUILD_ROOT 93 + 94 +%post -p /sbin/ldconfig 95 +%postun -p /sbin/ldconfig 96 + 97 +%files 98 +%defattr(-,root,root,-) 99 +%{_bindir}/sql* 100 +%{_libdir}/libsql*.so.* 101 +%{_mandir}/man1/* 102 + 103 +%files devel 104 +%defattr(-,root,root,-) 105 +%doc README doc/* 106 +%{_libdir}/libsql*.so 107 +%{_includedir}/* 108 +%{_libdir}/pkgconfig/* 109 + 110 +%files tcl 111 +%defattr(-,root,root,-) 112 +%doc doc/tclsqlite.html 113 +%exclude %{_bindir}/tclsqlite 114 +%{_libdir}/sqlite-%version 115 + 116 +%changelog 117 +* Sat Apr 19 2008 Remi Collet <rpms@famillecollet.com> 2.8.17-3.fc9.remi 118 +- rebuild for F9 without "make test" :'( 119 + 120 +* Fri Nov 09 2007 Remi Collet <rpms@famillecollet.com> 2.8.17-2.fc8.remi 121 +- rebuild for F8 122 + 123 +* Sat May 26 2007 Remi Collet <rpms@famillecollet.com> 2.8.17-2.el{4,5}.remi 124 +- rebuild for EL4 & EL5 125 + 126 +* Sun Sep 10 2006 Mike McGrath <imlinux@gmail.com> 2.8.17-2 127 +- New upstream source 128 + 129 +* Tue Feb 28 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.8.16-3 130 +- Rebuild for Fedora Extras 5 131 + 132 +* Sat Nov 26 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.8.16-2 133 +- Disable static libs 134 + 135 +* Fri May 20 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.8.16-1 136 +- Name change to sqlite2 137 +- Dropped Epoch 138 +- Added Obsoletes to all subpackages 139 +- Minor cosmetic changes 140 + 141 +* Wed Feb 16 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:2.8.16-1 142 +- Update to 2.8.16 bug-fix release + update patches. 143 + 144 +* Tue Feb 15 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.8.15-2 145 +- add sqlite-64bit-fixes.patch and sqlite-2.8.15-arch-double-differences.patch 146 + fixes x86_64; Both were found in a mandrake srpm 147 +- remove exclusive arch ix86; hopefully this fixes ppc also 148 + 149 +* Sun Jan 23 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:2.8.15-1 150 +- Add exclusive arch ix86 for now (make test segfaults on x86_64). 151 +- Update makefile patch, $(exec_prefix)/lib -> $(libdir), and 152 + substitute additional /usr/lib locations in %%prep for multilib 153 + people to play with. 154 + 155 +* Sun Sep 26 2004 Adrian Reber <adrian@lisas.de> - 0:2.8.15-0.fdr.1 156 +- Update to 2.8.15 157 +- Update patches 158 + 159 +* Fri Jun 19 2004 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.14-0.fdr.1 160 +- Update to 2.8.14 161 +- Update patches 162 +- --enable-releasemode 163 +- small spec file tweaks 164 + 165 +* Sat Dec 27 2003 Jean-Luc Fontaine <jfontain@free.fr> - 0:2.8.6-0.fdr.6 166 +- in tcl rpm, removed tclsqlite, moved shared library in own sqlite 167 + sub-directory add added pkgIndex.tcl file to make package dynamically 168 + loadable in a Tcl interpreter 169 +- in build requirements, work around tcl-devel and tk-devel packages non 170 + existence in RH 8.0 and 9 171 +- in tcl rpm, added tcl package requirement 172 +- in tcl rpm, post ldconfig is not necessary 173 + 174 +* Wed Nov 12 2003 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.6-0.fdr.5 175 +- BuildRequires tcl-devel 176 +- small .spec tweaks 177 + 178 +* Tue Oct 28 2003 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.6-0.fdr.4 179 +- exclude libtclsqlite.a 180 + 181 +* Mon Oct 27 2003 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.6-0.fdr.3 182 +- Fix readme -> README 183 + 184 +* Mon Oct 27 2003 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.6-0.fdr.2 185 +- Better summary/description 186 +- Add patch for not using rpath 187 +- Add patch that builds tclsqlite (From Anvil's package) 188 +- Add patch that fixes the tests (From Anvil's package) 189 +- New tcl subpackage 190 +- Also make the tests during build 191 +- Build docs, and include them in -devel 192 + 193 +* Fri Oct 10 2003 Nils O. Selåsdal <NOS@Utel.no> - 0:2.8.6-0.fdr.1 194 +- Initial RPM release. 195 |
||
[+] | Added | sqlite-2.8.15-arch-double-differences.patch ^ |
@@ -0,0 +1,22 @@ +--- sqlite/test/format3.test.bak 2003-12-23 03:17:35.000000000 +0100 ++++ sqlite/test/format3.test 2005-01-28 18:06:35.066538463 +0100 +@@ -686,7 +686,7 @@ + execsql {SELECT '0'==0.0} + } {1} + do_test format3-11.3 { +- execsql {SELECT '123456789012345678901'=='123456789012345678900'} ++ execsql {SELECT '1234567890123456789012'=='1234567890123456789011'} + } {1} + do_test format3-11.4 { + execsql { +--- sqlite/test/misc1.test.bak 2003-08-05 15:13:39.000000000 +0200 ++++ sqlite/test/misc1.test 2005-01-28 18:07:26.976971054 +0100 +@@ -335,7 +335,7 @@ + execsql {SELECT '0'==0.0} + } {1} + do_test misc1-12.3 { +- execsql {SELECT '12345678901234567890'=='12345678901234567891'} ++ execsql {SELECT '1234567890123456789012'=='1234567890123456789011'} + } {0} + do_test misc1-12.4 { + execsql { | ||
[+] | Added | sqlite-2.8.15-makefile.patch ^ |
@@ -0,0 +1,24 @@ +diff -Nur sqlite-2.8.15-orig/Makefile.in sqlite-2.8.15/Makefile.in +--- sqlite-2.8.15-orig/Makefile.in 2004-03-27 00:16:32.000000000 +0100 ++++ sqlite-2.8.15/Makefile.in 2005-01-23 18:20:37.034194768 +0100 +@@ -465,14 +465,16 @@ + mv $(DOC) doc + + install: sqlite libsqlite.la sqlite.h +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib +- $(LTINSTALL) libsqlite.la $(DESTDIR)$(exec_prefix)/lib ++ $(INSTALL) -d $(DESTDIR)$(libdir) ++ $(LTINSTALL) libsqlite.la $(DESTDIR)$(libdir) ++ $(LTINSTALL) libtclsqlite.la $(DESTDIR)$(libdir)/sqlite-__VERSION__ + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin + $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin ++ $(LTINSTALL) tclsqlite $(DESTDIR)$(exec_prefix)/bin + $(INSTALL) -d $(DESTDIR)$(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(DESTDIR)$(prefix)/include +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig; +- $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig; ++ $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig; ++ $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(libdir)/pkgconfig; + + clean: + rm -f *.lo *.la *.o sqlite@TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes.* | ||
[+] | Added | sqlite-2.8.15.rpath.patch ^ |
@@ -0,0 +1,11 @@ +--- sqlite/Makefile.in.nos 2004-06-18 14:13:40.127066236 +0200 ++++ sqlite/Makefile.in 2004-06-18 14:13:56.241098295 +0200 +@@ -192,7 +192,7 @@ + + libtclsqlite.la: tclsqlite.lo libsqlite.la + $(LTLINK) -o libtclsqlite.la tclsqlite.lo \ +- libsqlite.la $(LIBTCL) -rpath @exec_prefix@/lib/sqlite \ ++ libsqlite.la $(LIBTCL) -rpath @exec_prefix@/lib/sqlite-__VERSION__ \ + -version-info "8:6:8" + + sqlite@TARGET_EXEEXT@: $(TOP)/src/shell.c libsqlite.la sqlite.h | ||
[+] | Added | sqlite-2.8.3.test.rh9.patch ^ |
@@ -0,0 +1,16 @@ +diff -Naur sqlite-orig/test/tester.tcl sqlite/test/tester.tcl +--- sqlite-orig/test/tester.tcl 2003-03-01 20:45:35.000000000 +0100 ++++ sqlite/test/tester.tcl 2003-06-28 02:14:03.000000000 +0200 +@@ -43,8 +43,10 @@ + # Create a test database + # + catch {db close} +-file delete -force test.db +-file delete -force test.db-journal ++#file delete -force test.db ++#file delete -force test.db-journal ++exec rm -fr test.db ++exec rm -fr test.db-journal + sqlite db ./test.db + if {[info exists ::SETUP_SQL]} { + db eval $::SETUP_SQL | ||
Added | sqlite-2.8.17.tar.gz ^ |