]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- id3lib no longer used
[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 - Wolnodostêpny 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 BuildRequires:  libogg-devel >= 2:1.0
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtool >= 2:1.4d-3
22 %{?with_xmms:BuildRequires:     rpmbuild(macros) >= 1.125}
23 %{?with_xmms:BuildRequires:     xmms-devel >= 0.9.5.1}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
28
29 %description -l pl
30 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
31 przez Josha Coalsona.
32
33 %package devel
34 Summary:        FLAC - development files
35 Summary(pl):    FLAC - pliki nag³ówkowe
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 The package contains the development header files for FLAC libraries.
41
42 %description devel -l pl
43 Ten pakiet zawiera pliki nag³ówkowe bibliotek FLAC.
44
45 %package static
46 Summary:        FLAC - static libraries
47 Summary(pl):    FLAC - biblioteki statyczne
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 The package contains FLAC static libraries.
53
54 %description static -l pl
55 Ten pakiet zawiera biblioteki statyczne FLAC.
56
57 %package -n xmms-input-flac
58 Summary:        Free Lossless Audio Codec - XMMS plugin
59 Summary(pl):    Wtyczka FLAC dla XMMS
60 License:        GPL/LGPL
61 Group:          Libraries
62 Requires:       %{name} = %{version}-%{release}
63 Requires:       xmms
64
65 %description -n xmms-input-flac
66 FLAC input plugin for XMMS.
67
68 %description -n xmms-input-flac -l pl
69 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
70
71 %prep
72 %setup -q
73 %{!?with_xmms:%patch0 -p1}
74
75 %build
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__automake}
80 %configure
81
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 # no makefiles in doc dirs
91 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
92 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS README doc/html/{*.html,images}
103 %lang(ru) %doc doc/html/ru
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 %{with xmms}
120 %files -n xmms-input-flac
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{xmms_input_plugindir}/*.so
123 %endif
This page took 0.056872 seconds and 4 git commands to generate.