]> git.pld-linux.org Git - packages/matio.git/blame - matio.spec
- release 2 (by relup.sh)
[packages/matio.git] / matio.spec
CommitLineData
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#
7Summary: MATIO - Matlab MAT file I/O library
8Summary(pl.UTF-8): MATIO - biblioteka wejścia/wyjścia do plików MAT (Matlaba)
9Name: matio
3ee2c0a7 10Version: 1.5.0
707cea43 11Release: 2
3ee2c0a7 12License: BSD
be8d1911
JB
13Group: Libraries
14Source0: http://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz
3ee2c0a7 15# Source0-md5: 42045916d470d038e4141b37bf33ca20
be8d1911 16Patch0: %{name}-link.patch
be8d1911
JB
17URL: http://matio.sourceforge.net/
18BuildRequires: autoconf >= 2.59
19BuildRequires: automake >= 1:1.8
20%{?with_apidocs:BuildRequires: doxygen}
21%{?with_fortran:BuildRequires: gcc-fortran}
3ee2c0a7 22%{?with_hdf5:BuildRequires: hdf5-devel}
be8d1911
JB
23BuildRequires: libtool >= 2:1.5
24BuildRequires: sed >= 4.0
25BuildRequires: zlib-devel
26%if %{with apidocs}
27BuildRequires: doxygen
28BuildRequires: texlive-format-pdflatex
29BuildRequires: texlive-latex-ams
30BuildRequires: texlive-makeindex
31%endif
3ee2c0a7
JB
32Obsoletes: matio-apidocs
33Obsoletes: matio-fortran
34Obsoletes: matio-fortran-devel
35Obsoletes: matio-fortran-static
be8d1911
JB
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39libmatio is an open-source library for reading/writing Matlab MAT
40files. This library is designed for use by programs/libraries that do
41not have access or do not want to rely on Matlab's libmat shared
42library.
43
44%description -l pl.UTF-8
45libmatio to mająca otwarte źródłą biblioteka do odczytu i zapisu
46plików MAT (z programu Matlab). Jest przeznaczona dla programów i
47bibliotek nie mających dostępu albo nie chcących polegać na bibliotece
48współdzielonej libmat z Matlaba.
49
50%package devel
51Summary: Header files for MATIO library
52Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MATIO
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
3ee2c0a7 55%{?with_hdf5:Requires: hdf5-devel}
be8d1911
JB
56Requires: zlib-devel
57
58%description devel
59Header files for MATIO library.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki MATIO.
63
64%package static
65Summary: Static MATIO library
66Summary(pl.UTF-8): Statyczna biblioteka MATIO
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static MATIO library.
72
73%description static -l pl.UTF-8
74Statyczna biblioteka MATIO.
75
76%package fortran
77Summary: Fortran interface for MATIO library
53e297e5 78Summary(pl.UTF-8): Interfejs Fortranu do biblioteki MATIO
be8d1911
JB
79Group: Libraries
80Requires: %{name} = %{version}-%{release}
81
82%description fortran
83Fortran interface for MATIO library.
84
85%description fortran -l pl.UTF-8
53e297e5 86Interfejs Fortranu do biblioteki MATIO.
be8d1911
JB
87
88%package fortran-devel
89Summary: Header file for Fortran interface for MATIO library
53e297e5 90Summary(pl.UTF-8): Plik nagłówkowy interfejsu Fortranu do biblioteki MATIO
be8d1911
JB
91Group: Development/Libraries
92Requires: %{name}-devel = %{version}-%{release}
93Requires: %{name}-fortran = %{version}-%{release}
94
95%description fortran-devel
96Header file for Fortran interface for MATIO library.
97
98%description fortran-devel -l pl.UTF-8
53e297e5 99Plik nagłówkowy interfejsu Fortranu do biblioteki MATIO.
be8d1911
JB
100
101%package fortran-static
102Summary: Fortran interface for MATIO library - static library
53e297e5 103Summary(pl.UTF-8): Interfejs Fortranu do biblioteki MATIO - biblioteka statyczna
be8d1911
JB
104Group: Development/Libraries
105Requires: %{name}-fortran-devel = %{version}-%{release}
106
107%description fortran-static
108Fortran interface for MATIO library - static library.
109
110%description fortran-static -l pl.UTF-8
53e297e5 111Interfejs Fortranu do biblioteki MATIO - biblioteka statyczna.
be8d1911
JB
112
113%package apidocs
114Summary: MATIO API documentation
115Summary(pl.UTF-8): Dokumentacja API biblioteki MATIO
116Group: Documentation
117
118%description apidocs
119API and internal documentation for MATIO library.
120
121%description apidocs -l pl.UTF-8
122Dokumentacja 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
141rm -rf $RPM_BUILD_ROOT
142
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT
145
be8d1911
JB
146%clean
147rm -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
This page took 0.135542 seconds and 4 git commands to generate.