File lbreakout2.spec of Package Test

Summary: Breakout clone
Name: lbreakout2
Version: 2.4.1
Release: 2
Epoch: 0
License: GPL
Group: Amusements/Games
Source0: http://ftp1.sourceforge.net/lgames/%{name}-%{version}.tar.gz 
URL: http://lgames.sourceforge.net/index.php?project=LBreakout2
BuildRoot: %{_tmppath}/%{name}-root
Requires: /sbin/ldconfig

%description
Use lbreakout to learn RPM ^-^

%package server
Summary: lbreakout2 server
Group: Amusements/Games
%description server
lbreakout2 sub package server

%package graphics
Summary: lbreakout2 graphics
Group: Amusements/Games
%description graphics
lbreakout2 sub package graphics

%package doc
Summary: lbreakout2 doc
Group: Amusements/Games
%description doc
lbreakout2 sub package doc


%prep
%setup -q

%build
%configure
make

%install
rm -rf %{buildroot}
%makeinstall inst_dir=${RPM_BUILD_ROOT}/usr/share/games/lbreakout2 \
	hi_dir=${RPM_BUILD_ROOT}/var/lib/games \
	doc_dir=${RPM_BUILD_ROOT}/usr/share/doc
mv ${RPM_BUILD_ROOT}/usr/share/doc/lbreakout2 html

%clean
rm -rf %{buildroot}

%files
%attr(2555,root,games) %{_bindir}/lbreakout2
%defattr(0664, games, games)
%config %{_localstatedir}/lib/games/lbreakout2.hscr

%files server
%defattr(-,root,root)
%{_bindir}/lbreakout2server

%files graphics
%defattr(-,root,root)
%{_datadir}/games/%{name}

%files doc
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO html

%changelog
* Mon Apr 28 2003 FirstName LastName <email@address.com>
- Initial spec file