I’m trying to solve this problem for a few days now but still nothing… Let’s say for example this is my upgrade.sh: And this is my rpm.spec file: Now I got example.rpm file. After I’m running the command rpm -U example.rpm this is the output I’m getting: Everything works fine with the upgrade, my only problem is that I don’t
Tag: rpm-spec
Install Section of rpm package
I am naive on creating RPM packages. I want to know the meaning of below command: Answer in the %install section, you are supposed to install all your files in the %{buildroot] directory; just the way they will be installed on the final system. he cleans this directory. I never use this; since my buildroot is unique for each of
Building RPM to install .desktop file that contains MimeType
I’m trying to build RPM to install .desktop file that contains MimeType, because .desktop file contains MimeType it needs update-desktop-database command to take effect after placing .desktop file in /usr/share/applications, how to do so? Answer I have achieved this by adding the following part after %install:
Making an RPM which sets POSIX files capabilities
How does one make an RPM which sets the POSIX capabilities of a file? If I try doing rpmbuild as a non-root user then I get an error when my makefile’s install hooks try to run setcap, but if I don’t run setcap how will rpmbuild copy the capabilities? There doesn’t seem to be any way to set the capability