diff --git a/atheme.spec b/atheme.spec index 2004893..1c7d54a 100644 --- a/atheme.spec +++ b/atheme.spec @@ -107,8 +107,6 @@ make install DESTDIR="%buildroot" DOCDIR="%_docdir/%name"; # additional documentation mkdir -p "$b/%_docdir/%name" install -m 0644 contrib/*.php contrib/*.pl TODO "$b/%_docdir/%name" -mv "$b/%_sysconfdir/%name"/*.example "$b/%_docdir/%name/" -install -pm0644 "%{S:9}" "$b/%_sysconfdir/%name/atheme.conf" mkdir -p "$b/%_unitdir" "$b/%_libexecdir/tmpfiles.d"; ln -s service "$b/%_sbindir/rcatheme" @@ -126,10 +124,8 @@ cat >"$b/%_prefix/lib/tmpfiles.d/atheme.conf" <<-EOF d /run/atheme 0755 atheme atheme - EOF -# config files -# TODO: check if we should change any defaults and patch it. -cp -v "$b/%_sysconfdir/%name"/atheme.conf{.example,} -cp -v "$b/%_sysconfdir/%name"/atheme.motd{.example,} +mv "$b/%_sysconfdir/%name"/*example "$b/%_docdir/%name/" +install -pm0644 "%{S:9}" "$b/%_sysconfdir/%name/atheme.conf" %find_lang %name %fdupes %buildroot/%_prefix