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