summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ca02edb)
These changes move the examples, which are primarily perl scripts,
in with the rrdtool-perl RPM package, thereby de-coupling the
rest of the RRDtool from Perl. Perhaps this is silliness ?
If there is no need for rrdtool separate from the Perl modules,
let me know, then I'll just create an rrdtool and an rrdtool-devel
RPM package (that would be a cleaner build and scripting, anyway).
-- Mike Slifcak
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@273
a5681a0c-68f1-0310-ab6d-
d61299d08faa
%prep
%setup -q -n rrdtool-%{cvsdate}
%prep
%setup -q -n rrdtool-%{cvsdate}
-%define deffont %{_datadir}/fonts/VeraMono.ttf
-perl -pi -e 's!^(#define\s+RRD_DEFAULT_FONT\s+).*!$1"%{deffont}"!' src/rrd_graph.c
+%define deffont %{_datadir}/%{name}/fonts/VeraMono.ttf
%build
CPPFLAGS="-I/usr/include/libart-2.0 -I/usr/include/freetype2"
%build
CPPFLAGS="-I/usr/include/libart-2.0 -I/usr/include/freetype2"
mkdir -p %{buildroot}%{perlsite}
mv %{buildroot}%{_libdir}/perl/* %{buildroot}%{perlsite}
rmdir %{buildroot}%{_libdir}/perl
mkdir -p %{buildroot}%{perlsite}
mv %{buildroot}%{_libdir}/perl/* %{buildroot}%{perlsite}
rmdir %{buildroot}%{_libdir}/perl
+rm -f %{buildroot}/%{perlsite}/auto/RRDs/RRDs.bs
# Fix up the man pages
if [ "%{_mandir}" != "/usr/share/man" ]; then
# Fix up the man pages
if [ "%{_mandir}" != "/usr/share/man" ]; then
%files
%defattr (-, root, root)
%doc 00README CONTRIBUTORS COPYING COPYRIGHT ChangeLog NEWS PROJECTS
%files
%defattr (-, root, root)
%doc 00README CONTRIBUTORS COPYING COPYRIGHT ChangeLog NEWS PROJECTS
-%doc README THREADS TODO examples
-%doc docs examples html
+%doc README THREADS TODO
+%doc docs/[a-z]* html/[a-z]*
+%doc examples/*.cgi
%{_bindir}/rrdcgi
%{_bindir}/rrdtool
%{_bindir}/rrdupdate
%{_bindir}/rrdcgi
%{_bindir}/rrdtool
%{_bindir}/rrdupdate
%{_libdir}/librrd_th.so
%files perl
%{_libdir}/librrd_th.so
%files perl
+%doc examples/*.pl
+%doc docs/RRD* html/RRD*
%defattr (-, root, root)
%{perlsite}/RRDp.pm
%{perlsite}/RRDs.pm
%dir %{perlsite}/auto/RRDs
%defattr (-, root, root)
%{perlsite}/RRDp.pm
%{perlsite}/RRDs.pm
%dir %{perlsite}/auto/RRDs
-%{perlsite}/auto/RRDs/RRDs.bs
%{perlsite}/auto/RRDs/RRDs.so
%{_mandir}/man1/RRDp.1*
%{_mandir}/man1/RRDs.1*
%{perlsite}/auto/RRDs/RRDs.so
%{_mandir}/man1/RRDp.1*
%{_mandir}/man1/RRDs.1*