3 # _without_dist_kernel without kernel from distribution
5 Summary: The fvhlib Library
6 Summary(pl): Biblioteka fvhlib
10 License: distributable
12 Source0: http://www.vanheusden.com/fvhlib/%{name}-%{version}.tgz
13 Patch0: %{name}-linking.patch
14 URL: http://www.vanheusden.com/fvhlib/
15 BuildRequires: openssl-devel
16 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Summary: Development files for fvhlib library
27 Summary(pl): Pliki nag³ówkowe dla biblioteki fvhlib
28 Group: Development/Libraries
29 Requires: %{name} = %{version}
32 The fvhlib-devel package contains the header files needed to develop
33 applications with fvhlib.
35 %description devel -l pl
36 Pliki nag³ówkowe potrzebne do rozwijania aplikacji korzystaj±cych z
40 Summary: Static development library for fvhlib
41 Summary(pl): Biblioteka statyczna fvhlib
42 Group: Development/Libraries
43 Requires: %{name}-devel = %{version}
46 The fvhlib-static package contains the static libraries of fvhlib.
48 %description static -l pl
49 Biblioteka statyczna fvhlib.
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
62 install libfvh.so.2.4 $RPM_BUILD_ROOT%{_libdir}
63 install libfvh.a $RPM_BUILD_ROOT%{_libdir}
64 install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
66 ln -s libfvh.so.2.4 $RPM_BUILD_ROOT%{_libdir}/libfvh.so
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_libdir}/libfvh.so.*.*
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_libdir}/libfvh.so
81 %{_includedir}/%{name}
84 %defattr(644,root,root,755)