]>
Commit | Line | Data |
---|---|---|
8f6a42a4 JB |
1 | Summary: FYBA - library to read and write files in Norwegian geodata standard format SOSI |
2 | Summary(pl.UTF-8): FYBA - biblioteka do odczytu i zapisu plików w norweskim formacie danych geograficznych SOSI | |
3 | Name: fyba | |
4 | Version: 4.1.0 | |
5 | %define snap 20140410 | |
6 | Release: 0.%{snap}.1 | |
7 | License: MIT | |
8 | Group: Libraries | |
9 | Source0: %{name}.tar.xz | |
10 | # Source0-md5: f4d56ae4636d8def8ab68ac7bffb5316 | |
11 | Patch0: %{name}-link.patch | |
12 | URL: https://github.com/kartverket/fyba | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: libtool >= 2:2 | |
17 | BuildRequires: tar >= 1:1.22 | |
18 | BuildRequires: xz | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | OpenFYBA is the source code release of the FYBA library, distributed | |
23 | by the National Mapping Authority of Norway (Statens kartverk) to read | |
24 | and write files in the National geodata standard format SOSI. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | OpenFYBA to mające otwarty kod źródłowy wydanie biblioteki FYBA | |
28 | rozpowszechnianej przez Statens kartverk (norweską państwową | |
29 | instytucję geodezyjną) w celu odczytu i zapisu plików w państwowym | |
30 | formacie danych geograficznych SOSI. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for FYBA libraries | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek FYBA | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for FYBA libraries. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe bibliotek FYBA. | |
43 | ||
44 | %package static | |
45 | Summary: Static FYBA libraries | |
46 | Summary(pl.UTF-8): Statyczne biblioteki FYBA | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static FYBA libraries. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczne biblioteki FYBA. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{name} | |
58 | %patch0 -p1 | |
59 | ||
60 | %build | |
61 | %{__libtoolize} | |
62 | %{__aclocal} -I m4 | |
63 | %{__autoconf} | |
64 | %{__autoheader} | |
65 | %{__automake} | |
66 | %configure | |
67 | ||
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | # packaged as %doc | |
77 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/fyba | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc README | |
88 | %lang(nb) %doc doc/no_NB | |
89 | %attr(755,root,root) %{_libdir}/libfyba.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libfyba.so.0 | |
91 | %attr(755,root,root) %{_libdir}/libfygm.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libfygm.so.0 | |
93 | %attr(755,root,root) %{_libdir}/libfyut.so.*.*.* | |
94 | %attr(755,root,root) %ghost %{_libdir}/libfyut.so.0 | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libfyba.so | |
99 | %attr(755,root,root) %{_libdir}/libfygm.so | |
100 | %attr(755,root,root) %{_libdir}/libfyut.so | |
101 | %{_libdir}/libfyba.la | |
102 | %{_libdir}/libfygm.la | |
103 | %{_libdir}/libfyut.la | |
104 | %{_includedir}/fyba | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libfyba.a | |
109 | %{_libdir}/libfygm.a | |
110 | %{_libdir}/libfyut.a |