Modernize a spec file

epel9
Petr Písař 7 years ago
parent f589b3667e
commit b80722975d

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error .* unmanaged");

@ -1,18 +1,23 @@
Name: xosd Name: xosd
Version: 2.2.14 Version: 2.2.14
Release: 27%{?dist} Release: 28%{?dist}
Summary: On-screen display library for X Summary: On-screen display library for X
Group: System Environment/Libraries
License: GPLv2+ License: GPLv2+
URL: http://sourceforge.net/projects/libxosd/ URL: http://sourceforge.net/projects/libxosd/
Source: http://downloads.sourceforge.net/libxosd/%{name}-%{version}.tar.gz Source: http://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: automake
BuildRequires: coreutils
# glibc-common for iconv
BuildRequires: glibc-common
BuildRequires: libtool
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXext-devel BuildRequires: libXext-devel
BuildRequires: libXinerama-devel BuildRequires: libXinerama-devel
# Update config.sub to support aarch64, bug #926836 BuildRequires: make
BuildRequires: autoconf automake libtool BuildRequires: perl-interpreter
# As of 2.2.14, the default font *must* be found, even if not used (#183971) # As of 2.2.14, the default font *must* be found, even if not used (#183971)
Requires: xorg-x11-fonts-base Requires: xorg-x11-fonts-base
# XMMS is dead, gdk-pixbuf-0 is dead. Dropping xmms plug-in. # XMMS is dead, gdk-pixbuf-0 is dead. Dropping xmms plug-in.
@ -26,7 +31,6 @@ the effect of an On Screen Display, like your TV/VCR etc.
%package devel %package devel
Summary: Development files for the XOSD on-screen display library Summary: Development files for the XOSD on-screen display library
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libX11-devel Requires: libX11-devel
Requires: libXext-devel Requires: libXext-devel
@ -40,9 +44,10 @@ on-screen display.
%setup -q %setup -q
%patch0 -p0 %patch0 -p0
%patch1 -p1 %patch1 -p1
# Update config.sub to support aarch64, bug #926836 # XMMS is dead, gdk-pixbuf-0 is dead. Dropping xmms plug-in.
sed -i -e '/AM_PATH_GTK/,+1 d' -e '/AM_PATH_XMMS/,+1 d' \ sed -i -e '/AM_PATH_GTK/,+1 d' -e '/AM_PATH_XMMS/,+1 d' \
-e '/AM_PATH_GDK_PIXBUF/,+1 d' configure.ac -e '/AM_PATH_GDK_PIXBUF/,+1 d' configure.ac
# Update config.sub to support aarch64, bug #926836
autoreconf -i -f autoreconf -i -f
for f in ChangeLog man/xosd_{create,destroy,display,is_onscreen,set_bar_length}.3 ; do for f in ChangeLog man/xosd_{create,destroy,display,is_onscreen,set_bar_length}.3 ; do
iconv -f iso-8859-1 -t utf-8 "$f" > "${f}.utf8" iconv -f iso-8859-1 -t utf-8 "$f" > "${f}.utf8"
@ -50,7 +55,6 @@ for f in ChangeLog man/xosd_{create,destroy,display,is_onscreen,set_bar_length}.
mv "${f}.utf8" "$f" mv "${f}.utf8" "$f"
done done
%build %build
%configure --disable-dependency-tracking --disable-static \ %configure --disable-dependency-tracking --disable-static \
--disable-gtktest --disable-gdk_pixbuftest \ --disable-gtktest --disable-gdk_pixbuftest \
@ -58,8 +62,7 @@ done
--disable-beep_media_player_plugin\ --disable-beep_media_player_plugin\
--enable-xinerama --enable-xinerama
make %{?_smp_mflags} make %{?_smp_mflags}
%{__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 DESTDIR=$RPM_BUILD_ROOT
@ -67,14 +70,11 @@ 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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files %files
%doc AUTHORS ChangeLog COPYING README TODO %license COPYING
%doc AUTHORS ChangeLog README TODO
%{_bindir}/osd_cat %{_bindir}/osd_cat
%{_libdir}/libxosd.so.* %{_libdir}/libxosd.so.*
%{_mandir}/man1/osd_cat.1* %{_mandir}/man1/osd_cat.1*
@ -88,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
%{_mandir}/man3/xosd*.3* %{_mandir}/man3/xosd*.3*
%changelog %changelog
* Fri Mar 23 2018 Petr Pisar <ppisar@redhat.com> - 2.2.14-28
- Modernize a spec file
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.14-27 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.14-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save