]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- rel 2
[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.2
10 Release:        2
11 License:        GPL/LGPL
12 Group:          Libraries
13 Source0:        http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
14 # Source0-md5:  2bfc127cdda02834d0491ab531a20960
15 Patch0:         %{name}-without_xmms.patch
16 Patch1:         %{name}-read_only_relocs.patch
17 URL:            http://flac.sourceforge.net/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  libogg-devel >= 2: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 %patch1 -p1
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__automake}
82 %configure
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 # no makefiles in doc dirs
93 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
94 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS README doc/html/{*.html,images}
105 %lang(ru) %doc doc/html/ru
106 %attr(755,root,root) %{_bindir}/*
107 %attr(755,root,root) %{_libdir}/lib*.so.*.*
108 %{_mandir}/man1/*
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/lib*.so
113 %{_libdir}/lib*.la
114 %{_includedir}/*
115 %{_aclocaldir}/*
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/lib*.a
120
121 %if %{with xmms}
122 %files -n xmms-input-flac
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{xmms_input_plugindir}/*.so
125 %endif
This page took 0.096867 seconds and 4 git commands to generate.