René's URL Explorer Experiment


Title: Add Fedora/RHEL RPM packaging support by jameshickman · Pull Request #9366 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Add Fedora/RHEL RPM packaging support by jameshickman · Pull Request #9366 · IfcOpenShell/IfcOpenShell

X Title: Add Fedora/RHEL RPM packaging support by jameshickman · Pull Request #9366 · IfcOpenShell/IfcOpenShell

Description: Summary Adds Fedora/RHEL RPM packaging, alongside the existing Debian/TGZ CPack setup. The goal is that dnf install of the produced RPM yields a working, importable ifcopenshell Python module with correct distro dependencies. What's in here cmake/CMakeLists.txt — enables the CPack RPM generator and adds a CPACK_RPM_* metadata block mirroring the existing Debian one. The generator is appended only when rpmbuild is found, so DEB-only hosts (the existing Debian CI) are unaffected by make package. EXTRA_VERSION is folded into the RPM release field, since RPM versions may not contain hyphens. src/ifcwrap/CMakeLists.txt — the BUILD_PACKAGE path hard-coded a Debian dist-packages layout, which is not on Fedora/RHEL's default sys.path. Adds a PACKAGE_PYTHON_SUBDIR override, defaulting to the exact existing Debian value, so the Debian package is byte-for-byte unchanged. fedora/build-rpm.sh, fedora/readme.md — build script and dependency/usage docs. .github/workflows/build_fedora_rpm.yml — builds the RPM in a Fedora container. Two things worth reviewing Dependency handling. An earlier iteration hard-coded Requires: opencascade, which does not exist as a package on Fedora — OCCT ships split as opencascade-foundation / -modeling / -visualization / -ocaf — so dnf failed with nothing provides opencascade. The other high-level names (libxml2, hdf5, boost) were redundant with RPM's soname dependency generator, which already records the exact libTK*.so / libboost*.so / libhdf5*.so / libxml2.so deps and maps them to the right subpackages. So CPACK_RPM_PACKAGE_REQUIRES is now only what AUTOREQ cannot infer: the Python interpreter (not linked as a shared library) and the module's third-party Python imports (shapely, numpy, isodate, python-dateutil, lark, pyparsing, typing-extensions — per src/ifcopenshell-python/pyproject.toml). Happy to adjust if you'd rather pin these differently. HDF5 linkage. FindHDF5.cmake resolves to static .a names when HDF5_LIBRARY_DIR is set, but Fedora's hdf5-devel ships only shared libraries (static archives live in the separate hdf5-static package). The Fedora script leaves that flag unset so the finder falls through to CMake's HDF5 module via h5c++ and locates the shared libs — matching how the Debian Docker CI already configures HDF5. Testing Verified end-to-end on Fedora 43: the build produces a valid RPM that installs cleanly, resolves OCCT/Boost/HDF5/libxml2 automatically, installs to /usr/lib64/python3.14/site-packages, and imports without needing PYTHONPATH. One caveat, stated plainly: that verification was performed with these commits based on v0.8.0. They have been rebased onto v0.9.0 here, with two small conflicts resolved (a .gitignore entry, and CMake keyword casing around the BUILD_PACKAGE block). The resulting net diff is identical in content to the verified version, but I have not re-run a full end-to-end Fedora build on top of v0.9.0 — the included CI workflow should confirm it, and I'm glad to chase down anything it turns up. Also happy to retarget this at a different branch if v0.9.0 isn't where you'd want packaging changes to land.

Open Graph Description: Summary Adds Fedora/RHEL RPM packaging, alongside the existing Debian/TGZ CPack setup. The goal is that dnf install of the produced RPM yields a working, importable ifcopenshell Python module with ...

