aboutcode-org / aboutcode-org/scancode-toolkit

Not all RPM data are collected

Đang mở
#2,020 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug package scan package-formats
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description
Using ftp://ftp.ntua.gr/pub/linux/fedora/linux/updates/32/Everything/SRPMS/Packages/z/zathura-0.4.5-1.fc32.src.rpm I have these data:
```
$ rpm -qpi zathura-0.4.5-1.fc32.src.rpm
warning: zathura-0.4.5-1.fc32.src.rpm: Header V3 RSA/SHA256 Signature, key ID 12c944d0: NOKEY
Name : zathura
Version : 0.4.5
Release : 1.fc32
Architecture: armv7hl
Install Date: (not installed)
Group : Unspecified
Size : 165347
License : zlib
Signature : RSA/SHA256, Wed 15 Apr 2020 10:24:47 PM CEST, Key ID 6c13026d12c944d0
Source RPM : (none)
Build Date : Wed 15 Apr 2020 06:05:20 PM CEST
Build Host : buildvm-armv7-06.arm.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://pwmt.org/projects/zathura/
Bug URL : https://bugz.fedoraproject.org/zathura
Summary : A lightweight document viewer
Description :
Zathura is a highly customizable and functional document viewer.
It provides a minimalistic and space saving interface as well as
an easy usage that mainly focuses on keyboard interaction.

Zathura requires plugins to support document formats.
For instance:
* zathura-pdf-poppler to open PDF files,
* zathura-ps to open PostScript files,
* zathura-djvu to open DjVu files, or
* zathura-cb to open comic book files.

All of these are available as separate packages in Fedora.
A zathura-plugins-all package is available should you want
to install all available plugins.
```
but with scancode (latest develop) I get this:
```
$ scancode -p --json-pp - zathura-0.4.5-1.fc32.src.rpm
8<......clip................
"files": [
{
"path": "zathura-0.4.5-1.fc32.src.rpm",
"type": "file",
"packages": [
{
"type": "rpm",
"namespace": null,
"name": "zathura",
"version": "0.4.5-1.fc32",
"qualifiers": {},
"subpath": null,
"primary_language": null,
"description": "A lightweight document viewer\nZathura is a highly customizable and functional document viewer.\nIt provides a minimalistic and space saving interface as well as\nan easy usage that mainly focuses on keyboard interaction.\n\nZathura requires plugins to support document formats.\nFor instance:\n* zathura-pdf-poppler to open PDF files,\n* zathura-ps to open PostScript files,\n* zathura-djvu to open DjVu files, or\n* zathura-cb to open comic book files.\n\nAll of these are available as separate packages in Fedora.\nA zathura-plugins-all package is available should you want\nto install all available plugins.",
"release_date": null,
"parties": [
{
"type": null,
"role": "distributor",
"name": "Fedora Project",
"email": null,
"url": null
},
{
"type": null,
"role": "vendor",
"name": "Fedora Project",
"email": null,
"url": null
}
],
"keywords": [],
"homepage_url": "http://pwmt.org/projects/zathura/",
"download_url": null,
"size": null,
"sha1": null,
"md5": null,
"sha256": null,
"sha512": null,
"bug_tracking_url": null,
"code_view_url": null,
"vcs_url": null,
"copyright": null,
"license_expression": "zlib",
"declared_license": "zlib",
"notice_text": null,
"root_path": null,
"dependencies": [],
"contains_source_code": null,
"source_packages": [],
"purl": "pkg:rpm/zathura@0.4.5-1.fc32",
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": null
}
],
"scan_errors": []
}
]
}
```
I am missing:
- `bug_tracking_url`
- a `qualifier` that this is an src rpm
- a `qualifier` for the architecture `armv7hl`
- the `size`
- I am not sure `Group` is correctly mapped to keywords
- same for `Packager` ... it should be a party when present. It is collected here, but may be not in this ftp://ftp.pbone.net/mirror/ftp.centos.org/7.7.1908/cr/x86_64/Packages/389-ds-base-snmp-1.3.10.1-5.el7.x86_64.rpm ?
- possibly some extra data for these build fields? (TBD)
```
Build Date : Wed 15 Apr 2020 06:05:20 PM CEST
Build Host : buildvm-armv7-06.arm.fedoraproject.org
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.