Modernize a spec file

epel9
Petr Písař 5 years ago
parent 048311e833
commit f1a59bedcf

@ -1,15 +1,16 @@
Name: xosd Name: xosd
Version: 2.2.14 Version: 2.2.14
Release: 32%{?dist} Release: 33%{?dist}
Summary: On-screen display library for X Summary: On-screen display library for X
License: GPLv2+ License: GPLv2+
URL: http://sourceforge.net/projects/libxosd/ URL: https://sourceforge.net/projects/libxosd/
Source: http://downloads.sourceforge.net/libxosd/%{name}-%{version}.tar.gz Source: https://downloads.sourceforge.net/libxosd/%{name}-%{version}.tar.gz
Patch0: %{name}-aclocal18.patch Patch0: %{name}-aclocal18.patch
Patch1: %{name}-2.2.14-Do-not-install-some-manual-pages-twice.patch Patch1: %{name}-2.2.14-Do-not-install-some-manual-pages-twice.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: gcc
# glibc-common for iconv # glibc-common for iconv
BuildRequires: glibc-common BuildRequires: glibc-common
BuildRequires: libtool BuildRequires: libtool
@ -61,17 +62,15 @@ done
--disable-new-plugin --disable-old-plugin \ --disable-new-plugin --disable-old-plugin \
--disable-beep_media_player_plugin\ --disable-beep_media_player_plugin\
--enable-xinerama --enable-xinerama
make %{?_smp_mflags} %{make_build}
perl -pi -e "s|$RPM_OPT_FLAGS\\s*|| ; s|\\s*-Wall||" script/xosd-config perl -pi -e "s|$RPM_OPT_FLAGS\\s*|| ; s|\\s*-Wall||" script/xosd-config
%install %install
make install DESTDIR=$RPM_BUILD_ROOT %{make_install}
rm -f $RPM_BUILD_ROOT{%{_libdir},%{xmms_plugdir}}/*.la rm -f $RPM_BUILD_ROOT{%{_libdir},%{xmms_plugdir}}/*.la
# Pixmaps are needed only by unsupported XMMS plug-in. # Pixmaps are needed only by unsupported XMMS plug-in.
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name} rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
%ldconfig_scriptlets
%files %files
%license COPYING %license COPYING
%doc AUTHORS ChangeLog README TODO %doc AUTHORS ChangeLog README TODO
@ -88,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
%{_mandir}/man3/xosd*.3* %{_mandir}/man3/xosd*.3*
%changelog %changelog
* Mon Mar 09 2020 Petr Pisar <ppisar@redhat.com> - 2.2.14-33
- Modernize a spec file
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.14-32 * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.14-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Loading…
Cancel
Save