wfmath.spec 1.64 KB
Newer Older
1
%define name wfmath
2
%define version 1.0.2
3
%define release 1
4
%define libsuffix -1.0
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80

Summary: A math library.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: System Environment/Libraries
URL: http://www.worldforge.org/dev/eng/libraries/wfmath
Packager: Al Riddoch <alriddoch@googlemail.com>
Vendor: WorldForge
Distribution: Mason
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
This is the WorldForge math library. The primary focus of %{name} is
geometric objects.

%package devel
Summary: A math library headers.
Group: Development/Libraries
Requires: %{name} = %{version} libstdc++-devel >= 2.95.2

%description devel
This is the WorldForge math library. The primary focus of %{name} is
geometric objects.

%package static
Summary: A math library static libraries.
Group: Development/Libraries
Requires: %{name}-devel = %{version}

%description static
This is the WorldForge math library. The primary focus of %{name} is
geometric objects.

%package docs
Summary: A math library documentation.
Group: Documentation

%description docs
This is the WorldForge math library. The primary focus of %{name} is
geometric objects.

%prep
%setup -q

%build
CXXFLAGS=$RPM_OPT_FLAGS %configure --enable-static
make
make docs

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*.la

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%doc AUTHORS COPYING NEWS README

%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}%{libsuffix}

%files static
%{_libdir}/lib*.a

%files docs
%doc doc/html/*