Re: mock: nothing provides user(vdr) needed by vdr-tvscraper-1.2.13-1.fc43.x86_64 from local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much for the information.
I still have a few questions as I'm not sure how to implement this in the rpm spec file.

If I want to use the rpm spec file for both Fedora42 and Fedor43, do I need to introduce a %if condition.

%prep
...

# Create a sysusers.d config file
cat >vdr.sysusers.conf <<EOF
#Type Name                           ID   GECOS                      Home directory   Shell
u         %{vdr_user}                 -    "VDR daemon user"     -                          -
g         %{vdr_group}               -                                         %{vardir}            /sbin/nologin -M -N
g         audio,cdrom,dialout       "Video Disk Recorder"     %{vdr_user}
EOF


%install
# ... existing install commands ...
install -D -m 0644 vdr.sysusers.conf %{buildroot}%{_sysusersdir}/vdr.conf


%files
...
%{_sysusersdir}/vdr.conf

Can you help me create the vdr.conf file?

Regards
Martin
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux