File: mercator.spec

package info (click to toggle)
mercator 0.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,244 kB
  • ctags: 923
  • sloc: sh: 10,927; cpp: 4,594; makefile: 128
file content (79 lines) | stat: -rw-r--r-- 1,671 bytes parent folder | download | duplicates (2)
1
2
3
4
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
%define name mercator
%define version 0.3.3
%define release 1
%define libsuffix -0.3

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

%description
Mercator is designed to handle terrain data.

%package devel
Summary: A WorldForge terrain library headers.
Group: Development/Libraries
Requires: %{name} = %{version} wfmath-devel >= 0.3.2

%description devel
Mercator is designed to handle terrain data.

%package static
Summary: A WorldForge terrain library static libs.
Group: Development/Libraries
Requires: %{name} = %{version} wfmath-static >= 0.3.2

%description static
Mercator is designed to handle terrain data.

%package docs
Summary: A WorldForge terrain library documentation.
Group: Documentation

%description docs
Mercator is designed to handle terrain data.

%prep
%setup -q

%build
CXXFLAGS=$RPM_OPT_FLAGS %configure --enable-static --disable-dependency-tracking
make -j 3
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}/*

%files static
%defattr(-,root,root)
%{_libdir}/lib*.a

%files docs
%defattr(-,root,root)
%doc doc/html/*