Refresh spec file
This commit is contained in:
parent
1b90b895e4
commit
ce237fae6f
@ -1,9 +1,8 @@
|
||||
Name: libgdither
|
||||
Version: 0.6
|
||||
Release: 17%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Summary: Library for applying dithering to PCM audio sources
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://plugin.org.uk/libgdither/README
|
||||
Source0: http://plugin.org.uk/libgdither/libgdither-%{version}.tar.gz
|
||||
@ -11,6 +10,7 @@ Patch0: libgdither-0.6-default.patch
|
||||
Patch1: libgdither-0.6-gavl.patch
|
||||
Patch2: libgdither-0.6-ldflags.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: fftw-devel >= 3.0.0
|
||||
|
||||
|
||||
@ -23,9 +23,7 @@ preserve audio quality.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
@ -42,12 +40,11 @@ developing applications that use %{name}.
|
||||
%build
|
||||
export INIT_CFLAGS="${RPM_OPT_FLAGS}"
|
||||
export LDFLAGS="%{build_ldflags}"
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
|
||||
%make_install LIBDIR=%{_libdir}
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
sed -i -e 's|/usr/local|%{_prefix}|g' \
|
||||
@ -56,16 +53,15 @@ sed -i -e 's|%{_prefix}/lib|%{_libdir}|' \
|
||||
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgdither.pc
|
||||
|
||||
%check
|
||||
make test CFLAGS="${RPM_OPT_FLAGS} -Werror --std=c99 -I%{_builddir}/%{?buildsubdir}"
|
||||
make test CFLAGS="%{optflags} -Werror --std=c99 -I%{_builddir}/%{?buildsubdir}"
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%doc COPYING README
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
@ -74,6 +70,9 @@ make test CFLAGS="${RPM_OPT_FLAGS} -Werror --std=c99 -I%{_builddir}/%{?buildsubd
|
||||
%{_libdir}/pkgconfig/libgdither.pc
|
||||
|
||||
%changelog
|
||||
* Tue Jul 17 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.6-18
|
||||
- Refresh spec file
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user