]> git.pld-linux.org Git - packages/libdsk.git/blob - libdsk.spec
- added header "Conditional build:"
[packages/libdsk.git] / libdsk.spec
1 # Conditional build:
2 %bcond_without  static_libs     # don't build static library
3 #
4 Summary:        libdsk library
5 Summary(pl):    Biblioteka libdsk
6 Name:           libdsk
7 Version:        1.1.4
8 Release:        1
9 License:        LGPL
10 Group:          Libraries
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)
20
21 # global config file is %{_datadir}/LibDsk/libdskrc
22 %define         _datadir        %{_sysconfdir}
23
24 %description
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
27 floppy drives.
28
29 %description -l pl
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
32 elastycznych.
33
34 %package devel
35 Summary:        libdsk library - development files
36 Summary(pl):    Pliki programistyczne biblioteki libdsk
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       bzip2-devel
40 Requires:       zlib-devel
41
42 %description devel
43 The libdsk-devel package contains the header files and documentation
44 needed to develop applications with libdsk.
45
46 %description devel -l pl
47 Pakiet libdsk-devel zawiera pliki nag³ówkowe i dokumentacjê potrzebne
48 do kompilowania aplikacji korzystaj±cych z libdsk.
49
50 %package static
51 Summary:        libdsk static library
52 Summary(pl):    Statyczna biblioteka libdsk
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 This package contains the static libdsk library.
58
59 %description static -l pl
60 Statyczna wersja biblioteki libdsk.
61
62 %prep
63 %setup -q
64
65 %{__perl} -pi -e 's,/usr/local/share,%{_datadir},' man/libdskrc.5
66
67 %build
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoconf}
71 %{__autoheader}
72 %{__automake}
73 %configure \
74         %{!?with_static_libs:--disable-static}
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc ChangeLog TODO
92 %attr(755,root,root) %{_bindir}/*
93 %attr(755,root,root) %{_libdir}/libdsk.so.*.*.*
94 %{_mandir}/man1/*
95 %{_mandir}/man5/libdskrc.5*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc doc/{libdsk.txt,cfi.html,TODO}
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_libdir}/libdsk.la
102 %{_includedir}/*.h
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/lib*.a
108 %endif
This page took 0.044548 seconds and 4 git commands to generate.