Modify Makefile to build, moved it to root of project and added packaging directory. 33/2733/1
authorRyan Ware <ware@linux.intel.com>
Mon, 11 Feb 2013 21:35:21 +0000 (13:35 -0800)
committerRyan Ware <ware@linux.intel.com>
Mon, 11 Feb 2013 21:35:21 +0000 (13:35 -0800)
Change-Id: I5876fd0cb474c1170df67a31349322e3e2ae49e9

Makefile [moved from framework/Makefile with 96% similarity]
packaging/csr-framework.spec [new file with mode: 0644]

similarity index 96%
rename from framework/Makefile
rename to Makefile
index 03e6717..fe7b8e3 100644 (file)
+++ 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 (file)
index 0000000..9b54d2f
--- /dev/null
@@ -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
+
+
+