From bbce65d227a4fba1e618c9a64bb2b27726be86c5 Mon Sep 17 00:00:00 2001 From: Derek Weitzel Date: Fri, 9 Jul 2010 17:02:16 +0000 Subject: Added the spec file. -Derek --- spec/javascriptrrd.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 spec/javascriptrrd.spec (limited to 'spec') diff --git a/spec/javascriptrrd.spec b/spec/javascriptrrd.spec new file mode 100644 index 0000000..92286e9 --- /dev/null +++ b/spec/javascriptrrd.spec @@ -0,0 +1,53 @@ + +Name: javascriptrrd +Version: 0.5.0 +Release: 2 +Summary: A package to render RRD databases in javascript using Flot + +Group: Amusements/Graphics +License: MIT +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description + +%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 +* Thu Jun 3 2010 Derek Weitzel 0.5.0-2 +Added flot to the install as well + + -- cgit v1.2.3-54-g00ecf