I have made the following changes intended for : CE:MW:Shared / oneshot Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below.
https://build.pub.meego.com//request/show/7528 Thank You, aard [This message was auto-generated] --- Request # 7528: Messages from BOSS: State: review at 2012-12-12T22:22:52 by bossbot Reviews: accepted by bossbot : Prechecks succeeded. new for CE-maintainers : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: home:aard:staging:sharing / oneshot -> CE:MW:Shared / oneshot changes files: -------------- ++++++ new changes file: --- oneshot.changes +++ oneshot.changes @@ -0,0 +1,2 @@ +* Wed Dec 12 2012 Bernd Wachter <[email protected]> - 0.1 +- Initial package new: ---- oneshot-0.1.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.1 +Release: 1 +Summary: Hooks run on first start +BuildArch: noarch +Group: System/Base +License: GPLv2 +Source0: %{name}-%{version}.tar.gz +URL: https://github.com/organizations/nemomobile +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/macros/* +%attr (775, -, -) %{_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 (775, -, -) %{_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.1.tar.gz (new)
