1%define name @PACKAGE@
2%define version @VERSION@
3%define release 1
4%define libsuffix @ATLAS_LIB_SUFFIX@
5
6Summary: The Atlas protocol C++ implementation
7Name: %{name}
8Version: %{version}
9Release: %{release}
10License: LGPL
11Group: System Environment/Libraries
12URL: http://www.worldforge.org/dev/eng/libraries/atlas_cpp
13Packager: Al Riddoch <alriddoch@zepler.org>
14Vendor: WorldForge
15Distribution: Mason
16Source: %{name}-%{version}.tar.bz2
17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
18
19%description
20This library implements the Atlas protocol, for use in client-server
21game applications. It is the standard implementation used by games written
22by the WorldForge project. This library is suitable for linking to either
23clients or servers.
24
25%package devel
26Summary: The Atlas protocol C++ implementation library headers and static libs.
27Group: Development/Libraries
28Requires: %{name} = %{version}
29
30%description devel
31This library implements the Atlas protocol, for use in client-server
32game applications. It is the standard implementation used by games written
33by the WorldForge project. This library is suitable for linking to either
34clients or servers.
35
36%prep
37%setup -q
38
39%build
40CXXFLAGS=$RPM_OPT_FLAGS %configure --enable-static
41make
42
43%install
44rm -rf $RPM_BUILD_ROOT
45%makeinstall
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(-,root,root)
52%{_libdir}/lib*.so.*
53%doc AUTHORS COPYING HACKING NEWS README ROADMAP THANKS TODO ChangeLog
54
55%files devel
56%defattr(-,root,root)
57%{_libdir}/lib*.so
58%{_libdir}/lib*.la
59%{_libdir}/lib*.a
60%{_libdir}/pkgconfig/*
61%{_includedir}/*
62