Skip to content

Commit

Permalink
improvements to spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
jduncan-rva committed Feb 24, 2014
1 parent 5f5e576 commit a287321
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
22 changes: 20 additions & 2 deletions NewRHELic.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define name NewRHELic
%define version 0.1
%define unmangled_version 0.1
%define release 11
%define release 13

Summary: RHEL/CentOS monitoring plugin for New Relic
Name: %{name}
Expand All @@ -17,7 +17,13 @@ Packager: Jamie Duncan <jduncan@redhat.com>
Url: https://github.com/jduncan-rva/newRHELic

%description
A RHEL 6/CentOS 6-specific monitoring plugin for New Relic (http://www.newrelic.com)
A Red Hat Enterprise Linux-specific monitoring plugin for New Relic (http://www.newrelic.com). A Red Hat Community supported project. Details at http://newrelic.com/plugins/jamie-duncan/154. Currently working for RHEL 6 only.

%pre
if [ -a '/tmp/newrhelic.pid' ]
then
/sbin/service newrhelic-plugin stop
fi

%prep
%setup -n %{name}-%{unmangled_version}
Expand All @@ -31,13 +37,25 @@ python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig newrhelic-plugin on
/sbin/service newrhelic-plugin start

%files -f INSTALLED_FILES
%defattr(-,root,root)
%config(noreplace) /etc/newrhelic.conf

%postun

%changelog
* Sun Feb 23 2014 Jamie Duncan <jduncan@redhat.com> 0.1-13
- improvements to spec file. looking to retire setup.cfg soon

* Sat Feb 14 2014 Jamie Duncan <jduncan@redhat.com> 0.1-12
- added spec file for future enhancement
- added socket timeout (hard-coded @ 5seconds) to try and fix
- the weird dead read syndrome we are seeing

* Sun Dec 15 2013 Jamie Duncan <jduncan@redhat.com> 0.1-10
- enabled an actual logging ability
- enabled better error handling for when data is slow to be retrieved
Expand Down
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
[bdist_rpm]
release = 11
release = 12
packager = Jamie Duncan <jduncan@redhat.com>
group = Monitoring
#pre_install = scripts/pre_install.sh
#post_install = scripts/post_install.sh
changelog =
* Sat Feb 15 2014 Jamie Duncan <jduncan@redhat.com> 0.1-12
- added spec file for future enhancement
- added socket timeout (hard-coded @ 5seconds) to try and fix
- the weird dead read syndrome we are seeing

* Sun Dec 15 2013 Jamie Duncan <jduncan@redhat.com> 0.1-10
- enabled an actual logging ability
- enabled better error handling for when data is slow to be retrieved
Expand Down

0 comments on commit a287321

Please sign in to comment.