improve packaging 45/10245/1
authorAnas Nashif <anas.nashif@intel.com>
Wed, 25 Sep 2013 03:59:26 +0000 (23:59 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 25 Sep 2013 03:59:32 +0000 (23:59 -0400)
- fixed package group
- cleanup spec
- remove debian/
- remove exec flag from source files

Change-Id: I4fe5f02e68a0d3f3e2ea27eca72129f970184879
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
12 files changed:
AUTHORS [changed mode: 0755->0644]
CMakeLists.txt [changed mode: 0755->0644]
app2sd.pc.in [changed mode: 0755->0644]
debian/app2sd-dev.install.in [deleted file]
debian/app2sd.install.in [deleted file]
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/copyright [deleted file]
debian/dirs [deleted file]
debian/rules [deleted file]
packaging/app2sd.spec

diff --git a/AUTHORS b/AUTHORS
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/debian/app2sd-dev.install.in b/debian/app2sd-dev.install.in
deleted file mode 100644 (file)
index 258b9f0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@PREFIX@/include/app2sd_interface.h
-@PREFIX@/lib/pkgconfig/*.pc
diff --git a/debian/app2sd.install.in b/debian/app2sd.install.in
deleted file mode 100644 (file)
index bf766f0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@PREFIX@/lib/*.so*
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100755 (executable)
index 0d77b89..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-app2sd (0.2.1) unstable; urgency=low
-
-  * Initial release
-  * Git: slp/pkgs/a/app2sd
-  * Tag: app2sd_0.2.1
-
- -- Jaeho Lee <jaeho81.lee@samsung.com>  Thu, 24 May 2012 12:04:51 +0530
-
diff --git a/debian/compat b/debian/compat
deleted file mode 100755 (executable)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100755 (executable)
index 7bf93c6..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-Source: app2sd
-Section: devel
-Priority: extra
-Maintainer: Garima Shrivastava <garima.s@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
-Build-Depends: debhelper (>= 5),libssl-dev, libslp-setting-dev, libslp-db-util-dev
-Standards-Version: 3.7.2
-
-Package: app2sd
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <App2sd is a utility for enabling installation of applications to sd card and also to move to and from sd card.>
-
-Package: app2sd-dev
-Architecture: any
-Depends: app2sd (= ${Source-Version})
-Description: App2sd dev package
-
-Package: app2sd-doc
-Architecture: all
-Description: <App2sd is a utility for enabling installation of applications to sd card and also to move to and from sd card.>
-
-Package: app2sd-dbg
-Section: debug
-Architecture: any
-Depends: app2sd (= ${Source-Version})
-Description: App2sd dbg package
-
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100755 (executable)
index 37b94ac..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100755 (executable)
index ca882bb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/rules b/debian/rules
deleted file mode 100755 (executable)
index f902937..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS)
-
-CFLAGS ?= -Wall -g
-LDFLAGS ?=
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-
-# architecture is not arm
-ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
-       # do something here
-else
-       # do something here for arm
-endif
-
-CFLAGS += -fvisibility=hidden -fPIC
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
-
-CMAKE_TMP_DIR = $(CURDIR)/cmake_tmp
-
-config.status:
-
-configure: configure-stamp
-
-configure-stamp:
-       dh_testdir
-       mkdir -p $(CMAKE_TMP_DIR);
-       export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(CMAKE_TMP_DIR) && cd $(CMAKE_TMP_DIR); CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-       touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
-       dh_testdir
-       # Add here commands to compile the package.
-       cd $(CMAKE_TMP_DIR) && $(MAKE) all
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               cat $$f > $${f%.in}; \
-               sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
-               sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
-       done
-
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f *-stamp
-
-       rm -rf $(CMAKE_TMP_DIR)
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               rm -f $${f%.in}; \
-       done
-
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-       # Add here commands to install the package into debian/ncurses.
-       cd $(CMAKE_TMP_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-#      dh_installdocs
-       dh_installexamples
-       dh_install --list-missing --sourcedir=debian/tmp
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip --dbg-package=app2sd-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
index 980adc6..5871fd7 100755 (executable)
@@ -1,26 +1,26 @@
-Name:       app2sd
-Summary:    Application installation on external memory
-Version:    0.5.22
-Release:    1
-Group:      Application Framework/Application Installer
-License:    Apache-2.0
-Source0:    %{name}-%{version}.tar.gz
-Source1001: app2sd.manifest
+Name:           app2sd
+Version:        0.5.22
+Release:        1
+License:        Apache-2.0
+Summary:        Application installation on external memory
+Group:          Application Framework/Package Management
+Source0:        %{name}-%{version}.tar.gz
+Source1001:     app2sd.manifest
 
-BuildRequires:  pkgconfig(libssl)
-BuildRequires:  pkgconfig(vconf)
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(db-util)
 BuildRequires:  pkgconfig(dlog)
+BuildRequires:  pkgconfig(libssl)
 BuildRequires:  pkgconfig(openssl)
-BuildRequires:  pkgconfig(db-util)
 BuildRequires:  pkgconfig(pkgmgr-info)
-BuildRequires:  cmake
+BuildRequires:  pkgconfig(vconf)
 
 %description
 Tizen application installation on external memory
 
 %package devel
-Summary:    Application install on external memory (devel)
-Requires:   app2sd = %{version}-%{release}
+Summary:        Application install on external memory (devel)
+Requires:       app2sd = %{version}-%{release}
 
 %description devel
 Tizen application installation on external memory (devel)
@@ -31,8 +31,7 @@ cp %{SOURCE1001} .
 
 %build
 %cmake .
-
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
 
 %install
 %make_install