]> git.pld-linux.org Git - packages/libdsk.git/blob - libdsk.spec
- updated to 1.1.14
[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.1.14
9 Release:        1
10 License:        LGPL
11 Group:          Libraries
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)
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}/*
94 %attr(755,root,root) %{_libdir}/libdsk.so.*.*.*
95 %{_mandir}/man1/*
96 %{_mandir}/man5/libdskrc.5*
97
98 %files devel
99 %defattr(644,root,root,755)
100 %doc doc/{libdsk.txt,cfi.html,TODO}
101 %attr(755,root,root) %{_libdir}/lib*.so
102 %{_libdir}/libdsk.la
103 %{_includedir}/*.h
104
105 %if %{with static_libs}
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/lib*.a
109 %endif
This page took 0.071948 seconds and 3 git commands to generate.