3 %bcond_without static_libs # don't build static library
5 Summary: libdsk library
6 Summary(pl.UTF-8): Biblioteka libdsk
12 Source0: http://www.seasip.demon.co.uk/Unix/LibDsk/%{name}-%{version}.tar.gz
13 # Source0-md5: 640fc55167f4a244f02a14fa64b15dae
14 URL: http://www.seasip.demon.co.uk/Unix/LibDsk/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: bzip2-devel
18 BuildRequires: libtool
19 BuildRequires: zlib-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # global config file is %{_datadir}/LibDsk/libdskrc
23 %define _datadir %{_sysconfdir}
26 LibDsk is a library intended to give transparent access to floppy
27 drives and to the "disc image files" used by emulators to represent
30 %description -l pl.UTF-8
31 LibDsk jest biblioteką, która w sposób przezroczysty daje dostęp do
32 "obrazów dysków" używanych przez emulatory do reprezentowania dysków
36 Summary: libdsk library - development files
37 Summary(pl.UTF-8): Pliki programistyczne biblioteki libdsk
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
44 The libdsk-devel package contains the header files and documentation
45 needed to develop applications with libdsk.
47 %description devel -l pl.UTF-8
48 Pakiet libdsk-devel zawiera pliki nagłówkowe i dokumentację potrzebne
49 do kompilowania aplikacji korzystających z libdsk.
52 Summary: libdsk static library
53 Summary(pl.UTF-8): Statyczna biblioteka libdsk
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 This package contains the static libdsk library.
60 %description static -l pl.UTF-8
61 Statyczna wersja biblioteki libdsk.
66 %{__perl} -pi -e 's,/usr/local/share,%{_datadir},' man/libdskrc.5
75 %{!?with_static_libs:--disable-static}
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_libdir}/libdsk.so.*.*.*
96 %{_mandir}/man5/libdskrc.5*
99 %defattr(644,root,root,755)
100 %doc doc/{libdsk.txt,cfi.html,TODO}
101 %attr(755,root,root) %{_libdir}/lib*.so
105 %if %{with static_libs}
107 %defattr(644,root,root,755)