On 3 October 2016 at 15:38, Ranjan Maitra <maitra@xxxxxxxxx> wrote: > Hi, > > I have had issues with batti for quite a while, and I came across battray as a replacement (and it works). So, I was trying to put it together as a rpm and perhaps and get it approved for Fedora. > > I have created the following spec file available here: > > https://paste.fedoraproject.org/442597/50173214 > > It compiles without error. However, when I try to install the rpm using > > $sudo dnf install ../RPMS/noarch/battray-2.2-1.fc24.noarch.rpm > > I get: > > Last metadata expiration check: 0:15:05 ago on Mon Oct 3 08:21:04 2016. > Error: nothing provides /bin/python3 needed by battray-2.2-1.fc24.noarch > (try to add '--allowerasing' to command line to replace conflicting packages) > > The addition of '--allowerasing' does not change anything other than to remove the suggestion. > > Any suggestions as to what is wrong with my spec file? > Try: %install %{_python3} setup.py install --prefix=%{_prefix} --root=%{buildroot} %{_python3} expands to /usr/bin/python3; I think on your system python3 in "python3 setup.py...." resolves to /bin/python3 which explains the wrong requires added to the package. Try examining your $PATH env var, maybe /bin/ is precedes /usr/bin/ on your system? -- Ahmad Samir _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx