Created
February 22, 2016 13:10
-
-
Save paulohrpinheiro/5c241358f9b980800a9d to your computer and use it in GitHub Desktop.
Fedora rpm spec for unqlite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DESTDIR=/usr/local | |
LIBDIR=$(DESTDIR)/lib | |
INCLUDEDIR=$(DESTDIR)/lib | |
CFLAGS= | |
LIBVERSION=0.1 | |
LIBNAME=libunqlite.so.$(LIBVERSION) | |
SOLIB=-shared -Wl,--build-id,-soname,$(LIBNAME) -o $(LIBNAME) | |
$(LIBNAME): unqlite.c | |
$(CC) $(CFLAGS) $(SOLIB) -c $^ -o $@ | |
install: $(LIBNAME) | |
test -d $(DESTDIR) || mkdir -p $(DESTDIR) | |
test -d $(INCLUDEDIR) || mkdir -p $(INCLUDEDIR) | |
test -d $(LIBDIR)/lib || mkdir -p $(LIBDIR) | |
install -m 0644 unqlite.h $(INCLUDEDIR) | |
install -m 0755 $(LIBNAME) $(LIBDIR) | |
.PHONY: clean all | |
clean: | |
rm -f $(LIBNAME) | |
all: clean install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: unqlite | |
Version: 1.1.6 | |
Release: 1%{?dist} | |
Summary: UnQLite is a in-process Key/Value database engine | |
License: BSD | |
URL: http://unqlite.org/ | |
Source0: http://unqlite.org/db/unqlite-db-116.zip | |
Source1: Makefile | |
BuildRequires: gcc | |
%description | |
UnQLite is an embedded NoSQL (Key/Value store and Document-store) database | |
engine. Unlike most other NoSQL databases, UnQLite does not have a separate | |
server process. UnQLite reads and writes directly to ordinary disk files. A | |
complete database with multiple collections, is contained in a single disk | |
file. The database file format is cross-platform, you can freely copy a | |
database between 32-bit and 64-bit systems or between big-endian and | |
little-endian architectures. | |
%package devel | |
Summary: Header C files for development with this package | |
%description devel | |
s package contains libraries and header files used to build applications | |
with UnQlite. | |
%prep | |
%setup -q -c | |
install -m 0644 %{SOURCE1} %{_builddir}/%{name}-%{version} | |
%post -p /sbin/ldconfig | |
%postun -p /sbin/ldconfig | |
%build | |
make %{?_smp_mflags} CFLAGS="%{optflags}" | |
%install | |
%make_install LIBDIR=%{buildroot}/%{_libdir} INCLUDEDIR=%{buildroot}/%{_includedir} | |
%files | |
%{_libdir}/libunqlite.so.0.1 | |
%files devel | |
%{_includedir}/unqlite.h | |
%changelog | |
* Mon Feb 22 2016 Paulo Henrique Rodrigues Pinheiro <paulo@sysincloud.it> | |
- Initial version of the package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment