Blame SPECS/libvisual.spec

f8ec15
%global smallversion 0.4
f8ec15
f8ec15
Name:           libvisual
f8ec15
Version:        0.4.0
bf5974
Release:        25%{?dist}
f8ec15
Epoch:		1
f8ec15
Summary:        Abstraction library for audio visualisation plugins
f8ec15
Group:          Applications/Multimedia
f8ec15
License:        LGPLv2+
f8ec15
URL:            http://libvisual.sf.net
f8ec15
Source0:        http://dl.sf.net/libvisual/libvisual-%{version}.tar.gz
f8ec15
BuildRequires:  xorg-x11-proto-devel
f8ec15
# https://bugzilla.redhat.com/show_bug.cgi?id=435771
f8ec15
Patch0:         libvisual-0.4.0-better-altivec-detection.patch
f8ec15
Patch1:         libvisual-0.4.0-inlinedefineconflict.patch
f8ec15
Patch2:		libvisual-0.4.0-format-security.patch
f8ec15
f8ec15
%description
f8ec15
Libvisual is an abstraction library that comes between applications and
f8ec15
audio visualisation plugins.
f8ec15
f8ec15
Often when it comes to audio visualisation plugins or programs that create
f8ec15
visuals they do depend on a player or something else, basically there is no
f8ec15
general framework that enable application developers to easy access cool
f8ec15
audio visualisation plugins. Libvisual wants to change this by providing
f8ec15
an interface towards plugins and applications, through this easy to use
f8ec15
interface applications can easily access plugins and since the drawing is
f8ec15
done by the application it also enables the developer to draw the visual
f8ec15
anywhere he wants.
f8ec15
f8ec15
%package        devel
f8ec15
Summary:        Development files for libvisual
f8ec15
Group:          Development/Libraries
f8ec15
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f8ec15
f8ec15
%description    devel
f8ec15
Libvisual is an abstraction library that comes between applications and
f8ec15
audio visualisation plugins.
f8ec15
f8ec15
This package contains the files needed to build an application with libvisual.
f8ec15
f8ec15
%prep
f8ec15
%setup -q
f8ec15
%patch0 -p1 -b .altivec-detection
f8ec15
%patch1 -p1 -b .inlinedefineconflict
f8ec15
%patch2 -p1 -b .format-security
f8ec15
f8ec15
%build
f8ec15
%ifarch i386
f8ec15
export CFLAGS="${RPM_OPT_FLAGS} -mmmx"
f8ec15
%endif
f8ec15
%configure
f8ec15
make %{?_smp_mflags}
f8ec15
f8ec15
%install
f8ec15
make install DESTDIR=%{buildroot}
bf5974
bf5974
# Avoid multilib conflicts
bf5974
case `uname -i` in
bf5974
  i386 | ppc | s390 | sparc )
bf5974
    wordsize="32"
bf5974
    ;;
bf5974
  x86_64 | ppc64 | s390x | sparc64 )
bf5974
    wordsize="64"
bf5974
    ;;
bf5974
  *)
bf5974
    wordsize=""
bf5974
    ;;
bf5974
esac
bf5974
bf5974
if test -n "$wordsize"
bf5974
then
bf5974
  mv %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig.h \
bf5974
     %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig-$wordsize.h
bf5974
bf5974
  cat >%{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig.h <
bf5974
#ifndef __LV_CONFIG_H_MULTILIB__
bf5974
#define __LV_CONFIG_H_MULTILIB__
bf5974
bf5974
#include <bits/wordsize.h>
bf5974
bf5974
#if __WORDSIZE == 32
bf5974
# include "lvconfig-32.h"
bf5974
#elif __WORDSIZE == 64
bf5974
# include "lvconfig-64.h"
bf5974
#else
bf5974
# error "unexpected value for __WORDSIZE macro"
bf5974
#endif
bf5974
bf5974
#endif
bf5974
EOF
bf5974
bf5974
fi
bf5974
f8ec15
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
f8ec15
f8ec15
%find_lang %{name}-%{smallversion}
f8ec15
f8ec15
%post -p /sbin/ldconfig
f8ec15
f8ec15
%postun -p /sbin/ldconfig
f8ec15
f8ec15
%files -f %{name}-%{smallversion}.lang
f8ec15
%doc AUTHORS ChangeLog NEWS README TODO
f8ec15
%license COPYING
f8ec15
%{_libdir}/*.so.*
f8ec15
f8ec15
%files devel
f8ec15
%doc README NEWS TODO AUTHORS
f8ec15
%{_libdir}/*.so
f8ec15
%{_libdir}/pkgconfig/*.pc
f8ec15
%{_includedir}/%{name}-%{smallversion}
f8ec15
f8ec15
f8ec15
%changelog
bf5974
* Fri Jan 15 2021 Kalev Lember <klember@redhat.com> - 1:0.4.0-25
bf5974
- Fix multilib conflicts in lvconfig.h
bf5974
- Resolves: #1853155
bf5974
f8ec15
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-24
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f8ec15
f8ec15
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-23
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f8ec15
f8ec15
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-22
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f8ec15
f8ec15
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-21
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f8ec15
f8ec15
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-20
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f8ec15
f8ec15
* Tue Jan 19 2016 Tom Callaway <spot@fedoraproject.org> - 1:0.4.0-19
f8ec15
- spec file cleanups
f8ec15
f8ec15
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4.0-18
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f8ec15
f8ec15
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4.0-17
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f8ec15
f8ec15
* Fri Jun 13 2014 Kalev Lember <kalevlember@gmail.com> - 1:0.4.0-16
f8ec15
- Fix epoch use
f8ec15
f8ec15
* Wed Jun 11 2014 Tom Callaway <spot@fedoraproject.org> - 1:0.4.0-15
f8ec15
- 0.5.0 beta was a bad idea. nothing else supports it.
f8ec15
- fix format-security issue
f8ec15
f8ec15
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-14
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f8ec15
f8ec15
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-13
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f8ec15
f8ec15
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-12
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f8ec15
f8ec15
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-11
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f8ec15
f8ec15
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-10
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f8ec15
f8ec15
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-9
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f8ec15
f8ec15
* Sat Mar 07 2009 Caolán McNamara <caolanm@redhat.com> - 0.4.0-8
f8ec15
- defining inline causes problems trying to build against libvisual headers, 
f8ec15
  e.g. libvisual-plugins
f8ec15
f8ec15
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-7
f8ec15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f8ec15
f8ec15
* Tue Mar 11 2008 - Bastien Nocera <bnocera@redhat.com> - 0.4.0-6
f8ec15
- Better Altivec detection, code from David Woodhouse
f8ec15
f8ec15
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.0-5
f8ec15
- Autorebuild for GCC 4.3
f8ec15
f8ec15
* Sun Aug 26 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-4
f8ec15
- fix license tag
f8ec15
f8ec15
* Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-3
f8ec15
- rebuild
f8ec15
f8ec15
* Sat Jul 08 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-2
f8ec15
- bump release
f8ec15
f8ec15
* Thu Jul 06 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-1
f8ec15
- version 0.4.0
f8ec15
- drop Patch0 (applied upstream)
f8ec15
f8ec15
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-8
f8ec15
- fix dependency for modular X
f8ec15
f8ec15
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-7
f8ec15
- rebuild for FC5
f8ec15
f8ec15
* Wed Jun 15 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-6
f8ec15
- rebuild
f8ec15
f8ec15
* Wed Jun 15 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-5
f8ec15
- fix build for GCC4
f8ec15
f8ec15
* Thu Jun  9 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.2.0-4
f8ec15
- use dist tag for all-arch-rebuild
f8ec15
f8ec15
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.2.0-3
f8ec15
- rebuilt
f8ec15
f8ec15
* Mon Feb 14 2005 David Woodhouse <dwmw2@infradead.org> 0.2.0-2
f8ec15
- Fix bogus #if where #ifdef was meant
f8ec15
f8ec15
* Thu Feb 10 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-1
f8ec15
- version 0.2.0
f8ec15
- drop patch
f8ec15
f8ec15
* Sat Nov 27 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.7-0.fdr.1
f8ec15
- version 0.1.7
f8ec15
f8ec15
* Thu Oct 21 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.6-0.fdr.2
f8ec15
- Apply Adrian Reber's suggestions in bug 2182
f8ec15
f8ec15
* Tue Sep 28 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.6-0.fdr.1
f8ec15
- Initial RPM release.