I have made the following changes intended for : nemo:testing:mw / oneshot nemo:testing:mw / nemo-firstsession
Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below. https://build.merproject.org//request/show/40 Thank You, Marko Saukko [This message was auto-generated] --- Request # 40: Messages from BOSS: State: review at 2013-03-07T15:29:21 by cibot Reviews: accepted by cibot : Prechecks succeeded. new for nemo:testing:mw : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: nemo:devel:mw / oneshot -> nemo:testing:mw / oneshot changes files: -------------- ++++++ new changes file: --- oneshot.changes +++ oneshot.changes @@ -0,0 +1,5 @@ +* Thu Dec 13 2012 Bernd Wachter <[email protected]> - 0.2 +- Fix packaging macros + +* Wed Dec 12 2012 Bernd Wachter <[email protected]> - 0.1 +- Initial package new: ---- oneshot-0.2.tar.gz oneshot.changes oneshot.spec spec files: ----------- ++++++ new spec file: --- oneshot.spec +++ oneshot.spec @@ -0,0 +1,64 @@ +# we can't use %include for files in the source tarballs, so redefine the macros for now +%define _oneshotdir %{_libdir}/oneshot.d +%define _default_uid %(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2) +%define _system_groupadd() getent group %{1} >/dev/null || groupadd -r %{1} + +Name: oneshot +Version: 0.2 +Release: 1 +Summary: Hooks run on first start +BuildArch: noarch +Group: System/Base +License: GPLv2 +Source0: %{name}-%{version}.tar.gz +URL: https://github.com/nemomobile/oneshot +BuildRequires: qt-qmake, grep, systemd +Requires(pre): /usr/bin/getent, /usr/sbin/groupadd +Requires: /usr/bin/getent, /bin/ln, /bin/touch, /bin/sed, /bin/grep, /usr/sbin/usermod +Requires: /etc/login.defs + +%description +%{summary}. + +%files +%defattr(-,root,root,-) +%config %{_sysconfdir}/rpm/* +%attr (755, -, -) %{_bindir}/* +%{_sysconfdir}/oneshot.d/ +%dir %{_sysconfdir}/oneshot.d/ +%dir %{_sysconfdir}/oneshot.d/0 +%dir %attr(775, -, oneshot) %{_sysconfdir}/oneshot.d/default/ +%dir %{_sysconfdir}/oneshot.d/group.d +%dir %{_oneshotdir} +%attr (755, -, -) %{_oneshotdir}/* +%{_libdir}/systemd/user/oneshot-user.service +%{_libdir}/systemd/user/xorg.target.wants/oneshot-user.service +%{_unitdir}/oneshot-root.service +%{_unitdir}/multi-user.target.wants/oneshot-root.service + +%pre +%_system_groupadd oneshot + +%prep +%setup -q + +%build +ls %{_builddir}/%{name}-%{version}/macros/ +BINDIR=%{_bindir} ONESHOTDIR=%{_oneshotdir} SERVICEDIR=%{_unitdir} USERSERVICEDIR=%{_libdir}/systemd/user qmake + +%install +make INSTALL_ROOT=%{buildroot} install +install -d %{buildroot}/%{_sysconfdir}/oneshot.d/ +install -d %{buildroot}/%{_sysconfdir}/oneshot.d/0/ +install -d %{buildroot}/%{_sysconfdir}/oneshot.d/default/ +install -d %{buildroot}/%{_sysconfdir}/oneshot.d/group.d/ + +mkdir -p %{buildroot}/%{_libdir}/systemd/user/xorg.target.wants +ln -sf ../oneshot-user.service %{buildroot}/%{_libdir}/systemd/user/xorg.target.wants/oneshot-user.service +mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants +ln -sf ../oneshot-root.service %{buildroot}%{_unitdir}/multi-user.target.wants/oneshot-root.service +ln -sf ./default %{buildroot}/%{_sysconfdir}/oneshot.d/%{_default_uid} + + +%post +%{_bindir}/groupadd-user oneshot other changes: -------------- ++++++ oneshot-0.2.tar.gz (new) submit: nemo:devel:mw / nemo-firstsession -> nemo:testing:mw / nemo-firstsession changes files: -------------- ++++++ new changes file: --- nemo-firstsession.changes +++ nemo-firstsession.changes @@ -0,0 +1,4 @@ +* Fri Jan 11 2013 Marko Saukko <[email protected]> - 0.1 +- [XDG Dirs] Create XDG dirs for users. + + new: ---- nemo-firstsession-0.1.tar.bz2 nemo-firstsession.changes nemo-firstsession.spec spec files: ----------- ++++++ new spec file: --- nemo-firstsession.spec +++ nemo-firstsession.spec @@ -0,0 +1,36 @@ +Name: nemo-firstsession +Version: 0.1 +Release: 1 +Summary: Initial session setup for user + +Group: Base +License: GPLv2 +URL: https://github.com/nemomobile/nemo-firstsession +Source0: %{name}-%{version}.tar.bz2 +Requires: oneshot +BuildRequires: oneshot +BuildArch: noarch + +%{_oneshot_requires_post} + +%description +%{summary}. + +%prep +%setup -q -n %{name}-%{version} + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d %{buildroot}/%{_oneshotdir} +install -m 755 oneshot.d/* %{buildroot}/%{_oneshotdir} + +%post +if [ "$1" -eq 1 ]; then + %{_bindir}/add-oneshot --user 00-initial-user-setup +fi + +%files +%defattr(-,root,root,-) +%{_oneshotdir}/* other changes: -------------- ++++++ nemo-firstsession-0.1.tar.bz2 (new)
