]> git.pld-linux.org Git - packages/flac.git/blob - flac.spec
- std sf url
[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:        2
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:        xmms-devel}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %if %{!?_without_xmms:1}0
26 %define         _xmms_input_path        %(xmms-config --input-plugin-dir)
27 %endif
28
29 %description
30 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
31
32 %description -l pl
33 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
34 przez Josha Coalsona.
35
36 %package devel
37 Summary:        FLAC - development files
38 Summary(pl):    FLAC - pliki nag³ówkowe
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}
41
42 %description devel
43 The package contains the development header files for flac.
44
45 %description devel -l pl
46 Ten pakiet zawiera pliki nag³ówkowe biblioteki flac.
47
48 %package static
49 Summary:        FLAC - static libraries
50 Summary(pl):    FLAC - biblioteki statyczne
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}
53
54 %description static
55 The package contains flac static libraries.
56
57 %description static -l pl
58 Ten pakiet zawiera biblioteki statyczne flac.
59
60 %package -n xmms-input-flac
61 Summary:        Free Lossless Audio Codec - XMMS plugin
62 Summary(pl):    Wtyczka FLAC dla XMMS
63 License:        GPL/LGPL
64 Group:          Libraries
65 Requires:       %{name} = %{version}
66 Requires:       xmms
67
68 %description -n xmms-input-flac
69 FLAC input plugin for XMMS.
70
71 %description -n xmms-input-flac -l pl
72 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %{?_without_xmms:%patch1 -p1}
78
79 %build
80 rm -f missing
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__automake}
85 %configure
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # no makefiles in doc dirs
95 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
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 %{!?_without_xmms:1}0
123 %files -n xmms-input-flac
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_xmms_input_path}/*.so
126 %{_xmms_input_path}/*.la
127 %endif
This page took 0.104565 seconds and 4 git commands to generate.