added manifest files and fixed spec files
authorImran Zaman <imran.zaman@intel.com>
Mon, 16 Dec 2013 09:14:05 +0000 (11:14 +0200)
committerImran Zaman <imran.zaman@intel.com>
Mon, 16 Dec 2013 09:14:05 +0000 (11:14 +0200)
dists/rpm/gum-suse.spec
dists/rpm/tizen/packaging/gum-tizen.changes [moved from dists/rpm/gum-tizen.changes with 100% similarity]
dists/rpm/tizen/packaging/gum-tizen.spec [moved from dists/rpm/gum-tizen.spec with 79% similarity]
dists/rpm/tizen/packaging/gumd.manifest [new file with mode: 0644]
dists/rpm/tizen/packaging/libgum-common.manifest [new file with mode: 0644]
dists/rpm/tizen/packaging/libgum.manifest [new file with mode: 0644]
packaging [new symlink]
packaging/gum-tizen.changes [deleted symlink]
packaging/gum-tizen.spec [deleted symlink]

index a6c4c28..48cf982 100644 (file)
@@ -130,18 +130,25 @@ groupadd -f -r gumd
 %{_libdir}/lib%{name}-common*.so
 %{_libdir}/lib%{name}-common*.la
 %{_libdir}/pkgconfig/lib%{name}-common.pc
