]> git.pld-linux.org Git - packages/libdsk.git/blob - libdsk.spec
- updated to 1.3.0
[packages/libdsk.git] / libdsk.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        libdsk library
6 Summary(pl.UTF-8):      Biblioteka libdsk
7 Name:           libdsk
8 Version:        1.3.0
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://www.seasip.info/Unix/LibDsk/%{name}-%{version}.tar.gz
13 # Source0-md5:  b7554a3c4e9a1a5ca70befe576d52221
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)
21
22 # global config file is %{_datadir}/LibDsk/libdskrc
23 %define         _datadir        %{_sysconfdir}
24
25 %description
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.
29
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
33 elastycznych.
34
35 %package devel
36 Summary:        libdsk library - development files
37 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libdsk
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       bzip2-devel
41 Requires:       zlib-devel
42
43 %description devel
44 The libdsk-devel package contains the header files and documentation
45 needed to develop applications with libdsk.
46
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.
50
51 %package static
52 Summary:        libdsk static library
53 Summary(pl.UTF-8):      Statyczna biblioteka libdsk
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 This package contains the static libdsk library.
59
60 %description static -l pl.UTF-8
61 Statyczna wersja biblioteki libdsk.
62
63 %prep
64 %setup -q
65
66 %{__perl} -pi -e 's,/usr/local/share,%{_datadir},' man/libdskrc.5
67
68 %build
69 %{__libtoolize}
70 %{__aclocal}
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %configure \
75         %{!?with_static_libs:--disable-static}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc ChangeLog TODO
93 %attr(755,root,root) %{_bindir}/apriboot
94 %attr(755,root,root) %{_bindir}/dsk*
95 %attr(755,root,root) %{_bindir}/md3serial
96 %attr(755,root,root) %{_libdir}/libdsk.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libdsk.so.3
98 %{_mandir}/man1/apriboot.1*
99 %{_mandir}/man1/dsk*.1*
100 %{_mandir}/man1/md3serial.1*
101 %{_mandir}/man5/libdskrc.5*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %doc doc/{libdsk.txt,cfi.html,TODO}
106 %attr(755,root,root) %{_libdir}/libdsk.so
107 %{_libdir}/libdsk.la
108 %{_includedir}/libdsk.h
109
110 %if %{with static_libs}
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/libdsk.a
114 %endif
This page took 0.058785 seconds and 4 git commands to generate.