Get rid of ugly chmod's.

This commit is contained in:
Petr Sabata 2011-02-17 15:42:26 +01:00
parent 432cc93b9b
commit 25da9815a7
1 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,6 @@
Name: tintin
Version: 2.00.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: TinTin++, aka tt++, is a free MUD client
Group: Applications/Internet
License: GPLv2+
@ -38,26 +38,27 @@ make %{?_smp_mflags}
%install
cd src
make install DESTDIR=%{buildroot}
cd ..
chmod 644 COPYING CREDITS FAQ INSTALL README
chmod 644 SCRIPTS
chmod 644 docs/* && mv -v docs/* .
chmod 644 mods/*.mods && mv -v mods/*.mods .
cd ../mods
iconv -f latin1 -t utf8 igr.mods > igr.mods.utf8 && mv igr.mods.utf8 igr.mods
%files
%defattr(-,root,root,-)
%doc COPYING CREDITS FAQ INSTALL README *.mods
%defattr(-,root,root,755)
%doc %attr(644,root,root) COPYING
%doc %attr(644,root,root) CREDITS FAQ INSTALL README
%doc %attr(755,root,root) mods
%{_bindir}/tt++
%files doc
%defattr(-,root,root,-)
%doc COPYING
%doc chat_protocol.txt
%doc tintin19.txt
%doc SCRIPTS
%defattr(-,root,root,755)
%doc %attr(644,root,root) COPYING
%doc %attr(644,root,root) SCRIPTS
%doc %attr(644,root,root) docs/*
%changelog
* Wed Feb 16 2011 Petr Sabata <psabata@redhat.com> - 2.00.5-4
- Changed documentation files structure, removed chmod's in favor of attr's
- Thanks to William Lima
* Tue Feb 15 2011 Petr Sabata <psabata@redhat.com> - 2.00.5-3
- igr.mods now gets converted to proper utf8