Metadata-Version: 2.0
Name: rpm-spec-dependency-analyzer
Version: 0.5
Summary: Module for analyzing RPM spec dependencies.
Home-page: https://github.com/f18m/rpm-spec-dependency-analyzer
Author: Francesco Montorsi
Author-email: francesco.montorsi@gmail.com
License: UNKNOWN
Download-URL: https://github.com/f18m/rpm-spec-dependency-analyzer/archive/1.0.tar.gz
Keywords: RPM,spec,graphviz,dependencies,dependency-analysis
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown

# rpm-spec-dependency-analyzer

This is a simple Python3 script that parses a list of SPEC files and
generates a nice graph of the dependencies among them using DOT.


## How to install

```
git clone https://github.com/f18m/rpm-spec-dependency-analyzer.git
sudo ln $(pwd)/rpm-spec-dependency-analyzer/specfiles_dependency_graph.py   /usr/local/bin/specfiles_dependency_graph
sudo ln $(pwd)/rpm-spec-dependency-analyzer/pyrpm_spec.py                   /usr/local/bin
```

## How to use


```
specfiles_dependency_graph --output reqgraph.dot /my/spec/folder/*.spec
dot -Tpng reqgraph.dot -o reqgraph.png
```

## Example output

This is the example of the graph generated by [pkgA.spec](examples/pkgA.spec) and by [pkgB.spec](examples/pkgB.spec):

![Example graph](examples/example-graph.png "Example DOT output")

Original .dot source is available [here](examples/example-graph.dot)


