Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a multi-distro spec file to build procdump
This commit simultaneously removes the old way to produce a Debian package. Signed-off-by: Neal Gompa <ngompa13@gmail.com>
- Loading branch information
1 parent
ddfa626
commit c6ec2d6
Showing
5 changed files
with
109 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ | |
# Project directories | ||
bin/ | ||
release/ | ||
pkgbuild/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Building the package | ||
|
||
This package is built using [debbuild](https://github.com/ascherer/debbuild) for Debian targets. | ||
|
||
The Makefile included in this project helps you to do builds, but you need | ||
to have debbuild installed first. | ||
|
||
You can install debbuild from the deb published on [the GitHub project releases](https://github.com/ascherer/debbuild/releases). | ||
|
||
Once installed, `make deb` will let you build a Debian package. | ||
|
||
For building RPMs, you just need `rpmbuild`. For example, on Fedora: | ||
|
||
```bash | ||
$ sudo dnf install rpm-build | ||
|
||
``` | ||
|
||
Once installed, `make rpm` will let you build an RPM package. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Name: procdump | ||
Version: @PKG_VERSION@ | ||
Release: 1%{?dist} | ||
Summary: Sysinternals process dump utility | ||
|
||
%if %{_vendor} == "debbuild" | ||
Group: devel | ||
%else | ||
Group: Development/Tools%{?suse_version:/Other} | ||
%endif | ||
|
||
Packager: OSS Tooling Dev Team <OSSToolingDevTeam@service.microsoft.com> | ||
|
||
License: MIT | ||
URL: https://github.com/Microsoft/ProcDump-for-Linux | ||
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz | ||
|
||
BuildRequires: gcc, make | ||
|
||
%if %{_vendor} == "debbuild" | ||
BuildRequires: zlib1g-dev | ||
%else | ||
BuildRequires: zlib-devel | ||
%endif | ||
|
||
Requires: gdb >= 7.6.1 | ||
|
||
%description | ||
ProcDump is a command-line utility whose primary purpose is monitoring an application | ||
for various resources and generating crash dumps during a spike that an administrator | ||
or developer can use to determine the cause of the issue. ProcDump also serves as a | ||
general process dump utility that you can embed in other scripts. | ||
|
||
|
||
%prep | ||
%autosetup | ||
|
||
|
||
%build | ||
# The makefile doesn't like %%make_build (parallel make) | ||
make CFLAGS="%{optflags}" | ||
|
||
|
||
%install | ||
%make_install | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md procdump.gif | ||
%{_bindir}/procdump | ||
%{_mandir}/man1/procdump.1* | ||
|
||
|
||
|
||
%changelog | ||
* Wed Jan 10 2018 Javid Habibi <jahabibi@microsoft.com> - 1.0.1 | ||
- fixed potential deadlock upon malloc failing | ||
- fixed improper process name parsing and sanitizing process | ||
name for dump file generation | ||
- fixed various typos | ||
- fixed post-build check failures on openSUSE | ||
|
||
* Tue Dec 05 2017 Javid Habibi <jahabibi@microsoft.com> - 1.0 | ||
- Initial release |