]> git.pld-linux.org Git - SPECS.git/blob - mac.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / mac.spec
1 %define         _ver    3.99-u4-b5
2 Summary:        Monkey's Audio Codec, a lossless audio codec
3 Summary(pl.UTF-8):      Monkey's Audio Codec - bezstratny kodek dźwięku
4 Name:           mac
5 Version:        3.99.u4.b5
6 Release:        1
7 License:        Distributable with author's permission
8 Group:          Applications/Multimedia
9 Source0:        http://supermmx.org/resources/linux/mac/%{name}-%{_ver}.tar.gz
10 # NoSource0-md5:        75716b342e07deae58f56a2522362006
11 NoSource:       0
12 URL:            http://sourceforge.net/projects/mac-port/
13 Patch0:         %{name}_amd64.patch
14 BuildRequires:  libstdc++-devel
15 %ifarch %{ix86} %{x8664}
16 BuildRequires:  yasm
17 %endif
18 BuildRequires:  sed >= 4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 MAC: short for Monkey's Audio Codec, a lossless audio codec (almost
23 always with the .ape extension).
24
25 %description -l pl.UTF-8
26 MAC: skrót Monkey's Audio Codec, bezstratny kodek dźwięku (prawie
27 zawsze z rozszerzeniem .ape).
28
29 %package devel
30 Summary:        MAC header files
31 Summary(pl.UTF-8):      Pliki nagłówkowe MAC
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       libstdc++-devel
35
36 %description devel
37 MAC header files.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe MAC.
41
42 %package static
43 Summary:        Static MAC libraries
44 Summary(pl.UTF-8):      Biblioteki statyczne MAC
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static MAC libraries.
50
51 %description static -l pl.UTF-8
52 Biblioteki statyczne MAC.
53
54 %prep
55 %setup -q -n %{name}-%{_ver}
56 %patch0 -p1
57 sed -i -e 's/-O3 //' configure
58
59 %build
60 %configure
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post   -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS COPYING ChangeLog NEWS README TODO src/{Credits.txt,History.txt,License.htm,Readme.htm}
78 %attr(755,root,root) %{_bindir}/mac
79 %attr(755,root,root) %{_libdir}/libmac.so.*.*.*
80
81 %files devel
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/libmac.so
84 %{_libdir}/libmac.la
85 %{_includedir}/mac
86
87 %files static
88 %defattr(644,root,root,755)
89 %{_libdir}/libmac.a
This page took 0.240363 seconds and 3 git commands to generate.