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