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