-Name: Modello_AMBSimulator
+Name: Modello-AMBSimulator
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_AMBSimulator.manifest
+Source1001: Modello-AMBSimulator.manifest
BuildRequires: zip
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildArchitectures: noarch
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_AMBSimulator.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/AMBSimulator_icon.png
-Name: Modello_Appmanager
+Name: Modello-Appmanager
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Appmanager.manifest
+Source1001: Modello-Appmanager.manifest
BuildRequires: zip
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildArchitectures: noarch
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_Appmanager.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/AppManager_icon.png
-Name: Modello_Common
+Name: Modello-Common
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Common.manifest
+Source1001: Modello-Common.manifest
BuildRequires: fdupes
-Name: Modello_Dashboard
+Name: Modello-Dashboard
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Dashboard.manifest
+Source1001: Modello-Dashboard.manifest
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: zip
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_Dashboard.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/Dashboard_icon.png
-Name: Modello_Homescreen
+Name: Modello-Homescreen
Summary: A proof of concept pure html5 UI
Version: 0.0.2
-Release: 1
+Release: 0
Group: Automotive/Modello
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
+Source1001: Modello-Homescreen.manifest
+
BuildRequires: zip
-Requires: Modello_Common
+Requires: Modello-Common
BuildArchitectures: noarch
%prep
%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
%build
-
-make wgtPkg
+%__make wgtPkg
%install
%make_install
%files
%defattr(-,root,root,-)
-/opt/usr/apps/.preinstallWidgets/Modello_Homescreen.wgt
+/opt/usr/apps/.preinstallWidgets/%{name}.wgt
/opt/usr/apps/_common/icons/Homescreen_icon.png
%{_unitdir_user}/Modello_Homescreen.service
%{_unitdir_user}/Modello_Homescreen-launchpad-ready.path
--- /dev/null
+Name: Modello-Hvac
+Summary: Pure html5 UI
+Version: 0.0.2
+Release: 0
+Group: Automotive/Modello
+License: Apache-2.0
+URL: http://www.tizen.org
+Source0: %{name}-%{version}.tar.bz2
+Source1001: Modello-Hvac.manifest
+
+Requires: Modello-Common
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: zip
+
+BuildArchitectures: noarch
+
+%description
+A proof of concept pure html5 UI
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
+%build
+#empty
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{TZ_SYS_APP_PREINSTALL}
+mkdir -p %{buildroot}%{_datadir}/Modello/Common/icons
+zip -r %{buildroot}%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt config.xml css HVAC_icon.png index.html js
+install -m 0644 HVAC_icon.png %{buildroot}%{_datadir}/Modello/Common/icons
+
+%files
+%defattr(-,root,root,-)
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
+%{_datadir}/Modello/Common/icons/HVAC_icon.png
+++ /dev/null
-Name: Modello_Hvac
-Summary: A proof of concept pure html5 UI
-Version: 0.0.2
-Release: 1
-Group: Applications/System
-License: Apache 2.0
-URL: http://www.tizen.org
-Source0: %{name}-%{version}.tar.bz2
-BuildRequires: zip
-Requires: Modello_Common
-
-%description
-A proof of concept pure html5 UI
-
-%prep
-%setup -q -n %{name}-%{version}
-
-%build
-
-make wgtPkg
-
-%install
-rm -rf %{buildroot}
-%make_install
-
-%files
-%defattr(-,root,root,-)
-/opt/usr/apps/.preinstallWidgets/Modello_Hvac.wgt
-/opt/usr/apps/_common/icons/HVAC_icon.png
%define MODELLO_INSTALL_USER app
-%define MODELLO_WIDGET_DIR /opt/usr/apps/.preinstallWidgets
-%define MODELLO_COMMON_DIR /opt/usr/apps/_common
+%define MODELLO_COMMON_DIR %{_datadir}/Modello/Common
-Name: Modello_Installer
+Name: Modello-Installer
Summary: Installer for Modello
Version: 0.0.2
Release: 0
-Group: Base/Configuration
+Group: Automotive/Modello
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
+Source1001: Modello-Installer.manifest
%description
Installer for Modello package
%package xwalk
Summary: The Xwalk version of Modello Installer
Requires: crosswalk
-Requires: Modello_AMBSimulator
-Requires: Modello_Appmanager
-Requires: Modello_Common
-Requires: Modello_Dashboard
-Requires: Modello_Homescreen
-Requires: Modello_Hvac
-Requires: Modello_Multimediaplayer
-Requires: Modello_Nav
-Requires: Modello_Phone
-Requires: Modello_SDL
+Requires: Modello-AMBSimulator
+Requires: Modello-Appmanager
+Requires: Modello-Common
+Requires: Modello-Dashboard
+Requires: Modello-Homescreen
+Requires: Modello-Hvac
+Requires: Modello-Multimediaplayer
+Requires: Modello-Nav
+Requires: Modello-Phone
+Requires: Modello-SDL
Requires: tizen-platform-config
%description xwalk
The Xwalk version of Modello Installer package
+%package wrt
+Summary: The WRT version of Modello Installer
+Requires: wrt-installer
+
+%description wrt
+Installs Modello using wrt-installer package
+
%prep
%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
%build
#build section
%make_install
%post xwalk
-source %_sysconfdir/tizen-platform.conf
+source %{_sysconfdir}/tizen-platform.conf
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/5000/dbus/user_bus_socket"
done
%postun xwalk
-source %_sysconfdir/tizen-platform.conf
+source %{_sysconfdir}/tizen-platform.conf
+
+export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/5000/dbus/user_bus_socket"
for list3 in $(su %{MODELLO_INSTALL_USER} -c "xwalkctl" | grep Modello | cut -c 1-32)
do
su %{MODELLO_INSTALL_USER} -c "xwalkctl -u $list3"
done
+%post wrt
+source %{_sysconfdir}/tizen-platform.conf
+
+for list in $(find $TZ_SYS_APP_PREINSTALL -name "Modello*")
+do
+#wrt-installer requires you be root to install files
+ wrt-installer -i $list
+done
+
+for list2 in $(ls -d /opt/usr/apps/*/)
+do
+ mkdir -p "$list2/css"
+ mkdir -p "$list2/js"
+ cp -r %{MODELLO_COMMON_DIR}/js/services "$list2/res/wgt/js/"
+ cp -r %{MODELLO_COMMON_DIR}/css/* "$list2/res/wgt/css/"
+done
%files xwalk
%defattr(-,root,root,-)
+%manifest %{name}.manifest
+%files wrt
+%defattr(-,root,root,-)
+%manifest %{name}.manifest
\ No newline at end of file
-Name: Modello_Multimediaplayer
+Name: Modello-Multimediaplayer
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Multimediaplayer.manifest
+Source1001: Modello-Multimediaplayer.manifest
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: zip
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_Multimediaplayer.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/MultimediaPlayer_icon.png
-Name: Modello_Nav
+Name: Modello-Nav
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Nav.manifest
+Source1001: Modello-Nav.manifest
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: zip
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_Nav.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/Navigation_icon.png
-Name: Modello_Phone
+Name: Modello-Phone
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_Phone.manifest
+Source1001: Modello-Phone.manifest
-Requires: Modello_Common
+Requires: Modello-Common
Requires: phoned
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: zip
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_Phone.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/Phone_icon.png
-Name: Modello_SDL
+Name: Modello-SDL
Summary: Pure html5 UI
Version: 0.0.2
Release: 0
License: Apache-2.0
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.bz2
-Source1001: Modello_SDL.manifest
+Source1001: Modello-SDL.manifest
-Requires: Modello_Common
+Requires: Modello-Common
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: zip
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%{TZ_SYS_APP_PREINSTALL}/Modello_SDL.wgt
+%{TZ_SYS_APP_PREINSTALL}/%{name}.wgt
%{_datadir}/Modello/Common/icons/SmartDeviceLink_icon.png
Name: libmedia-service
Summary: Media information service library for multimedia applications
-Version: 0.2.43
-Release: 3
+Version: 0.2.43
+Release: 0
Group: System/Libraries
-License: Apache License, Version 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: libmedia-service.manifest
+Source1001: libmedia-service.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(media-thumbnail)
BuildRequires: pkgconfig(drm-client)
BuildRequires: pkgconfig(libmedia-utils)
-BuildRequires: pkgconfig(libtzplatform-config)
%description
-Media information service library for multimedia applications
+Media information service library for multimedia applications files
%package devel
-Summary: Media information service library for multimedia applications. (development)
+Summary: Media information service library for multimedia applications. (dev)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Media information service library for multimedia applications. (development files)
-
%prep
%setup -q
cp %{SOURCE1001} .
-
%build
%cmake .
-make %{?jobs:-j%jobs}
+%__make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
-#License
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/license/%{name}
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%{_libdir}/libmedia-content-plugin.so
%{_libdir}/libmedia-content-plugin.so.1
%{_libdir}/libmedia-content-plugin.so.1.0.0
-#License
-%{_datadir}/license/%{name}
+%license LICENSE
%files devel
%manifest %{name}.manifest
Source1005: %{name}-installer.manifest
Source1006: %{name}-installer-devel.manifest
Source1007: %{name}-types-devel.manifest
+
BuildRequires: cmake
BuildRequires: unzip
BuildRequires: gettext-tools
BuildRequires: pkgmgr-info-parser-devel
BuildRequires: pkgmgr-info-parser
BuildRequires: libsmack
-Requires: pwdutils
-Requires: libcap-tools
+BuildRequires: fdupes
%description
Packager Manager client library package for packaging
-DX11_SUPPORT=On
%endif
-make %{?jobs:-j%jobs}
+%__make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backend
mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backendlib
-mkdir -p %{buildroot}/etc/opt/upgrade
+mkdir -p %{buildroot}%{_sysconfdir}/opt/upgrade
mkdir -p %{buildroot}%{_sysconfdir}/package-manager/server
%find_lang package-manager
+%fdupes %{buildroot}
+
%post
/sbin/ldconfig
# For pkgmgr-install:
# Update mime database to support package mime types
-update-mime-database /usr/share/mime
+update-mime-database %{_datadir}/mime
%post -n pkgmgr-server -p /sbin/ldconfig
rpmspec_command += " --define='BUILD_BASENAME %{basename}' "
rpmspec_command += " --define='find_lang #find_lang' "
+ rpmspec_command += " --define='fdupes #fdupes' "
rpmspec_command += " --define='lang_package #lang_package' "
rpmspec_command += " --define='with_wayland 1' "