]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- removed outdated patch
[packages/flac.git] / flac.spec
1 # TODO: split (c++, ogg?)
2 #
3 # Conditional build:
4 #  _without xmms
5 Summary:        Free Lossless Audio Codec
6 Summary(pl):    Free Lossless Audio Codec - Darmowy Bezstratny Kodek Audio
7 Name:           flac
8 Version:        1.1.0
9 Release:        1
10 License:        GPL/LGPL
11 Group:          Libraries
12 Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-lt.patch
14 Patch1:         %{name}-without_xmms.patch
15 URL:            http://flac.sourceforge.net/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libogg-devel
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool >= 2:1.4d
21 %{!?_without_xmms:BuildRequires:        xmms-devel}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %if %{!?_without_xmms:1}0
25 %define         _xmms_input_path        %(xmms-config --input-plugin-dir)
26 %endif
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}
40
41 %description devel
42 The package contains the development header files for flac.
43
44 %description devel -l pl
45 Ten pakiet zawiera pliki nag³ówkowe biblioteki 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}
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}
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 %patch0 -p1
76 %{?_without_xmms:%patch1 -p1}
77
78 %build
79 rm -f missing
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__automake}
84 %configure
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc doc/html/{*.html,images/{*.gif,*.jpg}}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.* 
104 %{_mandir}/man1/*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so
109 %{_libdir}/lib*.la
110 %{_includedir}/*
111 %{_aclocaldir}/*
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/lib*.a
116
117 %if %{!?_without_xmms:1}0
118 %files -n xmms-input-flac
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_xmms_input_path}/*.so
121 %{_xmms_input_path}/*.la
122 %endif
This page took 0.09246 seconds and 4 git commands to generate.