From ec5261f9b9d877e0788364f3dc54bff6c0b8a996 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Thu, 15 Oct 2009 18:27:25 +0200 Subject: [PATCH] Inserted docs and examples into rpm and added uninstall section. --- bpdyndnsd.spec | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/bpdyndnsd.spec b/bpdyndnsd.spec index 5c7b03b..d399a2f 100644 --- a/bpdyndnsd.spec +++ b/bpdyndnsd.spec @@ -37,15 +37,24 @@ cd .. install -m 640 config/bpdyndnsd.conf %{buildroot}/etc/bpdyndnsd/ %{__mkdir_p} %{buildroot}/etc/init.d install -m 755 scripts/bpdyndnsd %{buildroot}/etc/init.d/ +%{__mkdir_p} %{buildroot}/usr/share/doc/%{name}-%{version} +install -m 644 docs/* %{buildroot}/usr/share/doc/%{name}-%{version}/ +%{__mkdir_p} %{buildroot}/usr/share/doc/%{name}-%{version}/config_examples +install -m 644 config_examples/* %{buildroot}/usr/share/doc/%{name}-%{version}/config_examples/ %clean -#rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add bpdyndnsd /sbin/chkconfig --level 345 bpdyndnsd on +%postun +rm -rf /usr/share/doc/%{name}-%{version} +rm -rf /etc/bpdyndnsd + %files /etc/bpdyndnsd/bpdyndnsd.conf /etc/init.d/bpdyndnsd /usr/local/bin/bpdyndnsd +%doc /usr/share/doc/%{name}-%{version} -- 1.7.1