Changeset 1801 for spec/trunk/SPECS


Ignore:
Timestamp:
Mar 11, 2022, 11:01:33 PM (4 years ago)
Author:
tellie
Message:

spec: flac: Release version 1.3.4-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/flac.spec

    r1674 r1801  
    1 # Disable if you don't need xmms
    2 %global with_xmms 0
    3 
    4 %if %{with_xmms}
    5 %define xmms_inputdir %(xmms-config --input-plugin-dir 2>/dev/null || echo %{_libdir}/xmms/General)
    6 %endif
    7 
    81Summary: An encoder/decoder for the Free Lossless Audio Codec
    92Name: flac
    10 Version: 1.3.3
     3Version: 1.3.4
    114Release: 1%{?dist}
    125License: BSD and GPLv2+ and GFDL
    13 #Source0: https://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz
     6%if !0%{?os2_version}
     7Source0: https://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz
     8%else
    149%scm_source github https://github.com/xiph/flac master
     10%endif
    1511URL: https://www.xiph.org/flac/
    1612Requires: %{name}-libs%{?_isa} = %{version}-%{release}
    1713BuildRequires: 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
     14BuildRequires: gcc gcc-c++ automake autoconf libtool gettext-devel doxygen
    2315%ifarch %{ix86}
    2416# 2.0 supports symbol visibility
    2517BuildRequires: nasm >= 2.0
    2618%endif
     19BuildRequires: make
    2720
    2821%description
     
    3932Summary: Libraries for the Free Lossless Audio Codec
    4033Obsoletes: flac < 1.2.1-11
     34# xmms-flac dropped in 1.3.3-8
     35Obsoletes: xmms-flac < 1.3.3-8
    4136
    4237%description libs
     
    5853will use the Free Lossless Audio Codec.
    5954
    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
    7160%endif
    72 
    73 %debug_package
    74 
    75 %prep
    76 #%setup -q
    77 %scm_setup
    7861
    7962%build
     
    8770%configure \
    8871    --htmldir=%{_docdir}/flac/html \
    89 %if %{with_xmms}
    90     --enable-xmms-plugin \
    91 %else
    9272    --disable-xmms-plugin \
    93 %endif
    9473    --disable-silent-rules \
    9574    --disable-thorough-tests
    96 
     75%if !0%{?os2_version}
     76%make_build
     77%else
    9778make %{?_smp_mflags}
     79%endif
    9880
    9981%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
    10583
    10684# split documentation
    10785mv %{buildroot}%{_docdir}/flac* ./flac-doc
    10886mkdir -p flac-doc-devel
     87%if !0%{?os2_version}
     88mv flac-doc{/html/api,-devel}
     89%else
    10990mv flac-doc/html/api/* flac-doc-devel
     91%endif
    11092rm flac-doc/FLAC.tag
    11193
     94
    11295rm %{buildroot}%{_libdir}/*.la
    113 %if %{with_xmms}
    114 rm %{buildroot}%{xmms_inputdir}/*.la
    115 %endif
    11696
    11797%check
    118 #make check
     98%if !0%{?os2_version}
     99make check
    119100
    120 #%ldconfig_scriptlets libs
     101%ldconfig_scriptlets libs
     102%endif
    121103
    122104%files
    123105%doc flac-doc/*
     106%if !0%{?os2_version}
     107%{_bindir}/flac
     108%{_bindir}/metaflac
     109%else
    124110%{_bindir}/flac.exe
    125111%{_bindir}/metaflac.exe
    126112%{_mandir}/man1/*
     113%endif
    127114
    128115%files libs
    129116%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
    132123
    133124%files devel
    134125%doc flac-doc-devel/*
    135126%{_includedir}/*
    136 #%{_libdir}/*.so
     127%if !0%{?os2_version}
     128%{_libdir}/*.so
     129%else
    137130%{_libdir}/*.a
     131%endif
    138132%{_libdir}/pkgconfig/*
    139133%{_datadir}/aclocal/*.m4
    140134
    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
    147138
    148 %changelog
    149139* Wed Oct 09 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.3-1
    150140- Update to latest source
Note: See TracChangeset for help on using the changeset viewer.