]>
Commit | Line | Data |
---|---|---|
db0180ce JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Extended Module Player library | |
6 | Summary(pl.UTF-8): Biblioteka XMP (Extended Module Player) | |
7 | Name: libxmp | |
4e8e2583 | 8 | Version: 4.6.0 |
db0180ce JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
54122d8c | 12 | Source0: https://downloads.sourceforge.net/xmp/%{name}-%{version}.tar.gz |
4e8e2583 JB |
13 | # Source0-md5: fe12066dab71bc8656e6dd5985760b0c |
14 | URL: https://xmp.sourceforge.net/ | |
db0180ce JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | Libxmp is a library that renders module files to PCM data. It supports | |
19 | over 90 mainstream and obscure module formats including Protracker | |
20 | (MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse | |
21 | Tracker (IT). | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Libxmp to biblioteka przetwarzająca pliki modułów dźwiękowych na dane | |
25 | PCM. Obsługuje ponad 90 głównych i mniej znanych formatów, w tym: | |
26 | Protracker (MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM) oraz | |
27 | Impulse Tracker (IT). | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for XMP library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMP | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for XMP library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki XMP. | |
40 | ||
41 | %package static | |
42 | Summary: Static XMP library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka XMP | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static XMP library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka XMP. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | %configure \ | |
58 | %{?with_static_libs:--enable-static} | |
59 | %{__make} \ | |
60 | V=1 | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
4e8e2583 | 68 | # omitted from install target |
db0180ce JB |
69 | %{__make} install-docs \ |
70 | DESTDIR=$RPM_BUILD_ROOT \ | |
db0180ce JB |
71 | INSTALL_DATA="cp -p" |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README docs/{CREDITS,Changelog,fixloop.txt,formats.txt} | |
82 | %attr(755,root,root) %{_libdir}/libxmp.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libxmp.so.4 | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/libxmp.so | |
88 | %{_includedir}/xmp.h | |
89 | %{_pkgconfigdir}/libxmp.pc | |
4e8e2583 | 90 | %{_libdir}/cmake/libxmp |
db0180ce JB |
91 | %{_mandir}/man3/libxmp.3* |
92 | ||
93 | %if %{with static_libs} | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libxmp.a | |
97 | %endif |