]>
Commit | Line | Data |
---|---|---|
f8de1ddc | 1 | # |
8be10291 | 2 | # Conditional build: |
1e4cad1b | 3 | %bcond_without static_libs # don't build static library |
8be10291 | 4 | # |
3041a557 | 5 | Summary: libdsk library |
4b7bfcf5 | 6 | Summary(pl.UTF-8): Biblioteka libdsk |
3041a557 | 7 | Name: libdsk |
9170511a | 8 | Version: 1.1.14 |
80948535 | 9 | Release: 1 |
3041a557 | 10 | License: LGPL |
cd7884d1 | 11 | Group: Libraries |
3041a557 | 12 | Source0: http://www.seasip.demon.co.uk/Unix/LibDsk/%{name}-%{version}.tar.gz |
9170511a | 13 | # Source0-md5: 640fc55167f4a244f02a14fa64b15dae |
3041a557 | 14 | URL: http://www.seasip.demon.co.uk/Unix/LibDsk/ |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: bzip2-devel | |
ccc7c5b5 | 18 | BuildRequires: libtool |
3041a557 | 19 | BuildRequires: zlib-devel |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
80948535 JB |
22 | # global config file is %{_datadir}/LibDsk/libdskrc |
23 | %define _datadir %{_sysconfdir} | |
24 | ||
3041a557 | 25 | %description |
ccc7c5b5 JB |
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 | |
28 | floppy drives. | |
3041a557 | 29 | |
8fbdac20 JR |
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 | |
ccc7c5b5 | 33 | elastycznych. |
3041a557 | 34 | |
35 | %package devel | |
03765dfe | 36 | Summary: libdsk library - development files |
4b7bfcf5 | 37 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libdsk |
3041a557 | 38 | Group: Development/Libraries |
03765dfe JB |
39 | Requires: %{name} = %{version}-%{release} |
40 | Requires: bzip2-devel | |
41 | Requires: zlib-devel | |
3041a557 | 42 | |
43 | %description devel | |
44 | The libdsk-devel package contains the header files and documentation | |
45 | needed to develop applications with libdsk. | |
46 | ||
8fbdac20 JR |
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. | |
3041a557 | 50 | |
51 | %package static | |
52 | Summary: libdsk static library | |
4b7bfcf5 | 53 | Summary(pl.UTF-8): Statyczna biblioteka libdsk |
3041a557 | 54 | Group: Development/Libraries |
03765dfe | 55 | Requires: %{name}-devel = %{version}-%{release} |
3041a557 | 56 | |
57 | %description static | |
cd7884d1 | 58 | This package contains the static libdsk library. |
3041a557 | 59 | |
8fbdac20 | 60 | %description static -l pl.UTF-8 |
3041a557 | 61 | Statyczna wersja biblioteki libdsk. |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
80948535 JB |
66 | %{__perl} -pi -e 's,/usr/local/share,%{_datadir},' man/libdskrc.5 |
67 | ||
3041a557 | 68 | %build |
3041a557 | 69 | %{__libtoolize} |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
cd7884d1 | 72 | %{__autoheader} |
3041a557 | 73 | %{__automake} |
1e4cad1b | 74 | %configure \ |
75 | %{!?with_static_libs:--disable-static} | |
3041a557 | 76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
ccc7c5b5 | 80 | |
cd7884d1 JB |
81 | %{__make} install \ |
82 | DESTDIR=$RPM_BUILD_ROOT | |
3041a557 | 83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
ccc7c5b5 JB |
87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
3041a557 | 89 | |
90 | %files | |
91 | %defattr(644,root,root,755) | |
cd7884d1 | 92 | %doc ChangeLog TODO |
3041a557 | 93 | %attr(755,root,root) %{_bindir}/* |
cd7884d1 JB |
94 | %attr(755,root,root) %{_libdir}/libdsk.so.*.*.* |
95 | %{_mandir}/man1/* | |
80948535 | 96 | %{_mandir}/man5/libdskrc.5* |
3041a557 | 97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
cd7884d1 | 100 | %doc doc/{libdsk.txt,cfi.html,TODO} |
3041a557 | 101 | %attr(755,root,root) %{_libdir}/lib*.so |
102 | %{_libdir}/libdsk.la | |
cd7884d1 | 103 | %{_includedir}/*.h |
3041a557 | 104 | |
1e4cad1b | 105 | %if %{with static_libs} |
3041a557 | 106 | %files static |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/lib*.a | |
1e4cad1b | 109 | %endif |