]>
Commit | Line | Data |
---|---|---|
be8d1911 JB |
1 | # |
2 | # Conditional build: | |
3ee2c0a7 JB |
3 | %bcond_with apidocs # build and package API docs (withdrawn in 1.5) |
4 | %bcond_with fortran # Fortran interface (removed from 1.5 sources) | |
5 | %bcond_without hdf5 # HDF5-based MAT v7.3 files support | |
be8d1911 JB |
6 | # |
7 | Summary: MATIO - Matlab MAT file I/O library | |
8 | Summary(pl.UTF-8): MATIO - biblioteka wejścia/wyjścia do plików MAT (Matlaba) | |
9 | Name: matio | |
3ee2c0a7 | 10 | Version: 1.5.0 |
707cea43 | 11 | Release: 2 |
3ee2c0a7 | 12 | License: BSD |
be8d1911 JB |
13 | Group: Libraries |
14 | Source0: http://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz | |
3ee2c0a7 | 15 | # Source0-md5: 42045916d470d038e4141b37bf33ca20 |
be8d1911 | 16 | Patch0: %{name}-link.patch |
be8d1911 JB |
17 | URL: http://matio.sourceforge.net/ |
18 | BuildRequires: autoconf >= 2.59 | |
19 | BuildRequires: automake >= 1:1.8 | |
20 | %{?with_apidocs:BuildRequires: doxygen} | |
21 | %{?with_fortran:BuildRequires: gcc-fortran} | |
3ee2c0a7 | 22 | %{?with_hdf5:BuildRequires: hdf5-devel} |
be8d1911 JB |
23 | BuildRequires: libtool >= 2:1.5 |
24 | BuildRequires: sed >= 4.0 | |
25 | BuildRequires: zlib-devel | |
26 | %if %{with apidocs} | |
27 | BuildRequires: doxygen | |
28 | BuildRequires: texlive-format-pdflatex | |
29 | BuildRequires: texlive-latex-ams | |
30 | BuildRequires: texlive-makeindex | |
31 | %endif | |
3ee2c0a7 JB |
32 | Obsoletes: matio-apidocs |
33 | Obsoletes: matio-fortran | |
34 | Obsoletes: matio-fortran-devel | |
35 | Obsoletes: matio-fortran-static | |
be8d1911 JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | libmatio is an open-source library for reading/writing Matlab MAT | |
40 | files. This library is designed for use by programs/libraries that do | |
41 | not have access or do not want to rely on Matlab's libmat shared | |
42 | library. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | libmatio to mająca otwarte źródłą biblioteka do odczytu i zapisu | |
46 | plików MAT (z programu Matlab). Jest przeznaczona dla programów i | |
47 | bibliotek nie mających dostępu albo nie chcących polegać na bibliotece | |
48 | współdzielonej libmat z Matlaba. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for MATIO library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MATIO | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
3ee2c0a7 | 55 | %{?with_hdf5:Requires: hdf5-devel} |
be8d1911 JB |
56 | Requires: zlib-devel |
57 | ||
58 | %description devel | |
59 | Header files for MATIO library. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki MATIO. | |
63 | ||
64 | %package static | |
65 | Summary: Static MATIO library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka MATIO | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static MATIO library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka MATIO. | |
75 | ||
76 | %package fortran | |
77 | Summary: Fortran interface for MATIO library | |
53e297e5 | 78 | Summary(pl.UTF-8): Interfejs Fortranu do biblioteki MATIO |
be8d1911 JB |
79 | Group: Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description fortran | |
83 | Fortran interface for MATIO library. | |
84 | ||
85 | %description fortran -l pl.UTF-8 | |
53e297e5 | 86 | Interfejs Fortranu do biblioteki MATIO. |
be8d1911 JB |
87 | |
88 | %package fortran-devel | |
89 | Summary: Header file for Fortran interface for MATIO library | |
53e297e5 | 90 | Summary(pl.UTF-8): Plik nagłówkowy interfejsu Fortranu do biblioteki MATIO |
be8d1911 JB |
91 | Group: Development/Libraries |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: %{name}-fortran = %{version}-%{release} | |
94 | ||
95 | %description fortran-devel | |
96 | Header file for Fortran interface for MATIO library. | |
97 | ||
98 | %description fortran-devel -l pl.UTF-8 | |
53e297e5 | 99 | Plik nagłówkowy interfejsu Fortranu do biblioteki MATIO. |
be8d1911 JB |
100 | |
101 | %package fortran-static | |
102 | Summary: Fortran interface for MATIO library - static library | |
53e297e5 | 103 | Summary(pl.UTF-8): Interfejs Fortranu do biblioteki MATIO - biblioteka statyczna |
be8d1911 JB |
104 | Group: Development/Libraries |
105 | Requires: %{name}-fortran-devel = %{version}-%{release} | |
106 | ||
107 | %description fortran-static | |
108 | Fortran interface for MATIO library - static library. | |
109 | ||
110 | %description fortran-static -l pl.UTF-8 | |
53e297e5 | 111 | Interfejs Fortranu do biblioteki MATIO - biblioteka statyczna. |
be8d1911 JB |
112 | |
113 | %package apidocs | |
114 | Summary: MATIO API documentation | |
115 | Summary(pl.UTF-8): Dokumentacja API biblioteki MATIO | |
116 | Group: Documentation | |
117 | ||
118 | %description apidocs | |
119 | API and internal documentation for MATIO library. | |
120 | ||
121 | %description apidocs -l pl.UTF-8 | |
122 | Dokumentacja API biblioteki MATIO. | |
123 | ||
124 | %prep | |
125 | %setup -q | |
126 | %patch0 -p1 | |
be8d1911 JB |
127 | |
128 | %build | |
129 | %{__libtoolize} | |
130 | %{__aclocal} -I config | |
131 | %{__autoconf} | |
132 | %{__automake} | |
133 | %configure \ | |
be8d1911 | 134 | %{?with_fortran:--enable-fortran} \ |
3ee2c0a7 | 135 | %{!?with_hdf5:--disable-mat73} \ |
be8d1911 JB |
136 | --enable-shared |
137 | ||
3ee2c0a7 | 138 | %{__make} |
be8d1911 JB |
139 | |
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %{__make} install \ | |
144 | DESTDIR=$RPM_BUILD_ROOT | |
145 | ||
be8d1911 JB |
146 | %clean |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %files | |
153 | %defattr(644,root,root,755) | |
3ee2c0a7 JB |
154 | %doc COPYING NEWS README |
155 | %attr(755,root,root) %{_bindir}/matdump | |
be8d1911 | 156 | %attr(755,root,root) %{_libdir}/libmatio.so.*.*.* |
3ee2c0a7 | 157 | %attr(755,root,root) %ghost %{_libdir}/libmatio.so.2 |
be8d1911 JB |
158 | |
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
161 | %attr(755,root,root) %{_libdir}/libmatio.so | |
162 | %{_libdir}/libmatio.la | |
163 | %{_includedir}/matio*.h | |
164 | %{_pkgconfigdir}/matio.pc | |
3ee2c0a7 | 165 | %{_mandir}/man3/Mat_*.3* |
be8d1911 JB |
166 | |
167 | %files static | |
168 | %defattr(644,root,root,755) | |
169 | %{_libdir}/libmatio.a | |
170 | ||
171 | %if %{with fortran} | |
172 | %files fortran | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_libdir}/libmatio-fortran.so.*.*.* | |
3ee2c0a7 | 175 | %attr(755,root,root) %ghost %{_libdir}/libmatio-fortran.so.2 |
be8d1911 JB |
176 | |
177 | %files fortran-devel | |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/libmatio-fortran.so | |
180 | %{_libdir}/libmatio-fortran.la | |
181 | %{_includedir}/matio.mod | |
182 | ||
183 | %files fortran-static | |
184 | %defattr(644,root,root,755) | |
185 | %{_libdir}/libmatio-fortran.a | |
186 | %endif | |
187 | ||
188 | %if %{with apidocs} | |
189 | %files apidocs | |
190 | %defattr(644,root,root,755) | |
191 | %doc doxygen/latex/libmatio.pdf | |
192 | %endif |