add manifest file for smack security 79/27879/2
authorRonan Le Martret <ronan@fridu.net>
Mon, 22 Sep 2014 11:17:16 +0000 (13:17 +0200)
committerronan(Eurogiciel) Le Martret <ronan.lemartret@open.eurogiciel.org>
Wed, 3 Dec 2014 15:21:07 +0000 (07:21 -0800)
 - clean the spec file.

Change-Id: I7fe0504bbfd372921e1715f96dcdc00e1e94a4b0
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/genivi-audio-manager.manifest [new file with mode: 0644]
packaging/genivi-audio-manager.spec

diff --git a/packaging/genivi-audio-manager.manifest b/packaging/genivi-audio-manager.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
index f847453..bb6a4ce 100644 (file)
@@ -5,20 +5,21 @@ Summary:          GENIVI Audio Manager
 Version:          6.0
 Release:          0
 Source:           %{name}-%{version}.tar.bz2
+Source1001:       genivi-audio-manager.manifest
 BuildRequires:    cmake
-BuildRequires:   pkgconfig(libsystemd-journal)
-BuildRequires:   pkgconfig(python)
-BuildRequires:   pkgconfig(sqlite3)
-BuildRequires:   pkgconfig(dbus-1)
-BuildRequires:   pkgconfig(automotive-dlt)
-BuildRequires:   pkgconfig(zlib)
+BuildRequires:    pkgconfig(libsystemd-journal)
+BuildRequires:    pkgconfig(python)
+BuildRequires:    pkgconfig(sqlite3)
+BuildRequires:    pkgconfig(dbus-1)
+BuildRequires:    pkgconfig(automotive-dlt)
+BuildRequires:    pkgconfig(zlib)
 BuildRequires:    pkgconfig(CommonAPI)
 BuildRequires:    pkgconfig(CommonAPI-DBus)
-BuildRequires:   pkgconfig(murphy-common)
+BuildRequires:    pkgconfig(murphy-common)
 BuildRequires:    pkgconfig(murphy-domain-controller)
 BuildRequires:    pkgconfig(murphy-dbus-libdbus)
-BuildRequires:   bison
-BuildRequires:   flex
+BuildRequires:    bison
+BuildRequires:    flex
 Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
@@ -31,28 +32,41 @@ Group:      Development/Libraries
 Requires:   %{name} = %{version}-%{release}
 
 %description devel
-%{summary}. This package provides headers for developing AudioManager plugins and applications.
+"%{summary}.
+This package provides headers for developing AudioManager plugins 
+and applications."
 
 %prep
 %setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
 
 %build
 mkdir -p build
 cd build
 
-%cmake -DUSE_BUILD_LIBS=OFF -DWITH_TESTS=OFF -DWITH_ENABLED_IPC=DBUS -DWITH_DBUS_WRAPPER=ON -DWITH_NSM=OFF -DWITH_DLT=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
+%cmake -DUSE_BUILD_LIBS=OFF \
+       -DWITH_TESTS=OFF \
+       -DWITH_ENABLED_IPC=DBUS \
+       -DWITH_DBUS_WRAPPER=ON \
+       -DWITH_NSM=OFF \
+       -DWITH_DLT=OFF \
+       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+       ..
 #make VERBOSE=1
 %__make %{?_smp_mflags}
 
 %install
-rm -rf "$RPM_BUILD_ROOT"
+rm -rf "%{buildroot}"
 cd build
-%make_install DESTDIR=$RPM_BUILD_ROOT
-mkdir $RPM_BUILD_ROOT%{_includedir}/%{name}
-mv $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_includedir}/command $RPM_BUILD_ROOT%{_includedir}/control $RPM_BUILD_ROOT%{_includedir}/routing $RPM_BUILD_ROOT%{_includedir}/shared $RPM_BUILD_ROOT%{_includedir}/%{name}
-rm $RPM_BUILD_ROOT%{_libdir}/audioManager/routing/libPluginRoutingInterfaceAsync.so*
+%make_install
+mkdir -p %{buildroot}%{_includedir}/%{name}
+for cpath in *.h command control routing shared; do
+    mv %{buildroot}%{_includedir}/${cpath} %{buildroot}%{_includedir}/%{name}
+done
+rm %{buildroot}%{_libdir}/audioManager/routing/libPluginRoutingInterfaceAsync.so*
 
 %files
+%manifest %{name}.manifest
 %doc LICENCE README.html
 %{_bindir}/AudioManager
 %{_bindir}/domain-manager
@@ -64,4 +78,5 @@ rm $RPM_BUILD_ROOT%{_libdir}/audioManager/routing/libPluginRoutingInterfaceAsync
 %{_datadir}/audiomanager/*xml
 
 %files devel
+%manifest %{name}.manifest
 %{_includedir}/%{name}/*