X Description: Summary Adds Fedora/RHEL RPM packaging, alongside the existing Debian/TGZ CPack setup. The goal is that dnf install of the produced RPM yields a working, importable ifcopenshell Python module with ...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/9366

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:05998a82-2e73-892a-86a6-28990ec2d3f1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id966A:1C412F:606267:87F1C7:6B047836
html-safe-nonce4680b9aa81c38bcf894a5bc79f5da6563bd4654a9b161edfe2ed75b13daabe89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZBOjFDNDEyRjo2MDYyNjc6ODdGMUM3OjZCMDQ3ODM2IiwidmlzaXRvcl9pZCI6IjgwNjM2NjUyMTE1NjUxNzY4ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac634b564ebe58cb85688253297b355c431cb17f790eb3d8594d63d9e880b85a42
hovercard-subject-tagpull_request:4378143271
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
twitter:imagehttps://avatars.githubusercontent.com/u/34725749?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34725749?s=400&v=4
og:image:altSummary Adds Fedora/RHEL RPM packaging, alongside the existing Debian/TGZ CPack setup. The goal is that dnf install of the produced RPM yields a working, importable ifcopenshell Python module with ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F9366%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F9366%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests937 (937)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
jameshickmanhttps://github.com/jameshickman
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
jameshickman:fedora-rpm-packaging-v090https://github.com/jameshickman/IfcOpenShell/tree/fedora-rpm-packaging-v090
Conversation 2 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366
Commits 5 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits
Checks 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Add Fedora/RHEL RPM packaging support https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#top
Show all changes 5 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
0db6dae Add Fedora/RHEL RPM packaging support Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits/0db6daee3d498a525e7f936a91f1e21d61c9e9d0
577351b fedora: link against shared HDF5 libs, ignore build-fedora output Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits/577351b42bcbb7b57f78b00628951a4a1075d78d
e08d907 fedora: install Python module to distro site-packages Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits/e08d9072b7a9da9e27729a51579c4e6d456644e3
a63272d fedora: drop hardcoded RPM Requires, rely on soname auto-detection Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits/a63272d214686648f4d101cf56e89bc931758f90
abc34ee fedora: declare Python runtime dependencies in the RPM Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/commits/abc34ee09a9512865b103d4e08a3c62f8ab46831
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files
build_fedora_rpm.yml https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-8b57c6fbc281f7179563925586e0b5820dbb32747904d539648505f10fa1be41
.gitignore https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
CMakeLists.txt https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-6857e85a31ef258bd57de3cd5fb1e0c31239cd93e0a16fba07dba83864bec5b6
build-rpm.sh https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-efd1cbd7cbc921e8b0a1efa617f82bc3b84b48b98959a07b6061a56d4f4ed4ea
readme.md https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-390ce8e431de9c32e006337487b61608826b1b5784549ba723329b326c1a60b2
CMakeLists.txt https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07
.github/workflows/build_fedora_rpm.ymlhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-8b57c6fbc281f7179563925586e0b5820dbb32747904d539648505f10fa1be41
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/.github/workflows/build_fedora_rpm.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
.gitignorehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
cmake/CMakeLists.txthttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-6857e85a31ef258bd57de3cd5fb1e0c31239cd93e0a16fba07dba83864bec5b6
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/cmake/CMakeLists.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-6857e85a31ef258bd57de3cd5fb1e0c31239cd93e0a16fba07dba83864bec5b6
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-6857e85a31ef258bd57de3cd5fb1e0c31239cd93e0a16fba07dba83864bec5b6
fedora/build-rpm.shhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-efd1cbd7cbc921e8b0a1efa617f82bc3b84b48b98959a07b6061a56d4f4ed4ea
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/fedora/build-rpm.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
fedora/readme.mdhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-390ce8e431de9c32e006337487b61608826b1b5784549ba723329b326c1a60b2
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/fedora/readme.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
src/ifcwrap/CMakeLists.txthttps://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/abc34ee09a9512865b103d4e08a3c62f8ab46831/src/ifcwrap/CMakeLists.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07
https://github.com/IfcOpenShell/IfcOpenShell/pull/9366/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.