]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
- updated to 1.2.0
[packages/flac.git] / flac.spec
CommitLineData
51cc0dde 1#
2# Conditional build:
ec1aa008
KK
3%bcond_without static_libs # don't build static library
4%bcond_without xmms # don't build XMMS plugin
d878a8f5 5#
029ad246 6Summary: Free Lossless Audio Codec
3caef61b 7Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
27b8e245 8Name: flac
ef4d7dd5 9Version: 1.2.0
94159bd9
JB
10Release: 1
11License: BSD (libFLAC/libFLAC++), GPL (programs and plugins)
27b8e245 12Group: Libraries
d878a8f5 13Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
ef4d7dd5 14# Source0-md5: ea176bfb291707b46a537b091c226ae7
3730ca3f 15Patch0: %{name}-without_xmms.patch
27b8e245 16URL: http://flac.sourceforge.net/
17BuildRequires: autoconf
94159bd9
JB
18BuildRequires: automake >= 1:1.7
19# for AM_ICONV
6ca2e66f 20BuildRequires: gettext-devel
61361cc3 21BuildRequires: libogg-devel >= 2:1.0
8c896b25 22BuildRequires: libstdc++-devel
d878a8f5
JB
23BuildRequires: libtool >= 2:1.4d-3
24%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
25%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
27b8e245 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a77945de 27
27b8e245 28%description
29FLAC is an Open Source lossless audio codec developed by Josh Coalson.
30
7eefc9db
JR
31%description -l pl.UTF-8
32FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
14d1df27 33przez Josha Coalsona.
27b8e245 34
35%package devel
a77945de 36Summary: FLAC - development files
3caef61b 37Summary(pl.UTF-8): FLAC - pliki nagłówkowe
94159bd9 38License: BSD
27b8e245 39Group: Development/Libraries
4cae232c 40Requires: %{name} = %{version}-%{release}
94159bd9
JB
41Requires: libogg-devel >= 2:1.0
42# for -c++ only
43#Requires: libstdc++-devel
27b8e245 44
45%description devel
d878a8f5 46The package contains the development header files for FLAC libraries.
27b8e245 47
7eefc9db
JR
48%description devel -l pl.UTF-8
49Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
27b8e245 50
51%package static
a77945de 52Summary: FLAC - static libraries
3caef61b 53Summary(pl.UTF-8): FLAC - biblioteki statyczne
94159bd9 54License: BSD
27b8e245 55Group: Development/Libraries
4cae232c 56Requires: %{name}-devel = %{version}-%{release}
27b8e245 57
58%description static
d878a8f5 59The package contains FLAC static libraries.
27b8e245 60
7eefc9db 61%description static -l pl.UTF-8
d878a8f5 62Ten pakiet zawiera biblioteki statyczne FLAC.
27b8e245 63
ef4d7dd5
JB
64%package c++
65Summary: FLAC++ - C++ API for FLAC codec
66Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
67Group: Libraries
68Requires: %{name} = %{version}-%{release}
69
70%description c++
71FLAC++ - C++ API for FLAC codec.
72
73%description c++ -l pl.UTF-8
74FLAC++ - API C++ do kodeka FLAC.
75
76%package c++-devel
77Summary: Header files for FLAC++ library
78Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
79Group: Development/Libraries
80Requires: %{name}-c++ = %{version}-%{release}
81Requires: %{name}-devel = %{version}-%{release}
82
83%description c++-devel
84Header files for FLAC++ library.
85
86%description c++-devel -l pl.UTF-8
87Pliki nagłówkowe biblioteki FLAC++.
88
89%package c++-static
90Summary: Static FLAC++ library
91Summary(pl.UTF-8): Statyczna biblioteka FLAC++
92Group: Development/Libraries
93Requires: %{name}-c++-devel = %{version}-%{release}
94
95%description c++-static
96Static FLAC++ library.
97
98%description c++-static -l pl.UTF-8
99Statyczna biblioteka FLAC++.
100
27b8e245 101%package -n xmms-input-flac
029ad246 102Summary: Free Lossless Audio Codec - XMMS plugin
3caef61b 103Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
94159bd9 104License: GPL v2+
27b8e245 105Group: Libraries
4cae232c 106Requires: %{name} = %{version}-%{release}
dd43a64f 107Requires: xmms
27b8e245 108
109%description -n xmms-input-flac
110FLAC input plugin for XMMS.
111
7eefc9db
JR
112%description -n xmms-input-flac -l pl.UTF-8
113Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
27b8e245 114
115%prep
116%setup -q
3730ca3f 117%{!?with_xmms:%patch0 -p1}
94159bd9 118
27b8e245 119%build
27b8e245 120%{__libtoolize}
b702c07e 121%{__aclocal}
27b8e245 122%{__autoconf}
94159bd9 123%{__autoheader}
27b8e245 124%{__automake}
ec1aa008
KK
125%configure \
126 %{!?with_static_libs:--disable-static}
f06c2744 127
27b8e245 128%{__make}
129
130%install
131rm -rf $RPM_BUILD_ROOT
132
dd43a64f 133%{__make} install \
134 DESTDIR=$RPM_BUILD_ROOT
27b8e245 135
87900f4c
JB
136# no makefiles in doc dirs
137rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
4cae232c 138rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
87900f4c 139
27b8e245 140%clean
dd43a64f 141rm -rf $RPM_BUILD_ROOT
27b8e245 142
143%post -p /sbin/ldconfig
144%postun -p /sbin/ldconfig
145
ef4d7dd5
JB
146%post c++ -p /sbin/ldconfig
147%postun c++ -p /sbin/ldconfig
148
27b8e245 149%files
27b8e245 150%defattr(644,root,root,755)
94159bd9 151%doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
87900f4c 152%lang(ru) %doc doc/html/ru
94159bd9
JB
153%attr(755,root,root) %{_bindir}/flac
154%attr(755,root,root) %{_bindir}/metaflac
155%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
94159bd9
JB
156%{_mandir}/man1/flac.1*
157%{_mandir}/man1/metaflac.1*
27b8e245 158
159%files devel
160%defattr(644,root,root,755)
94159bd9 161%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 162%{_libdir}/libFLAC.la
94159bd9 163%{_includedir}/FLAC
3730ca3f 164%{_pkgconfigdir}/flac.pc
94159bd9 165%{_aclocaldir}/libFLAC.m4
27b8e245 166
ec1aa008 167%if %{with static_libs}
27b8e245 168%files static
169%defattr(644,root,root,755)
94159bd9 170%{_libdir}/libFLAC.a
ef4d7dd5
JB
171%endif
172
173%files c++
174%defattr(644,root,root,755)
175%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
176
177%files c++-devel
178%defattr(644,root,root,755)
179%attr(755,root,root) %{_libdir}/libFLAC++.so
180%{_libdir}/libFLAC++.la
181%{_includedir}/FLAC++
182%{_pkgconfigdir}/flac++.pc
183%{_aclocaldir}/libFLAC++.m4
184
185%if %{with static_libs}
186%files c++-static
187%defattr(644,root,root,755)
94159bd9 188%{_libdir}/libFLAC++.a
ec1aa008 189%endif
27b8e245 190
d878a8f5 191%if %{with xmms}
27b8e245 192%files -n xmms-input-flac
193%defattr(644,root,root,755)
94159bd9 194%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 195%endif
This page took 0.114751 seconds and 4 git commands to generate.