{"id":23832030,"url":"https://github.com/csdms/rpm_tools","last_synced_at":"2025-10-14T09:04:16.997Z","repository":{"id":20062888,"uuid":"23331565","full_name":"csdms/rpm_tools","owner":"csdms","description":"Recipes for building binary and source RPMs for CSDMS tools","archived":false,"fork":false,"pushed_at":"2014-11-04T23:13:46.000Z","size":480,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-02T14:16:54.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csdms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-25T23:01:49.000Z","updated_at":"2014-10-16T23:13:56.000Z","dependencies_parsed_at":"2022-08-21T17:40:55.406Z","dependency_job_id":null,"html_url":"https://github.com/csdms/rpm_tools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Frpm_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Frpm_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Frpm_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Frpm_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csdms","download_url":"https://codeload.github.com/csdms/rpm_tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118427,"owners_count":19750491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-02T14:17:01.975Z","updated_at":"2025-10-14T09:04:16.902Z","avatar_url":"https://github.com/csdms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"rpm_tools\n=========\n\nRecipes for building binary and source RPMs for CSDMS tools.\n\n## Requirements\n\nThese recipes are designed for Linux distros \nthat are compatible with\nRed Hat Enterprise Linux (e.g., CentOS, Fedora, SUSE). \nTo install CSDMS tools on Mac OS X, \nplease see the [csdms/homebrew-tools](https://github.com/csdms/homebrew-tools) \nproject.\n\nTo build and install the tools in this repository,\nthe mandatory and default packages in the \n\"Development Tools\" group (such as `make`, `gcc`, and `rpm-build`) \nare required,\nas well as `cmake`, `git` and `rpmdevtools`.\nInstall them with:\n```bash\n$ sudo yum groupinstall \"development tools\"\n$ sudo yum install cmake git rpmdevtools\n```\nEach tool will also have its own set of dependencies.\n\n## Preparation\n\nDownload and install (with Python \u003e= 2.7) the `packagebuilder` package from the\n[csdms/packagebuilder](https://github.com/csdms/packagebuilder)\nrepository:\n```bash\n$ git clone https://github.com/csdms/packagebuilder.git\n$ cd packagebuilder\n$ sudo python setup.py install\n```\nThis installs the script `build_rpm`,\nwhich is used to build the binary and source RPMs for a tool.\nThe standard `rpmbuild` tool can also be used,\nbut `build_rpm` handles much of the busy work\nto make the build process easier.\n\nTo separate CSDMS software from other programs,\nthe tools in this repository are designed to be installed \ninto the directory **/usr/local/csdms**,\nalthough this is optional.\nSet the environment variable `CSDMS_DIR`\nto the installation path on your machine:\n```bash\n$ export CSDMS_DIR=/usr/local/csdms\n```\n`CSDMS_DIR` is used by several recipes in this repository.\n\nThe `QA_RPATHS` environment variable may also need to be set:\n```bash\n$ export QA_RPATHS=19\n```\nto handle the custom CSDMS install location.\n\n## Building and installing the CSDMS tools\n\nThe tools in this repository form a cascading set of dependencies.\nBuild and install them in this order:\n\n1. `csdms-python`\n\n   After installing this package, set the `CSDMS_PYTHON` environment variable to the location of the Python executable:\n   ```bash\n   $ export CSDMS_PYTHON=$CSDMS_DIR/bin/python\n   ```\n\n1. `csdms-hdf5`\n1. `csdms-netcdf` (requires csdms-hdf5)\n1. `csdms-python-tools` (requires csdms-python, csdms-netcdf)\n1. `babel` (requires csdms-python, csdms-python-tools)\n1. `cca-spec-babel` (requires babel)\n1. `csdms-boost-headers`\n1. `ccaffeine` (requires babel, cca-spec-babel, csdms-boost-headers)\n1. `bocca` (requires babel, cca-spec-babel, ccaffeine)\n1. `boccatools` (requires babel, bocca, csdms-python)\n1. `esmf` (requires csdms-netcdf, csdmd-python, csdms-python-tools)\n1. `cmi` (csdms-python, babel, cca-spec-babel, ccaffeine, bocca, boccatools, as well as child, sedflux, hydrotrend, and cem from [csdms/rpm_models](https://github.com/csdms/rpm_models))\n1. `coupling` (csdms-python, csdms-python-tools, esmf)\n\nBuild RPMs by\ncalling `build_rpm` with the package name as a parameter.\nFor example, to build `csdms-python`:\n```bash\n$ build_rpm csdms-python --tag=2.7.6 --prefix=$CSDMS_DIR\n```\nMany of the packages are built against a set version of a tool;\ne.g., Python 2.7.6.\nCheck the package's **.spec** file to get the version\nused for input to `build_rpm`'s `tag` argument.\nOn success,\nRPMs will be located in the directories\n**~/rpmbuild/RPMS** (binary) and\n**~/rpmbuild/SRPMS** (source)\non your machine.\n\nInstall the package from the binary RPM with `rpm` or `yum`.\nFor example:\n```bash\n$ sudo rpm -ivh csdms-python-2.7.6-2.el6.x86_64.rpm\n$ # or...\n$ sudo yum install csdms-python-2.7.6-2.el6.x86_64.rpm\n```\n\nCheck that the package was installed successfully:\n```bash\n$ $CSDMS_DIR/bin/python --version\nPython 2.7.6\n```\n\n## The CSDMS repository\n\nBuilt versions of all of the tools listed here are available \nfrom the CSDMS repository, \n[http://csdms.colorado.edu/repo/](http://csdms.colorado.edu/repo/).\nSee the [README.md](http://csdms.colorado.edu/repo/README.md) file\nfor instructions on how to install these packages \non your machine.\n\n## About CSDMS\n\n[CSDMS](http://csdms.colorado.edu/wiki/Main_Page),\nthe Community Surface Dynamics Modeling System,\nis an NSF-funded project that supports a diverse community\nof users and developers\nof earth and ocean system models. \nCSDMS develops, integrates, archives and disseminates\nearth system models and tools to an international community\nwith the goal of building the frameworks necessary\nto model the earth system.\nModelers use CSDMS for access\nto hundreds of open source surface dynamics models and tools,\nas well as model metadata.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Frpm_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsdms%2Frpm_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Frpm_tools/lists"}