]> git.pld-linux.org Git - packages/libsidplay2.git/blob - libsidplay2.spec
a323b91112ee585234db53926e134c74222306c5
[packages/libsidplay2.git] / libsidplay2.spec
1 Summary:        A Commodore 64 music player and SID chip emulator library
2 Summary(pl.UTF-8):      Biblioteka odtwarzająca muzyczki z Commodore 64 i emulująca układ SID
3 Name:           libsidplay2
4 Version:        2.1.1
5 Release:        6
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/sidplay2/sidplay-libs-%{version}.tar.gz
9 # Source0-md5:  7ea0ba5dc1da4604d15eaae001f7d2a7
10 Patch0:         gcc4-fixes.patch
11 Patch1:         configure-fixes.patch
12 Patch2:         pkg-config.patch
13 URL:            http://sidplay2.sourceforge.net/
14 BuildRequires:  autoconf >= 2.50
15 BuildRequires:  automake
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtool >= 2:1.5
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Sidplay 2 is the second in the Sidplay series originally developed by
22 Michael Schwendt. This version is written by Simon White and is cycle
23 accurate for improved sound reproduction. Sidplay 2 is capable of
24 playing all C64 mono and stereo file formats.
25
26 %description -l pl.UTF-8
27 Sidplay 2 to druga wersja z serii Sidplay oryginalnie stworzonej przez
28 Michaela Schwendta. Ta wersja została napisana przez Simona White'a i
29 jest dokładna co do cyklu w celu zwiększonej wierności reprodukcji
30 dźwięku. Sidplay 2 może odtwarzać wszystkie formaty plików mono i
31 stereo z C64.
32
33 %package devel
34 Summary:        Header files for compiling apps that use libsidplay
35 Summary(pl.UTF-8):      Pliki nagłówkowe do budowania aplikacji używających libsidplay
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       libstdc++-devel
39
40 %description devel
41 This package contains the header files for compiling applications that
42 use libsidplay.
43
44 %description devel -l pl.UTF-8
45 Ten pakiet zawiera pliki nagłówkowe do budowania aplikacji używających
46 biblioteki libsidplay.
47
48 %package static
49 Summary:        Static libsidplay library
50 Summary(pl.UTF-8):      Statyczna biblioteka libsidplay
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 This package contains static version of libsidplay.
56
57 %description static -l pl.UTF-8
58 Ten pakiet zawiera statyczną wersję libsidplay.
59
60 %prep
61 %setup -q -n sidplay-libs-%{version}
62 %patch0 -p1
63 %patch1 -p1
64 %patch2 -p1
65
66 %build
67 cd libsidplay
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoheader}
71 %{__autoconf}
72 %{__automake}
73 cd ../libsidutils
74 %{__libtoolize}
75 %{__aclocal}
76 %{__autoheader}
77 %{__autoconf}
78 %{__automake}
79 cd ../resid
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__automake}
84 cd ../builders/hardsid-builder
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoheader}
88 %{__autoconf}
89 %{__automake}
90 cd ../resid-builder
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoheader}
94 %{__autoconf}
95 %{__automake}
96 cd ../..
97 %{__libtoolize}
98 %{__aclocal}
99 %{__autoconf}
100 %{__automake}
101 %configure \
102         --enable-shared \
103         --enable-static
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files
121 %defattr(644,root,root,755)
122 %doc libsidplay/{AUTHORS,ChangeLog,TODO}
123 %attr(755,root,root) %ghost %{_libdir}/libsidplay2.so.1
124 %attr(755,root,root) %{_libdir}/libsidplay2.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libsidutils.so.0
126 %attr(755,root,root) %{_libdir}/libsidutils.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libhardsid-builder.so.0
128 %attr(755,root,root) %{_libdir}/libhardsid-builder.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libresid-builder.so.0
130 %attr(755,root,root) %{_libdir}/libresid-builder.so.*.*.*
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libsidplay2.so
135 %attr(755,root,root) %{_libdir}/libsidutils.so
136 %attr(755,root,root) %{_libdir}/libhardsid-builder.so
137 %attr(755,root,root) %{_libdir}/libresid-builder.so
138 %{_includedir}/sidplay
139 %{_pkgconfigdir}/libsidplay2.pc
140 %{_pkgconfigdir}/libsidutils.pc
141
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/libhardsid-builder.a
145 %{_libdir}/libresid-builder.a
146 %{_libdir}/libsidplay2.a
147 %{_libdir}/libsidutils.a
This page took 0.047445 seconds and 2 git commands to generate.