rpms/itzam-core/F-8 itzam-core-2.1.1-itzam32.patch, NONE, 1.1 itzam-core.spec, NONE, 1.1 sources, 1.1, 1.2

Martin Nagy mnagy at fedoraproject.org
Fri Sep 12 07:58:20 UTC 2008


Author: mnagy

Update of /cvs/extras/rpms/itzam-core/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22414

Modified Files:
	sources 
Added Files:
	itzam-core-2.1.1-itzam32.patch itzam-core.spec 
Log Message:
* Sat Sep 06 2008 Martin Nagy <mnagy at redhat.com> 2.1.1-1
- initial packaging


itzam-core-2.1.1-itzam32.patch:

--- NEW FILE itzam-core-2.1.1-itzam32.patch ---
diff -up itzam-core-2.1.1/libitzam/itzam.h.itzam32 itzam-core-2.1.1/libitzam/itzam.h
--- itzam-core-2.1.1/libitzam/itzam.h.itzam32	2008-09-06 22:23:02.000000000 +0200
+++ itzam-core-2.1.1/libitzam/itzam.h	2008-09-06 22:24:58.000000000 +0200
@@ -67,6 +67,10 @@ typedef signed char      int8_t;
 #include <stdint.h>
 #endif
 
+#if __WORDSIZE == 32
+#define ITZAM32
+#endif
+
 //------------------------------------------------------------
 // enumerated types
 typedef enum
diff -up itzam-core-2.1.1/libitzam/itzam_btree.c.patch itzam-core-2.1.1/libitzam/itzam_btree.c
--- itzam-core-2.1.1/libitzam/itzam_btree.c.patch	2008-09-06 03:20:32.000000000 +0200
+++ itzam-core-2.1.1/libitzam/itzam_btree.c	2008-09-06 03:21:06.000000000 +0200
@@ -285,11 +285,7 @@ static itzam_btree_page * read_page_dire
 }
 
 // cen't be static because it's used by debug routines
-#if defined(_MSC_VER)
 itzam_btree_page * read_page(itzam_btree * btree, itzam_ref where)
-#else
-inline itzam_btree_page * read_page(itzam_btree * btree, itzam_ref where)
-#endif
 {
     // what we return
     itzam_btree_page * page = NULL;


--- NEW FILE itzam-core.spec ---
Name:		itzam-core
Version:	2.1.1
Release:	1%{?dist}
Summary:	Library for creating and manipulating keyed-access database files

Group:		System Environment/Libraries
License:	GPLv3+
URL:		http://www.coyotegulch.com/products/itzam/index.html
Source0:	http://www.coyotegulch.com/distfiles/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:		itzam-core-2.1.1-itzam32.patch

%description
Itzam/Core is a deliberately portable and concise C library for creating and
manipulating keyed-access database files containing variable-length, random
access records. Information is referenced by a user-defined key value;
indexes may be combined with or remain separate from data. 

%package	devel
Summary:	Development files for %{name}
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description	devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q
%patch0 -p1 -b .itzam32


%build
%configure --disable-static
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

cat LICENSE.NON-FREE | tr -d '\r' > LICENSE.NON-FREE.tmp
touch -r LICENSE.NON-FREE LICENSE.NON-FREE.tmp
mv LICENSE.NON-FREE.tmp LICENSE.NON-FREE


%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING LICENSE.GPL LICENSE.NON-FREE LICENSE.POLICY NEWS README
%{_libdir}/*.so.*
%{_bindir}/*

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so


%changelog
* Sat Sep 06 2008 Martin Nagy <mnagy at redhat.com> 2.1.1-1
- initial packaging


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/itzam-core/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Sep 2008 04:15:44 -0000	1.1
+++ sources	12 Sep 2008 07:57:49 -0000	1.2
@@ -0,0 +1 @@
+5477e3b3f10cc73b84870e5c5750baa1  itzam-core-2.1.1.tar.gz




More information about the fedora-extras-commits mailing list