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