1%define name @PACKAGE@ 2%define version @VERSION@ 3%define release 1 4%define libsuffix @MERCATOR_LIB_SUFFIX@ 5 6Summary: A WorldForge terrain library. 7Name: %{name} 8Version: %{version} 9Release: %{release} 10License: GPL 11Group: System Environment/Libraries 12URL: http://www.worldforge.org/dev/eng/libraries/mercator 13Packager: Al Riddoch <alriddoch@googlemail.com> 14Vendor: WorldForge 15Distribution: Mason 16Source: %{name}-%{version}.tar.bz2 17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 18BuildRequires: wfmath-devel >= 0.3.2 19 20%description 21Mercator is designed to handle terrain data. 22 23%package devel 24Summary: A WorldForge terrain library headers. 25Group: Development/Libraries 26Requires: %{name} = %{version} wfmath-devel >= 0.3.2 27 28%description devel 29Mercator is designed to handle terrain data. 30 31%package static 32Summary: A WorldForge terrain library static libs. 33Group: Development/Libraries 34Requires: %{name} = %{version} wfmath-static >= 0.3.2 35 36%description static 37Mercator is designed to handle terrain data. 38 39%package docs 40Summary: A WorldForge terrain library documentation. 41Group: Documentation 42 43%description docs 44Mercator is designed to handle terrain data. 45 46%prep 47%setup -q 48 49%build 50CXXFLAGS=$RPM_OPT_FLAGS %configure --enable-static --disable-dependency-tracking 51make -j 3 52make docs 53 54%install 55rm -rf $RPM_BUILD_ROOT 56%makeinstall 57rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*.la 58 59%clean 60rm -rf $RPM_BUILD_ROOT 61 62%files 63%defattr(-,root,root) 64%{_libdir}/lib*.so.* 65%doc AUTHORS COPYING NEWS README 66 67%files devel 68%defattr(-,root,root) 69%{_libdir}/lib*.so 70%{_libdir}/pkgconfig/* 71%{_includedir}/* 72 73%files static 74%defattr(-,root,root) 75%{_libdir}/lib*.a 76 77%files docs 78%defattr(-,root,root) 79%doc doc/html/* 80