find -name '*.pc' -exec sed -i -e 's/\$version/%{version}/g' {} \;
%install
-mkdir -p %{buildroot}/usr/share/licenses
-#if [ -d %{_datarootdir}/license/email-service]; then
-# rm -rf %{_datarootdir}/license/email-service
-#fi
-
# OS upgrade
mkdir -p %{buildroot}%{upgrade_script_path}
mkdir -p %{buildroot}%{upgrade_data_path}
%{_unitdir_user}/email-service.socket
%{_unitdir_user}/sockets.target.wants/email-service.socket
%{_datarootdir}/dbus-1/services/email-service.service
-%{_datarootdir}/licenses/email-service
+%license LICENSE
%attr(0775,root,root) /etc/rc.d/init.d/email-service
%{_bindir}/email-service_init_db.sh