[Bug 726131] Review Request: yourls - your own url shortening service

bugzilla at redhat.com bugzilla at redhat.com
Wed Aug 3 13:17:17 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=726131

--- Comment #4 from Nathan Owe <ndowens04 at gmail.com> 2011-08-03 09:17:16 EDT ---
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/%{name}/config.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/yourls.conf
%doc changelog.txt readme.html sample-public-api.php.txt
%doc sample-public-front-page.php.txt sample-remote-api-call.php.txt
%dir %{_sysconfdir}/%{name}/
%{_datadir}/%{name}/

Instead you can do:
config(noreplace) %{_sysconfdir}/%{name}/
config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%doc changelog.txt readme.html sample-public-api.php.txt
%doc sample-public-front-page.php.txt sample-remote-api-call.php.txt
%{_datadir}/%{name}/

If you are also going to build for RHEL then leave %defattr(-,root,root,-).
Also the %clean section isn't needed unless for RHEL either

BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXX)
Isn't needed unless for RHEL as well

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list