Changeset 1801 for spec/trunk/SPECS
- Timestamp:
- Mar 11, 2022, 11:01:33 PM (4 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/flac.spec (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/flac.spec
r1674 r1801 1 # Disable if you don't need xmms2 %global with_xmms 03 4 %if %{with_xmms}5 %define xmms_inputdir %(xmms-config --input-plugin-dir 2>/dev/null || echo %{_libdir}/xmms/General)6 %endif7 8 1 Summary: An encoder/decoder for the Free Lossless Audio Codec 9 2 Name: flac 10 Version: 1.3. 33 Version: 1.3.4 11 4 Release: 1%{?dist} 12 5 License: BSD and GPLv2+ and GFDL 13 #Source0: https://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz 6 %if !0%{?os2_version} 7 Source0: https://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz 8 %else 14 9 %scm_source github https://github.com/xiph/flac master 10 %endif 15 11 URL: https://www.xiph.org/flac/ 16 12 Requires: %{name}-libs%{?_isa} = %{version}-%{release} 17 13 BuildRequires: libogg-devel 18 BuildRequires: gcc automake autoconf libtool gettext-devel doxygen 19 %if %{with_xmms} 20 BuildRequires: xmms-devel desktop-file-utils 21 Source1: xmms-flac.desktop 22 %endif 14 BuildRequires: gcc gcc-c++ automake autoconf libtool gettext-devel doxygen 23 15 %ifarch %{ix86} 24 16 # 2.0 supports symbol visibility 25 17 BuildRequires: nasm >= 2.0 26 18 %endif 19 BuildRequires: make 27 20 28 21 %description … … 39 32 Summary: Libraries for the Free Lossless Audio Codec 40 33 Obsoletes: flac < 1.2.1-11 34 # xmms-flac dropped in 1.3.3-8 35 Obsoletes: xmms-flac < 1.3.3-8 41 36 42 37 %description libs … … 58 53 will use the Free Lossless Audio Codec. 59 54 60 %if %{with_xmms} 61 %package -n xmms-flac 62 Summary: XMMS plugin needed to play FLAC (Free Lossless Audio Codec) files 63 # The entire FLAC sources are covered by multiple licenses, but the xmms plugin 64 # is only GPLv2+ 65 License: GPLv2+ 66 67 %description -n xmms-flac 68 FLAC is a Free Lossless Audio Codec. The FLAC format supports streaming, 69 seeking, and archival, and gives 25-75% compression on typical CD audio. 70 This is the input plugin for XMMS to be able to read FLAC files. 55 %prep 56 %if !0%{?os2_version} 57 %setup -q 58 %else 59 %scm_setup 71 60 %endif 72 73 %debug_package74 75 %prep76 #%setup -q77 %scm_setup78 61 79 62 %build … … 87 70 %configure \ 88 71 --htmldir=%{_docdir}/flac/html \ 89 %if %{with_xmms}90 --enable-xmms-plugin \91 %else92 72 --disable-xmms-plugin \ 93 %endif94 73 --disable-silent-rules \ 95 74 --disable-thorough-tests 96 75 %if !0%{?os2_version} 76 %make_build 77 %else 97 78 make %{?_smp_mflags} 79 %endif 98 80 99 81 %install 100 make install DESTDIR=%{buildroot} 101 102 %if %{with_xmms} 103 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} 104 %endif 82 %make_install 105 83 106 84 # split documentation 107 85 mv %{buildroot}%{_docdir}/flac* ./flac-doc 108 86 mkdir -p flac-doc-devel 87 %if !0%{?os2_version} 88 mv flac-doc{/html/api,-devel} 89 %else 109 90 mv flac-doc/html/api/* flac-doc-devel 91 %endif 110 92 rm flac-doc/FLAC.tag 111 93 94 112 95 rm %{buildroot}%{_libdir}/*.la 113 %if %{with_xmms}114 rm %{buildroot}%{xmms_inputdir}/*.la115 %endif116 96 117 97 %check 118 #make check 98 %if !0%{?os2_version} 99 make check 119 100 120 #%ldconfig_scriptlets libs 101 %ldconfig_scriptlets libs 102 %endif 121 103 122 104 %files 123 105 %doc flac-doc/* 106 %if !0%{?os2_version} 107 %{_bindir}/flac 108 %{_bindir}/metaflac 109 %else 124 110 %{_bindir}/flac.exe 125 111 %{_bindir}/metaflac.exe 126 112 %{_mandir}/man1/* 113 %endif 127 114 128 115 %files libs 129 116 %doc AUTHORS COPYING* README 130 %{_libdir}/FLAC*.dll 131 #%{_libdir}/libFLAC++.so.6* 117 %if !0%{?os2_version} 118 %{_libdir}/libFLAC.so.8* 119 %{_libdir}/libFLAC++.so.6* 120 %else 121 %{_libdir}/*.dll 122 %endif 132 123 133 124 %files devel 134 125 %doc flac-doc-devel/* 135 126 %{_includedir}/* 136 #%{_libdir}/*.so 127 %if !0%{?os2_version} 128 %{_libdir}/*.so 129 %else 137 130 %{_libdir}/*.a 131 %endif 138 132 %{_libdir}/pkgconfig/* 139 133 %{_datadir}/aclocal/*.m4 140 134 141 %if %{with_xmms} 142 %files -n xmms-flac 143 %license COPYING.GPL 144 %{_datadir}/applications/xmms-flac.desktop 145 %{xmms_inputdir}/libxmms-flac.so 146 %endif 135 %changelog 136 * Fri Mar 11 2022 Elbert Pol <elbert.pol@gmail.com> 1.3.4-1 137 - update to latest version 147 138 148 %changelog149 139 * Wed Oct 09 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.3-1 150 140 - Update to latest source
Note:
See TracChangeset
for help on using the changeset viewer.
