X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=bpdyndnsd.spec;h=3a30ebf2b1c609bf6e6bf7076cd4a81003488210;hb=HEAD;hp=c0872624635d486d8383e3fb4af80ff06addb124;hpb=a62fd998267fc7ee3f0d91371d3a593e204cf027;p=bpdyndnsd diff --git a/bpdyndnsd.spec b/bpdyndnsd.spec index c087262..3a30ebf 100644 --- a/bpdyndnsd.spec +++ b/bpdyndnsd.spec @@ -1,6 +1,6 @@ Name: bpdyndnsd Summary: bpdyndnsd - bullet proof dyndns update daemon -Version: 0.1 +Version: 1.1 Release: 1 License: GPLv2 + Linking Exception Group: Applications/Internet @@ -14,7 +14,7 @@ BuildPreReq: cmake >= 2.6 BuildRequires: boost-devel >= 1.37.0 BuildRequires: curl-devel >= 7.19.6 BuildRequires: openssl-devel >= 0.9.8k -Requires: boost >= 1.37.0 +Requires: boost-serialization >= 1.37.0 Requires: curl >= 7.19.6 Requires: openssl >= 0.9.8k @@ -30,7 +30,7 @@ cd build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" -cmake -DCMAKE_INSTALL_PREFIX="/usr/local" ../ +cmake -DCMAKE_INSTALL_PREFIX="/usr" ../ make %{?_smp_mflags} VERBOSE=1 @@ -46,6 +46,9 @@ install -m 755 scripts/bpdyndnsd %{buildroot}/etc/init.d/ 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/ +%{__mkdir_p} %{buildroot}/etc/sysconfig +install -m 644 config/bpdyndnsd %{buildroot}/etc/sysconfig/ +%{__mkdir_p} %{buildroot}/var/state/bpdyndnsd %clean rm -rf $RPM_BUILD_ROOT @@ -54,12 +57,10 @@ rm -rf $RPM_BUILD_ROOT /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 +%config(noreplace) /etc/bpdyndnsd/bpdyndnsd.conf +%config(noreplace) /etc/sysconfig/bpdyndnsd /etc/init.d/bpdyndnsd -/usr/local/bin/bpdyndnsd +/usr/bin/bpdyndnsd %doc /usr/share/doc/%{name}-%{version} +%dir /var/state/bpdyndnsd