]> git.pld-linux.org Git - packages/libdsk.git/blame - libdsk.spec
- updated to 1.1.14
[packages/libdsk.git] / libdsk.spec
CommitLineData
f8de1ddc 1#
8be10291 2# Conditional build:
1e4cad1b 3%bcond_without static_libs # don't build static library
8be10291 4#
3041a557 5Summary: libdsk library
4b7bfcf5 6Summary(pl.UTF-8): Biblioteka libdsk
3041a557 7Name: libdsk
9170511a 8Version: 1.1.14
80948535 9Release: 1
3041a557 10License: LGPL
cd7884d1 11Group: Libraries
3041a557 12Source0: http://www.seasip.demon.co.uk/Unix/LibDsk/%{name}-%{version}.tar.gz
9170511a 13# Source0-md5: 640fc55167f4a244f02a14fa64b15dae
3041a557 14URL: http://www.seasip.demon.co.uk/Unix/LibDsk/
15BuildRequires: autoconf
16BuildRequires: automake
17BuildRequires: bzip2-devel
ccc7c5b5 18BuildRequires: libtool
3041a557 19BuildRequires: zlib-devel
20BuildRoot: %{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
26LibDsk is a library intended to give transparent access to floppy
27drives and to the "disc image files" used by emulators to represent
28floppy drives.
3041a557 29
8fbdac20
JR
30%description -l pl.UTF-8
31LibDsk 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 33elastycznych.
3041a557 34
35%package devel
03765dfe 36Summary: libdsk library - development files
4b7bfcf5 37Summary(pl.UTF-8): Pliki programistyczne biblioteki libdsk
3041a557 38Group: Development/Libraries
03765dfe
JB
39Requires: %{name} = %{version}-%{release}
40Requires: bzip2-devel
41Requires: zlib-devel
3041a557 42
43%description devel
44The libdsk-devel package contains the header files and documentation
45needed to develop applications with libdsk.
46
8fbdac20
JR
47%description devel -l pl.UTF-8
48Pakiet libdsk-devel zawiera pliki nagłówkowe i dokumentację potrzebne
49do kompilowania aplikacji korzystających z libdsk.
3041a557 50
51%package static
52Summary: libdsk static library
4b7bfcf5 53Summary(pl.UTF-8): Statyczna biblioteka libdsk
3041a557 54Group: Development/Libraries
03765dfe 55Requires: %{name}-devel = %{version}-%{release}
3041a557 56
57%description static
cd7884d1 58This package contains the static libdsk library.
3041a557 59
8fbdac20 60%description static -l pl.UTF-8
3041a557 61Statyczna 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
79rm -rf $RPM_BUILD_ROOT
ccc7c5b5 80
cd7884d1
JB
81%{__make} install \
82 DESTDIR=$RPM_BUILD_ROOT
3041a557 83
84%clean
85rm -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
This page took 0.054194 seconds and 4 git commands to generate.