+%config(noreplace) %{_sysconfdir}/gum.conf
 %if %{dbus_type} != "p2p"
 %{_datadir}/dbus-1/interfaces/*UserManagement*.xml
 %endif
-%config(noreplace) %{_sysconfdir}/gum.conf
 
 
 %files -n %{name}d
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING.LIB INSTALL NEWS README
 %{_bindir}/%{name}d
-%if %{dbus_type} != "p2p"
+%if %{dbus_type} == "session"
+%dir %{_datadir}/dbus-1/services
 %{_datadir}/dbus-1/services/*UserManagement*.service
+%else if %{dbus_type} == "system"
+%dir %{_datadir}/dbus-1/system-services
+%{_datadir}/dbus-1/system-services/*UserManagement*.service
+%dir %{_sysconfdir}/dbus-1
+%dir %{_sysconfdir}/dbus-1/system.d
+%config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
 %endif
 
 %files -n %{name}d-devel
@@ -162,6 +169,7 @@ groupadd -f -r gumd
 %{_libdir}/pkgconfig/lib%{name}.pc
 %{_bindir}/%{name}-example
 
+
 %changelog
 * Mon Sep 02 2013 Imran Zaman <imran.zaman@intel.com>
 - Initial RPM packaging
similarity index 79%
rename from dists/rpm/gum-tizen.spec
rename to dists/rpm/tizen/packaging/gum-tizen.spec
index 63a5f8a..80046ed 100644 (file)
@@ -11,6 +11,9 @@ Release: 1
 Group: System/Libraries
 License: LGPL-2.1+
 Source: %{name}-%{version}.tar.gz
+Source1001:     %{name}d.manifest
+Source1002:     lib%{name}.manifest
+Source1002:     lib%{name}-common.manifest
 %if %{dbus_type} != "p2p"
 Requires: dbus-1
 %endif
@@ -90,41 +93,40 @@ Requires:   lib%{name}-common-devel = %{version}-%{release}
 %description -n lib%{name}-devel
 %{summary}.
 
+
 %prep
 %setup -q -n %{name}-%{version}
-if [ -f = "gtk-doc.make" ]
-then
-rm gtk-doc.make
-fi
-touch gtk-doc.make
-autoreconf -f -i
+
 
 %build
 %if %{debug_build} == 1
-%configure --enable-dbus-type=%{dbus_type} --enable-debug
+%autogen --enable-dbus-type=%{dbus_type} %{_enable_debug}
 %else
-%configure --enable-dbus-type=%{dbus_type}
+%autogen --enable-dbus-type=%{dbus_type}
 %endif
 
-
 make %{?_smp_mflags}
 
 
 %install
 rm -rf %{buildroot}
 %make_install
-
+cp -a %{SOURCE1001} %{buildroot}%{_datadir}/%{name}d.manifest
+cp -a %{SOURCE1002} %{buildroot}%{_datadir}/lib%{name}.manifest
+cp -a %{SOURCE1003} %{buildroot}%{_datadir}/lib%{name}-common.manifest
 
 %post
 /sbin/ldconfig
 chmod u+s %{_bindir}/%{name}d
 getent group gumd > /dev/null || /usr/sbin/groupadd -r gumd
 
+
 %postun -p /sbin/ldconfig
 
 
 %files -n lib%{name}-common
 %defattr(-,root,root,-)
+%manifest %{_datadir}/lib%{name}-common.manifest
 %{_libdir}/lib%{name}-common*.so.*
 
 
@@ -133,18 +135,26 @@ getent group gumd > /dev/null || /usr/sbin/groupadd -r gumd
 %{_includedir}/%{name}/common/*
 %{_libdir}/lib%{name}-common*.so
 %{_libdir}/pkgconfig/lib%{name}-common.pc
+%config(noreplace) %{_sysconfdir}/gum.conf
 %if %{dbus_type} != "p2p"
 %{_datadir}/dbus-1/interfaces/*UserManagement*.xml
 %endif
-%config(noreplace) %{_sysconfdir}/gum.conf
 
 
 %files -n %{name}d
 %defattr(-,root,root,-)
+%manifest %{_datadir}/%{name}d.manifest
 %doc AUTHORS COPYING.LIB INSTALL NEWS README
 %{_bindir}/%{name}d
-%if %{dbus_type} != "p2p"
+%if %{dbus_type} == "session"
+%dir %{_datadir}/dbus-1/services
 %{_datadir}/dbus-1/services/*UserManagement*.service
+%else if %{dbus_type} == "system"
+%dir %{_datadir}/dbus-1/system-services
+%{_datadir}/dbus-1/system-services/*UserManagement*.service
+%dir %{_sysconfdir}/dbus-1
+%dir %{_sysconfdir}/dbus-1/system.d
+%config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
 %endif
 
 
@@ -155,9 +165,9 @@ getent group gumd > /dev/null || /usr/sbin/groupadd -r gumd
 
 %files -n lib%{name}
 %defattr(-,root,root,-)
+%manifest %{_datadir}/lib%{name}.manifest
 %{_libdir}/lib%{name}.so.*
 
-
 %files -n lib%{name}-devel
 %defattr(-,root,root,-)
 %{_includedir}/%{name}/*.h
diff --git a/dists/rpm/tizen/packaging/gumd.manifest b/dists/rpm/tizen/packaging/gumd.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
diff --git a/dists/rpm/tizen/packaging/libgum-common.manifest b/dists/rpm/tizen/packaging/libgum-common.manifest
new file mode 100644 (file)
index 0000000..58f314b
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/> 
+    </request>
+</manifest>
diff --git a/dists/rpm/tizen/packaging/libgum.manifest b/dists/rpm/tizen/packaging/libgum.manifest
new file mode 100644 (file)
index 0000000..58f314b
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/> 
+    </request>
+</manifest>
diff --git a/packaging b/packaging
new file mode 120000 (symlink)
index 0000000..ed43530
--- /dev/null
+++ b/packaging
@@ -0,0 +1 @@
+dists/rpm/tizen/packaging
\ No newline at end of file
diff --git a/packaging/gum-tizen.changes b/packaging/gum-tizen.changes
deleted file mode 120000 (symlink)
index a0a55fb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../dists/rpm/gum-tizen.changes
\ No newline at end of file
diff --git a/packaging/gum-tizen.spec b/packaging/gum-tizen.spec
deleted file mode 120000 (symlink)
index 50c8962..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../dists/rpm/gum-tizen.spec
\ No newline at end of file