]> git.pld-linux.org Git - packages/libspectrum.git/blob - libspectrum.spec
- added bcond_without static_libs
[packages/libspectrum.git] / libspectrum.spec
1 # Conditional build:
2 %bcond_without  static_libs     # don't build static library
3 #
4 Summary:        ZX Spectrum emulator file format library
5 Summary(pl.UTF-8):      Biblioteka do obsługi formatów plików emulatorów ZX Spectrum
6 Name:           libspectrum
7 Version:        0.3.0.1
8 Release:        1
9 License:        GPL
10 Group:          Libraries
11 Source0:        http://dl.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
12 # Source0-md5:  0c3115064aa38cd0c6a5a5a286b38f79
13 URL:            http://fuse-emulator.sourceforge.net/libspectrum.php
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  bzip2-devel >= 1.0
17 BuildRequires:  glib2-devel >= 2.0.0
18 BuildRequires:  libgcrypt-devel
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig >= 1:0.7
21 BuildRequires:  zlib-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 libspectrum is a library designed to make the input and output of some
26 ZX Spectrum emulator files slightly easier. It is intended to be
27 usable on Unix variants, Win32 and Mac OS X.
28
29 %description -l pl.UTF-8
30 libspectrum jest biblioteką zaprojektowaną, by ułatwić zapis i odczyt
31 plików wykorzystywanych przez emulatory ZX Spectrum. Można jej używać
32 na różnych wariantach systemu Unix, Win32 i Mac OS X.
33
34 %package devel
35 Summary:        ZX Spectrum emulator file format library - development
36 Summary(pl.UTF-8):      Część dla programistów używających biblioteki libspectrum
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       bzip2-devel >= 1.0
40 Requires:       glib2-devel >= 2.0.0
41 Requires:       libgcrypt-devel
42 Requires:       zlib-devel
43
44 %description devel
45 The libspectrum-devel package contains the header files and documentation
46 needed to develop applications with libspectrum.
47
48 %description devel -l pl.UTF-8
49 Pakiet libspectrum-devel zawiera pliki nagłówkowe i dokumentację potrzebne
50 do kompilowania aplikacji korzystających z libspectrum.
51
52 %package static
53 Summary:        ZX Spectrum emulator file format static library
54 Summary(pl.UTF-8):      Statyczna biblioteka libspectrum
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 The libspectrum-static package contains the static libraries of libspectrum.
60
61 %description static -l pl.UTF-8
62 Statyczna wersja biblioteki libspectrum.
63
64 %prep
65 %setup -q
66
67 # don't BR both glib versions
68 echo 'AC_DEFUN([AM_PATH_GLIB],[$3])' >> acinclude.m4
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         %{!?with_static_libs:--disable-static}
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README THANKS
95 %attr(755,root,root) %{_libdir}/libspectrum.so.*.*.*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc doc/libspectrum.txt
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_libdir}/libspectrum.la
102 %{_includedir}/libspectrum.h
103 %{_mandir}/man3/libspectrum.3*
104
105 %if %{with static_libs}
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libspectrum.a
109 %endif
This page took 0.067967 seconds and 3 git commands to generate.