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