pmwkaa/sophia — pull request #59 by ivachkov (2014-12-01 15:25:07+00:00)
Title: Code to create .deb package using 'debuild -i -b -us -uc' 

The following changes contain minimal necessary set of modifications to create debian package for libsophia.

Create the package with: debuild -i -b -us -uc

Install with: sudo dpkg -i libsophia_1.1-rc1_amd64.deb

Test applications build and execute successfully against the packaged version:

ubuntu@ip-10-0-1-136:~/sophia/test$ cc -o common common.c -lsophia -lpthread
ubuntu@ip-10-0-1-136:~/sophia/test$ ./common
env: ok
env_opts: ok
open_ro_creat: ok
open_rdwr: ok
open_rdwr_creat: ok
open_reopen: ok
open_reopen_ro: ok
set: ok
set_get: ok
set_get_zerovalue: ok
replace: ok
replace_get: ok
set_delete: ok
set_delete_get: ok
set_delete_set_get: ok
delete: ok
delete_set_get: ok
cursor: ok
cursor_set: ok
fetch_gte_empty: ok
fetch_gt_empty: ok
fetch_lte_empty: ok
fetch_lt_empty: ok
fetch_kgte_empty: ok
fetch_kgt_empty: ok
fetch_klte_empty: ok
fetch_klt_empty: ok
fetch_gte: ok
fetch_gt: ok
fetch_lte: ok
fetch_lt: ok
fetch_kgte: ok
fetch_kgt: ok
fetch_klte: ok
fetch_klt: ok
fetch_after_end: ok
fetch_kgte_random: ok
fetch_kgte_random_merge: ok
fetch_kgte_random_merge_rev: ok
fetch_klte_random: ok
fetch_klte_random_merge: ok
fetch_klte_random_merge_rev: ok
fetch_kgt_random_merge: ok
fetch_kgt_random_merge_rev: ok
fetch_klt_random_merge: ok
fetch_klt_random_merge_rev: ok
ubuntu@ip-10-0-1-136:~/sophia/test$

Tested on Ubuntu 14.04 LTS.