2 %bcond_without static_libs # don't build static library
4 Summary: libdsk library
5 Summary(pl): Biblioteka libdsk
11 Source0: http://www.seasip.demon.co.uk/Unix/LibDsk/%{name}-%{version}.tar.gz
12 # Source0-md5: 41cecf4269acde87f1ffeecb6a0965f9
13 URL: http://www.seasip.demon.co.uk/Unix/LibDsk/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: bzip2-devel
17 BuildRequires: libtool
18 BuildRequires: zlib-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 # global config file is %{_datadir}/LibDsk/libdskrc
22 %define _datadir %{_sysconfdir}
25 LibDsk is a library intended to give transparent access to floppy
26 drives and to the "disc image files" used by emulators to represent
30 LibDsk jest bibliotek±, która w sposób przezroczysty daje dostêp do
31 "obrazów dysków" u¿ywanych przez emulatory do reprezentowania dysków
35 Summary: libdsk library - development files
36 Summary(pl): Pliki programistyczne biblioteki libdsk
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
43 The libdsk-devel package contains the header files and documentation
44 needed to develop applications with libdsk.
46 %description devel -l pl
47 Pakiet libdsk-devel zawiera pliki nag³ówkowe i dokumentacjê potrzebne
48 do kompilowania aplikacji korzystaj±cych z libdsk.
51 Summary: libdsk static library
52 Summary(pl): Statyczna biblioteka libdsk
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 This package contains the static libdsk library.
59 %description static -l pl
60 Statyczna wersja biblioteki libdsk.
65 %{__perl} -pi -e 's,/usr/local/share,%{_datadir},' man/libdskrc.5
74 %{!?with_static_libs:--disable-static}
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/*
93 %attr(755,root,root) %{_libdir}/libdsk.so.*.*.*
95 %{_mandir}/man5/libdskrc.5*
98 %defattr(644,root,root,755)
99 %doc doc/{libdsk.txt,cfi.html,TODO}
100 %attr(755,root,root) %{_libdir}/lib*.so
104 %if %{with static_libs}
106 %defattr(644,root,root,755)