On 12/27/17 18:36, Kenneth Porter wrote:
On 12/27/2017 3:09 PM, m.roth@xxxxxxxxx wrote:
My current issue, that I keep falling back to, is the install
*INSISTS* that it has to add a - after version.
You're missing the spec file header that includes lots of meta information.
The dash is to separate the version from the package release string. You
should have a Release: header to fill that in.
I understood that... but I don't *want* a release number. Unless you're
suggesting that I *must* do something like change my package name and
directory to 1.27-0.
mark
install -m 744 -d %{buildroot}/%{name}-%{version}
No need to set the mode here. Do that in the %files section with the defattrs
tag.
%files
%{buildroot}/%{name}
Use the final absolute install path in %files. Don't include the buildroot. So
just /opt/%{name}.
What I see from the rpmbuild is
+ cd /usr//local//src//rpmbuild/BUILD
Don't build as root. I create a special user to build packages from. Install
the rpmdevtools package and run rpmdev-setuptree as your build user.
http://www.g-loaded.eu/2006/04/05/how-to-build-rpm-packages-on-fedora/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos