{"id":18926070,"url":"https://github.com/getpagespeed/spectool2","last_synced_at":"2026-03-15T00:30:17.819Z","repository":{"id":134154507,"uuid":"186633148","full_name":"GetPageSpeed/spectool2","owner":"GetPageSpeed","description":"Spectool with editing capabilities","archived":false,"fork":false,"pushed_at":"2022-05-16T15:44:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T18:30:15.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GetPageSpeed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T13:54:45.000Z","updated_at":"2022-05-16T15:43:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"77f41630-2554-4e09-94ca-e14d13bd9362","html_url":"https://github.com/GetPageSpeed/spectool2","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetPageSpeed%2Fspectool2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetPageSpeed%2Fspectool2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetPageSpeed%2Fspectool2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetPageSpeed%2Fspectool2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GetPageSpeed","download_url":"https://codeload.github.com/GetPageSpeed/spectool2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921837,"owners_count":19718844,"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":"2024-11-08T11:14:26.591Z","updated_at":"2026-03-15T00:30:17.755Z","avatar_url":"https://github.com/GetPageSpeed.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spectool2\n\nFor my [awesome RHEL 6/7 repository](https://www.getpagespeed.com/redhat), I needed a tool to deal with updating some tags and information within the `.spec` files.\nI found *none* that work on the command line.\n\nThis is my attempt at hiding the ugly regexes for editing .spec files by extending the standard `spectool` with \"write\" capabilities.\n\nBEWARE! I have no Perl experience and things may be super ugly if you look inside :) But it works for me :D\n\n## Synopsis\n\n### Edit Version\n\n    spectool2 --edit-version 4.3.2.1 some.spec # results in Version: 4.3.2.1\n\n### Get a global value\n\n    spectool2 --get-global --name upstream_version some.spec\n\nNote that `--get-global` only prints the first occurrence of a global, if there \nare multiple.\n\n### Edit a tag\n\n    spectool2 --edit-tag Vendor --value GetPageSpeed some.spec\n    \nNote: the tag must already exist for this to work.\n\n### Also\n\nThe standard `spectool` function (listing source files and fetching them) is there. The only major change, is that listing a single source file will give you just that, its resource.\n\nSo `spectool2 --source 0 some.spec` will give you `some.tar.gz` and not `Source0: some.tar.gz` to assist with scripting.\n\n## Installation in CentOS / RHEL 7\n\n    yum install https://extras.getpagespeed.com/release-el7-latest.rpm\n    yum install spectool2\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpagespeed%2Fspectool2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetpagespeed%2Fspectool2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpagespeed%2Fspectool2/lists"}