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