From: Bjoern Sikora Date: Thu, 15 Oct 2009 16:27:25 +0000 (+0200) Subject: Inserted docs and examples into rpm and added uninstall section. X-Git-Tag: v1.1~138 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=ec5261f9b9d877e0788364f3dc54bff6c0b8a996;p=bpdyndnsd Inserted docs and examples into rpm and added uninstall section. --- 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}