summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca02edb)
raw | patch | inline | side by side (parent: ca02edb)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 22:07:30 +0000 (22:07 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 May 2004 22:07:30 +0000 (22:07 +0000) |
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
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
rrdtool.spec | patch | blob | history |
diff --git a/rrdtool.spec b/rrdtool.spec
index 5b9ab93bce609df66c87fbed30f9c1bebb32af1b..3b6db966f26881222c7885fdac7f277771c79ed3 100644 (file)
--- a/rrdtool.spec
+++ b/rrdtool.spec
%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"
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
%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
%{_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
-%{perlsite}/auto/RRDs/RRDs.bs
%{perlsite}/auto/RRDs/RRDs.so
%{_mandir}/man1/RRDp.1*
%{_mandir}/man1/RRDs.1*