]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- added bcond _without_xmms
[packages/flac.git] / flac.spec
1 # TODO: split (c++, ogg?)
2 #
3 # Conditional build:
4 #  _without xmms
5 Summary:        Free Lossless Audio Codec
6 Summary(pl):    Free Lossless Audio Codec - Darmowy Bezstratny Kodek Audio
7 Name:           flac
8 Version:        1.0.4
9 Release:        1
10 License:        GPL/LGPL
11 Group:          Libraries
12 Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-acfix.patch
14 Patch1:         %{name}-lt.patch
15 Patch2:         %{name}-without_xmms.patch
16 URL:            http://flac.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  libogg-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtool >= 2:1.4d
22 %{!?_without_xmms:BuildRequires:        xmms-devel}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %if %{!?_without_xmms:1}0
26 %define         _xmms_input_path        %(xmms-config --input-plugin-dir)
27 %endif
28
29 %description
30 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
31
32 %description -l pl
33 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
34 przez Josha Coalsona.
35
36 %package devel
37 Summary:        FLAC - development files
38 Summary(pl):    FLAC - pliki nag³ówkowe
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}
41
42 %description devel
43 The package contains the development header files for flac.
44
45 %description devel -l pl
46 Ten pakiet zawiera pliki nag³ówkowe biblioteki flac.
47
48 %package static
49 Summary:        FLAC - static libraries
50 Summary(pl):    FLAC - biblioteki statyczne
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}
53
54 %description static
55 The package contains flac static libraries.
56
57 %description static -l pl
58 Ten pakiet zawiera biblioteki statyczne flac.
59
60 %package -n xmms-input-flac
61 Summary:        Free Lossless Audio Codec - XMMS plugin
62 Summary(pl):    Wtyczka FLAC dla XMMS
63 License:        GPL/LGPL
64 Group:          Libraries
65 Requires:       %{name} = %{version}
66 Requires:       xmms
67
68 %description -n xmms-input-flac
69 FLAC input plugin for XMMS.
70
71 %description -n xmms-input-flac -l pl
72 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %{?_without_xmms:%patch2 -p1}
79
80 %build
81 rm -f missing
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 %{__automake}
86 %configure
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc doc/html/{*.html,images/{*.gif,*.jpg}}
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_libdir}/lib*.so.*.* 
106 %{_mandir}/man1/*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so
111 %{_libdir}/lib*.la
112 %{_includedir}/*
113 %{_aclocaldir}/*
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/lib*.a
118
119 %if %{!?_without_xmms:1}0
120 %files -n xmms-input-flac
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_xmms_input_path}/*.so
123 %{_xmms_input_path}/*.la
124 %endif
This page took 0.051444 seconds and 3 git commands to generate.