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