diff --git a/authd.spec b/authd.spec
index 8d13db1..af50e05 100644
--- a/authd.spec
+++ b/authd.spec
@@ -1,7 +1,7 @@
 Summary: A RFC 1413 ident protocol daemon
 Name: authd
 Version: 1.4.3
-Release: 28%{?dist}
+Release: 30%{?dist}
 License: GPLv2+
 Group: System Environment/Daemons
 URL: https://fedorahosted.org/authd/
@@ -38,7 +38,7 @@ of pidentd.
 sed -i -e "s|/etc|%{_sysconfdir}|" config.h
 
 %build
-make prefix=%{_prefix}
+CFLAGS=$RPM_OPT_FLAGS make prefix=%{_prefix}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -67,14 +67,17 @@ chmod o-rw %{_sysconfdir}/ident.key
 service xinetd reload
 
 %files -f authd.lang
-%defattr(640,root,root,-)
-%verify(not md5 size mtime user group) %config(noreplace) %{_sysconfdir}/ident.key
 %defattr(-,root,root,-)
+%verify(not md5 size mtime user group) %config(noreplace) %attr(640,root,root) %{_sysconfdir}/ident.key
 %doc COPYING README.html rfc1413.txt
 %config(noreplace) %{_sysconfdir}/xinetd.d/auth
 %{_sbindir}/in.authd
 
 %changelog
+* Mon Jun 14 2010 Roman Rakus <rrakus@redhat.com> - 1.4.3-30
+- Use only once defattr macro
+- Use RPM_OPT_FLAGS for CFLAGS in build section
+
 * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.3-28
 - rebuilt with new openssl