From f562cbb14409add33903ebcfcbb4fd62d11845bb Mon Sep 17 00:00:00 2001 From: Ryan Ware Date: Mon, 11 Feb 2013 13:35:21 -0800 Subject: [PATCH] Modify Makefile to build, moved it to root of project and added packaging directory. Change-Id: I5876fd0cb474c1170df67a31349322e3e2ae49e9 --- framework/Makefile => Makefile | 4 ++-- packaging/csr-framework.spec | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) rename framework/Makefile => Makefile (96%) create mode 100644 packaging/csr-framework.spec diff --git a/framework/Makefile b/Makefile similarity index 96% rename from framework/Makefile rename to Makefile index 03e6717..fe7b8e3 100644 --- a/framework/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ OUTDIR = lib TARGET = $(OUTDIR)/libsecfw.so -SRCDIR = . +SRCDIR = framework INCLUDE = -I. $(TCS_INC) -I../plugin LD_FLAGS := $(LD_FLAGS) -ldl @@ -75,7 +75,7 @@ all: $(OUTDIR) .depend $(TARGET) $(MKDEP) $(CFLAGS) $(SOURCES) $(TARGET): $(OBJECTS) - $(LD) -shared -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) + $(LD) -shared,-Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) # $(AR) -cr $(TARGET) $(OBJECTS) diff --git a/packaging/csr-framework.spec b/packaging/csr-framework.spec new file mode 100644 index 0000000..9b54d2f --- /dev/null +++ b/packaging/csr-framework.spec @@ -0,0 +1,36 @@ +Summary: A general purpose content screening and reputation solution +Name: csr-framework +Version: 1.0.0 +Release: 1 + +Source: %{name}-%{version}.tar.gz + +License: BSD +Group: System/Libraries +URL: http://tizen.org +BuildRequires: pmake + +%description + + +%prep +%setup -q + +%build + +make all + +%install +rm -rf %{buildroot} + +install -D lib/libsecfw.so %{buildroot}/%{_libdir}/ + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%{_libdir}/libsecfw.so + + + -- 2.7.4