diff --git a/homerpm.sh b/homerpm.sh new file mode 100755 index 0000000000..0812da6baf --- /dev/null +++ b/homerpm.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +echo "%HOME %{expand:%%(cd; pwd)}" > $HOME/.rpmmacros +echo "%_topdir %{HOME}/rpm" >> $HOME/.rpmmacros + +mkdir $HOME/rpm +mkdir $HOME/rpm/BUILD +mkdir $HOME/rpm/SOURCES +mkdir $HOME/rpm/RPMS +mkdir $HOME/rpm/SRPMS +mkdir $HOME/rpm/SPECS diff --git a/manifest b/manifest index 38dcec53c1..d4a805878c 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Two\stypos\sfixed\sin\sthe\sdocumentation\s(lang.html).\s(CVS\s502) -D 2002-03-28T14:20:08 +C these\sfiles\sare\sneeded\sby\spublish.sh\sto\sbuild\srpms\s(CVS\s503) +D 2002-03-29T01:28:45 F Makefile.in 50f1b3351df109b5774771350d8c1b8d3640130d F Makefile.template 89e373b2dad0321df00400fa968dc14b61a03296 F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0 @@ -13,10 +13,12 @@ F configure 9303d975dbd577fbe61e615045ddc02015b59fb5 x F configure.ac 38e2e5594cab99eb3a753b0614fcc36f4ddbbb48 F doc/lemon.html f0f682f50210928c07e562621c3b7e8ab912a538 F doc/report1.txt a031aaf37b185e4fa540223cb516d3bccec7eeac +F homerpm.sh d1adb74efdd1c0b04d5c521935c14616dff433f1 x F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895 F libtool c56e618713c9510a103bda6b95f3ea3900dcacd6 F ltmain.sh e9ed72eb1d690f447c13945eaf69e28af531eda1 F publish.sh 5b59f4aff037aafa0e4a3b6fa599495dbd73f360 +F spec.template 80255831b0c3c16c1cc2bb08dd15cb8800a04a64 F sqlite.1 2e2bb0529ef468ade9e4322bd609d0695fb9ded9 F src/TODO af7f3cab0228e34149cf98e073aa83d45878e7e6 F src/btree.c 7dd7ddc66459982dd0cb9800958c1f8d65a32d9f @@ -130,7 +132,7 @@ F www/speed.tcl da8afcc1d3ccc5696cfb388a68982bc3d9f7f00f F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279 F www/tclsqlite.tcl 829b393d1ab187fd7a5e978631b3429318885c49 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218 -P 2478ba866646d6d445b370554af9cd3d362b0e10 -R 5c3e675adc2271b5ac7cfe741aef903e -U drh -Z 15765735138d1aadde01b440f7a931b7 +P f0f241e1cc322ebed8f215b4b8ddcc0f5ee2ff65 +R e42a8611d63b890b9abac357bed09c9e +U doughenry +Z 2eb2b3d8e1e1a882de81fbe07d1d5959 diff --git a/manifest.uuid b/manifest.uuid index 777f83599a..b7921a4b8c 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -f0f241e1cc322ebed8f215b4b8ddcc0f5ee2ff65 \ No newline at end of file +3c25359376814e9c3912246d79528614a3499e5b \ No newline at end of file diff --git a/spec.template b/spec.template new file mode 100644 index 0000000000..776d56f302 --- /dev/null +++ b/spec.template @@ -0,0 +1,62 @@ +%define name sqlite +%define version SQLITE_VERSION +%define release 1 + +Name: %{name} +Summary: SQLite is a C library that implements an embeddable SQL database engine +Version: %{version} +Release: %{release} +Source: %{name}-%{version}.tar.gz +Group: System/Libraries +URL: http://www.hwaci.com/sw/sqlite/ +License: Public Domain +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SQLite is a C library that implements an embeddable SQL database engine. +Programs that link with the SQLite library can have SQL database access +without running a separate RDBMS process. The distribution comes with a +standalone command-line access program (sqlite) that can be used to +administer an SQLite database and which serves as an example of how to +use the SQLite library. + +%package -n %{name}-devel +Summary: Header files and libraries for developing apps which will use sqlite +Group: Development/C +Requires: %{name} = %{version}-%{release} + +%description -n %{name}-devel +The sqlite-devel package contains the header files and libraries needed +to develop programs that use the sqlite database library. + +%prep +%setup -q -n %{name} + +%build +CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix} + +%make +make +make doc + +%install +install -d $RPM_BUILD_ROOT/%{_prefix} +install -d $RPM_BUILD_ROOT/%{_prefix}/bin +install -d $RPM_BUILD_ROOT/%{_prefix}/include +install -d $RPM_BUILD_ROOT/%{_prefix}/lib +make install prefix=$RPM_BUILD_ROOT/%{_prefix} + +%clean +rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%{_libdir}/*.so* +%{_bindir}/* + +%files -n %{name}-devel +%defattr(-, root, root) +%{_libdir}/*.a +%{_libdir}/*.la +%{_includedir}/* +%doc doc/*