]> git.pld-linux.org Git - packages/libcsf.git/blob - libcsf.spec
6775689d65151f3b8b41e087b375071041add058
[packages/libcsf.git] / libcsf.spec
1 %define         snap    041111
2 %define         rel             5
3 Summary:        C API for reading and writing PCRaster maps
4 Summary(pl.UTF-8):      API C do odczytu i zapisu map PCRaster
5 Name:           libcsf
6 Version:        2.0
7 Release:        0.%{snap}.%{rel}
8 License:        BSD
9 Group:          Libraries
10 #Source0Download: http://pcraster.geog.uu.nl/csfapi.html
11 Source0:        http://pcraster.geo.uu.nl/download/dist/%{name}-%{version}-%{snap}.tar.gz
12 # Source0-md5:  20f60a66ef1df2500fc44c5e8371e26f
13 Source1:        http://pcraster.geo.uu.nl/download/doc/csfhtml.tar.gz
14 # Source1-md5:  059ac4a78e04df515e9f9cb411d1eb33
15 Patch0:         %{name}-shared.patch
16 Patch1:         %{name}-endian.patch
17 URL:            http://pcraster.geog.uu.nl/csfapi.html
18 BuildRequires:  autoconf >= 2.50
19 BuildRequires:  automake
20 BuildRequires:  libtool
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 C API for reading and writing PCRaster maps.
25
26 %description -l pl.UTF-8
27 API C do odczytu i zapisu map PCRaster.
28
29 %package devel
30 Summary:        Header files for CSF library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki CSF
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 Header files for CSF library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki CSF.
40
41 %package static
42 Summary:        Static CSF library
43 Summary(pl.UTF-8):      Statyczna biblioteka CSF
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static CSF library.
49
50 %description static -l pl.UTF-8
51 Statyczna biblioteka CSF.
52
53 %prep
54 %setup -q -n %{name}-%{version}-%{snap} -a1
55 %patch0 -p1
56 %patch1 -p1
57
58 %build
59 %{__libtoolize}
60 %{__aclocal}
61 %{__autoconf}
62 %{__automake}
63 %configure
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS COPYING README
81 %attr(755,root,root) %{_libdir}/libcsf.so.*.*.*
82 %ghost %{_libdir}/libcsf.so.0
83
84 %files devel
85 %defattr(644,root,root,755)
86 %doc csfhtml/*
87 %attr(755,root,root) %{_libdir}/libcsf.so
88 %{_libdir}/libcsf.la
89 %{_includedir}/*.h
90
91 %files static
92 %defattr(644,root,root,755)
93 %{_libdir}/libcsf.a
This page took 0.156785 seconds and 2 git commands to generate.