summaryrefslogtreecommitdiff
path: root/spec/javascriptrrd.spec
blob: 638615b70b2e7db5a7de5fb0b1d02738b64ccdf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

Name: javascriptrrd
Version: 0.6.4
Release: 1
Summary: A package to render RRD databases in javascript using Flot

Group: Amusements/Graphics
License: MIT
# To make source tar ball (Be sure to get version with flot):
# mv javascriptrrd-0.6.4-with-flot-0.7.7-tooltip-0.4.4.tgz javascriptrrd-0.6.4.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
javascriptRRD is a javascript library for reading Round Robin Database (RRD) archives (produced by rrdtool) using AJAX-like techniques. The library also provides graphing classes leveraging the Flot library.



%prep
%setup -q

%build

%install
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/javascriptrrd/js
install -m 644 src/lib/*.js $RPM_BUILD_ROOT/%{_datadir}/javascriptrrd/js
install -m 755 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd
install -m 755 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/rrds
install -m 644 data/example_rrds/*.rrd $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/rrds/
install -m 644 doc/*.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/
install -m 755 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/html
install -m 644 doc/lib/*.html $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/html
install -m 755 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/example_site
install -m 644 src/examples/*.html $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/example_site

# Include flot as well
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/javascriptrrd/flot
install -m 644 flot/*.js $RPM_BUILD_ROOT/%{_datadir}/javascriptrrd/flot
install -m 755 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/flot
install -m 644 flot/*.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/javascriptrrd/flot


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,nobody,nobody,-)
%{_defaultdocdir}/javascriptrrd/*
%{_datadir}/javascriptrrd/js/*.js
%{_datadir}/javascriptrrd/flot/*.js
%{_defaultdocdir}/javascriptrrd/flot

%changelog
* Sun Apr 7 2013 Igor Sfiligoi <isfiligoi@ucsd.edu> 0.6.4-1
Updated to th 0.6.4 release.

* Wed Aug 24 2011 Igor Sfiligoi <isfiligoi@ucsd.edu> 0.6.1-1
Updated to th 0.6.1 release.

* Thu Jun 8 2011 Derek Weitzel <dweitzel@cse.unl.edu> 0.6.0-1
Updated to the 0.6.0 release.

* Thu Jun 3 2010 Derek Weitzel <dweitzel@cse.unl.edu> 0.5.0-2
Added flot to the install as well