From 372eaa1d5765d0131f1bea29a3e023414c022dad Mon Sep 17 00:00:00 2001 From: Dave Love Date: Feb 17 2016 20:12:16 +0000 Subject: New package --- diff --git a/.gitignore b/.gitignore index e69de29..f5fddb4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/procenv-0.44.tar.gz diff --git a/procenv.spec b/procenv.spec new file mode 100644 index 0000000..2cc891e --- /dev/null +++ b/procenv.spec @@ -0,0 +1,112 @@ +# Copyright (c) 2012, 2014 Dave Love +# Copyright (c) 2015 James Hunt +# MIT licence, per Fedora policy + +Name: procenv +Version: 0.44 +Release: 1%{?dist} +Summary: Utility to show process environment + +Group: Applications/System +License: GPLv3+ +URL: https://github.com/jamesodhunt/procenv +Source0: https://github.com/jamesodhunt/procenv/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: expat, libcap-devel, libselinux-devel, check-devel +# Only used for testing; not in EPEL. +%if 0%{?fedora} +BuildRequires: perl-JSON-PP +%endif +%ifnarch %{arm} s390 s390x +BuildRequires: numactl-devel +%endif + +%description +This package contains a command-line tool that displays as much +detail about itself and its environment as possible. It can be +used as a test tool, to understand the type of environment a +process runs in, and for comparing system environments. + +%prep +%setup -q +# remove symlink +mv README.rst README + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%check +%if 0%{?fedora} +make check +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%{!?_licensedir:%global license %%doc} +%files +%{_bindir}/procenv +%{_mandir}/man1/procenv.1* +%doc README NEWS AUTHORS ChangeLog TODO +%license COPYING + +%changelog +* Wed Feb 17 2016 Dave Love - 0.44-1 +- New version + +* Thu Nov 5 2015 James Hunt - 0.42-1 +- Simplified BuildRequires now that autoreconf is no longer needed. + +* Thu Oct 29 2015 James Hunt - 0.41-1 +- New upstream version. +- BuildRequires: Added check-devel for new unit tests. +- This upstream version lacks a configure script, so added autoconf, + automake and libtool to BuildRequires, plus a call to autoreconf. +- Updated URL+Source0 as project has moved to github. +- Source0 includes magic URL fragment to rename the source to be of form + "-.tar.gz", rather than the bare ".tar.gz" github format. +- Add ChangeLog and TODO to package. + +* Thu Oct 15 2015 Dave Love - 0.40-1 +- New version +- Remove %%defattr +- Use %%license +- MIT licence for packaging + +* Thu Aug 28 2014 Dave Love - 0.36-1 +- New upstream version + +* Sat Jun 21 2014 Dave Love - 0.35-3 +- BR on libselinux-devel for EPEL5 +- Add doc files + +* Thu Jun 5 2014 Dave Love - 0.35-2 +- Only BR perl-JSON-PP and run tests on fedora +- Remove unnecessary BRs + +* Fri Jan 31 2014 James Hunt - 0.32-1 +- Update to 0.31. + +* Thu Jan 23 2014 James Hunt - 0.30-1 +- Update to 0.30. + +* Fri Nov 15 2013 Dave Love - 0.27-1 +- Update to 0.27, fix Source0 + +* Sun Dec 9 2012 Dave Love - 0.18-1 +- Update to 0.18 + +* Tue Dec 4 2012 Dave Love - 0.16-2 +- Re-fix locale-reporting. + +* Mon Dec 3 2012 Dave Love - 0.16-1 +- Update to 0.16 + +* Thu Nov 22 2012 Dave Love - 0.12-1 +- Initial packaging diff --git a/sources b/sources index e69de29..daff8b8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +80f004d45628d345a4dfbe51e8e21750 procenv-0.44.tar.gz