]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- "it's a matter of liberty, not price"
[packages/flac.git] / flac.spec
1 # maybe TODO: split (c++, ogg?)
2 #
3 # Conditional build:
4 %bcond_without  xmms    # don't build XMMS plugin
5 #
6 Summary:        Free Lossless Audio Codec
7 Summary(pl):    Free Lossless Audio Codec - Wolny Bezstratny Kodek Audio
8 Name:           flac
9 Version:        1.1.1
10 Release:        1
11 License:        GPL/LGPL
12 Group:          Libraries
13 Source0:        http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
14 # Source0-md5:  c6ccddccf8ad344065698047c2fc7280
15 Patch0:         %{name}-without_xmms.patch
16 URL:            http://flac.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 %{?with_xmms:BuildRequires:     id3lib-devel >= 3.8.0}
20 BuildRequires:  libogg-devel >= 1:1.0
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool >= 2:1.4d-3
23 %{?with_xmms:BuildRequires:     rpmbuild(macros) >= 1.125}
24 %{?with_xmms:BuildRequires:     xmms-devel >= 0.9.5.1}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
29
30 %description -l pl
31 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
32 przez Josha Coalsona.
33
34 %package devel
35 Summary:        FLAC - development files
36 Summary(pl):    FLAC - pliki nag³ówkowe
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 The package contains the development header files for FLAC libraries.
42
43 %description devel -l pl
44 Ten pakiet zawiera pliki nag³ówkowe bibliotek FLAC.
45
46 %package static
47 Summary:        FLAC - static libraries
48 Summary(pl):    FLAC - biblioteki statyczne
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 The package contains FLAC static libraries.
54
55 %description static -l pl
56 Ten pakiet zawiera biblioteki statyczne FLAC.
57
58 %package -n xmms-input-flac
59 Summary:        Free Lossless Audio Codec - XMMS plugin
60 Summary(pl):    Wtyczka FLAC dla XMMS
61 License:        GPL/LGPL
62 Group:          Libraries
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       xmms
65
66 %description -n xmms-input-flac
67 FLAC input plugin for XMMS.
68
69 %description -n xmms-input-flac -l pl
70 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
71
72 %prep
73 %setup -q
74 %{!?with_xmms:%patch0 -p1}
75
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__automake}
81 %configure
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # no makefiles in doc dirs
92 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
93 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
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 AUTHORS README doc/html/{*.html,images}
104 %lang(ru) %doc doc/html/ru
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107 %{_mandir}/man1/*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/lib*.so
112 %{_libdir}/lib*.la
113 %{_includedir}/*
114 %{_aclocaldir}/*
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/lib*.a
119
120 %if %{with xmms}
121 %files -n xmms-input-flac
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{xmms_input_plugindir}/*.so
124 %endif
This page took 0.042688 seconds and 4 git commands to generate.