Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crhodes/rpm spec #8

Merged
merged 5 commits into from
Dec 21, 2017
Merged

Crhodes/rpm spec #8

merged 5 commits into from
Dec 21, 2017

Conversation

arreyder
Copy link
Contributor

Adds a spec file suitable to building rpms for centos7.


%install
cd libxjwt-%{version}
scons install --install-sandbox="$RPM_BUILD_ROOT"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just add --prefix=/usr here, and then we can drop all of the ld.so.conf.d dance? Seems like the most "normal" for an RPM to prefix in /usr?

cd %{name}-%{version}
scons install --install-sandbox="$RPM_BUILD_ROOT" prefix=/usr

%post -p /sbin/ldconfig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think without this, scons will install to the root of the host and not the buildroot for the rpm.

Also, I dont think there's any other mechanism to have ldd pick up on the new module without that call there. I can try removing both of these though and see what happens.

URL: https://github.com/ScaleFT/libxjwt
Vendor: ScaleFT http://scaleft.com

BuildRequires: scons
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be dropped

Copy link
Contributor

@pquerna pquerna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arreyder arreyder merged commit a34b038 into master Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants