Commit e25bb6f8 authored by Luke Macken's avatar Luke Macken

RPM specfile improvements

parent 2f7142ce
%global betaver beta9
Name: pyrasite Name: pyrasite
Version: 2.0 Version: 2.0
Release: 0.1.%{betaver}%{?dist} Release: 1%{?dist}
Summary: Code injection and monitoring of running Python processes Summary: Code injection and monitoring of running Python processes
Group: Development/Languages Group: Development/Languages
License: GPLv3 License: GPLv3
URL: http://pyrasite.com URL: http://pyrasite.com
Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}%{betaver}.tar.gz Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python-devel BuildRequires: python-devel
...@@ -29,24 +27,23 @@ It is comprised of a command-line tool, and a Python API. This package ...@@ -29,24 +27,23 @@ It is comprised of a command-line tool, and a Python API. This package
also comes with a variety of example payloads. also comes with a variety of example payloads.
%prep %prep
%setup -q -n %{name}-%{version}%{betaver} %setup -q
%build %build
%{__python} setup.py build %{__python} setup.py build
%{__make} -C docs man make -C docs man
%check %check
%{__python} setup.py test %{__python} setup.py test
%install %install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot}
%{__mkdir_p} %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
%{__gzip} -c docs/_build/man/pyrasite.1 > %{buildroot}/%{_mandir}/man1/pyrasite.1.gz gzip -c docs/_build/man/pyrasite.1 > %{buildroot}/%{_mandir}/man1/pyrasite.1.gz
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst LICENSE docs %doc README.rst LICENSE
%doc %{_mandir}/man1/pyrasite.1.gz %doc %{_mandir}/man1/pyrasite.1.gz
%{_bindir}/pyrasite %{_bindir}/pyrasite
%{_bindir}/pyrasite-memory-viewer %{_bindir}/pyrasite-memory-viewer
...@@ -54,5 +51,5 @@ also comes with a variety of example payloads. ...@@ -54,5 +51,5 @@ also comes with a variety of example payloads.
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog
* Mon Mar 12 2012 Luke Macken <lmacken@redhat.com> 2.0-0.1.beta1 * Mon Mar 12 2012 Luke Macken <lmacken@redhat.com> 2.0-1
- Initial package for Fedora - Initial package for Fedora
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment