Blame SPECS/libvisual.spec

5c002c
%define smallversion 0.4
5c002c
5c002c
Name:           libvisual
5c002c
Version:        0.4.0
e55684
Release:        16%{?dist}
5c002c
Summary:        Abstraction library for audio visualisation plugins
5c002c
5c002c
Group:          Applications/Multimedia
5c002c
License:        LGPLv2+
5c002c
URL:            http://libvisual.sf.net
5c002c
Source0:        http://dl.sf.net/libvisual/libvisual-0.4.0.tar.gz
5c002c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5c002c
BuildRequires:  xorg-x11-proto-devel
5c002c
5c002c
# https://bugzilla.redhat.com/show_bug.cgi?id=435771
5c002c
Patch0:         libvisual-0.4.0-better-altivec-detection.patch
5c002c
Patch1:         libvisual-0.4.0-inlinedefineconflict.patch
5c002c
5c002c
5c002c
%description
5c002c
Libvisual is an abstraction library that comes between applications and
5c002c
audio visualisation plugins.
5c002c
5c002c
Often when it comes to audio visualisation plugins or programs that create
5c002c
visuals they do depend on a player or something else, basically there is no
5c002c
general framework that enable application developers to easy access cool
5c002c
audio visualisation plugins. Libvisual wants to change this by providing
5c002c
an interface towards plugins and applications, through this easy to use
5c002c
interface applications can easily access plugins and since the drawing is
5c002c
done by the application it also enables the developer to draw the visual
5c002c
anywhere he wants.
5c002c
5c002c
%package        devel
5c002c
Summary:        Development files for libvisual
5c002c
Group:          Development/Libraries
5c002c
Requires:       %{name} = %{version}-%{release}
5c002c
5c002c
%description    devel
5c002c
Libvisual is an abstraction library that comes between applications and
5c002c
audio visualisation plugins.
5c002c
5c002c
This package contains the files needed to build an application with libvisual.
5c002c
5c002c
%prep
5c002c
%setup -q
5c002c
%patch0 -p1 -b .altivec-detection
5c002c
%patch1 -p1 -b .inlinedefineconflict
5c002c
5c002c
%build
5c002c
%ifarch i386
5c002c
export CFLAGS="${RPM_OPT_FLAGS} -mmmx -fno-strict-aliasing"
5c002c
%endif
5c002c
%configure
5c002c
make %{?_smp_mflags}
5c002c
5c002c
5c002c
%install
5c002c
rm -rf $RPM_BUILD_ROOT
5c002c
make install DESTDIR=$RPM_BUILD_ROOT
5c002c
5c002c
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
5c002c
5c002c
5c002c
# avoid multilib conflict
5c002c
mv %{buildroot}/%{_includedir}/libvisual-0.4/libvisual/lvconfig.h \
5c002c
   %{buildroot}/%{_includedir}/libvisual-0.4/libvisual/lvconfig-%{__isa_bits}.h
5c002c
cat >%{buildroot}/%{_includedir}/libvisual-0.4/libvisual/lvconfig.h <
5c002c
#ifndef _LV_CONFIG_H_MULTILIB
5c002c
#define _LV_CONFIG_H_MULTILIB
5c002c
5c002c
#include <bits/wordsize.h>
5c002c
5c002c
#if  __WORDSIZE == 32
5c002c
# include "lvconfig-32.h"
5c002c
#elif __WORDSIZE == 64
5c002c
# include "lvconfig-64.h"
5c002c
#else
5c002c
# error "unexpected value for __WORDSIZE macro"
5c002c
#endif
5c002c
5c002c
#endif
5c002c
EOF
5c002c
5c002c
%find_lang %{name}-%{smallversion}
5c002c
5c002c
5c002c
%clean
5c002c
rm -rf $RPM_BUILD_ROOT
5c002c
5c002c
5c002c
%post -p /sbin/ldconfig
5c002c
5c002c
%postun -p /sbin/ldconfig
5c002c
5c002c
5c002c
%files -f %{name}-%{smallversion}.lang
5c002c
%defattr(-,root,root,-)
5c002c
%doc AUTHORS COPYING ChangeLog NEWS README TODO
5c002c
%{_libdir}/*.so.*
5c002c
5c002c
%files devel
5c002c
%defattr(-,root,root,-)
5c002c
%doc README NEWS TODO AUTHORS
5c002c
%{_libdir}/*.so
5c002c
%{_libdir}/pkgconfig/*.pc
5c002c
%{_includedir}/%{name}-%{smallversion}
5c002c
5c002c
5c002c
%changelog
e55684
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.4.0-16
e55684
- Mass rebuild 2014-01-24
e55684
e55684
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4.0-15
e55684
- Mass rebuild 2013-12-27
e55684
5c002c
* Wed Oct  9 2013 Matthias Clasen <mclasen@redhat.com> - 0.4.0-14
5c002c
  Fixes for #884104
5c002c
- Disable strict aliasing
5c002c
- Avoid multilib conflict
5c002c
5c002c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-13
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5c002c
5c002c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-12
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5c002c
5c002c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-11
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5c002c
5c002c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-10
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5c002c
5c002c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-9
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5c002c
5c002c
* Sat Mar 07 2009 Caolán McNamara <caolanm@redhat.com> - 0.4.0-8
5c002c
- defining inline causes problems trying to build against libvisual headers, 
5c002c
  e.g. libvisual-plugins
5c002c
5c002c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-7
5c002c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5c002c
5c002c
* Tue Mar 11 2008 - Bastien Nocera <bnocera@redhat.com> - 0.4.0-6
5c002c
- Better Altivec detection, code from David Woodhouse
5c002c
5c002c
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.0-5
5c002c
- Autorebuild for GCC 4.3
5c002c
5c002c
* Sun Aug 26 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-4
5c002c
- fix license tag
5c002c
5c002c
* Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-3
5c002c
- rebuild
5c002c
5c002c
* Sat Jul 08 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-2
5c002c
- bump release
5c002c
5c002c
* Thu Jul 06 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-1
5c002c
- version 0.4.0
5c002c
- drop Patch0 (applied upstream)
5c002c
5c002c
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-8
5c002c
- fix dependency for modular X
5c002c
5c002c
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-7
5c002c
- rebuild for FC5
5c002c
5c002c
* Wed Jun 15 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-6
5c002c
- rebuild
5c002c
5c002c
* Wed Jun 15 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-5
5c002c
- fix build for GCC4
5c002c
5c002c
* Thu Jun  9 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.2.0-4
5c002c
- use dist tag for all-arch-rebuild
5c002c
5c002c
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.2.0-3
5c002c
- rebuilt
5c002c
5c002c
* Mon Feb 14 2005 David Woodhouse <dwmw2@infradead.org> 0.2.0-2
5c002c
- Fix bogus #if where #ifdef was meant
5c002c
5c002c
* Thu Feb 10 2005 Aurelien Bompard <gauret[AT]free.fr> 0.2.0-1
5c002c
- version 0.2.0
5c002c
- drop patch
5c002c
5c002c
* Sat Nov 27 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.7-0.fdr.1
5c002c
- version 0.1.7
5c002c
5c002c
* Thu Oct 21 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.6-0.fdr.2
5c002c
- Apply Adrian Reber's suggestions in bug 2182
5c002c
5c002c
* Tue Sep 28 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.1.6-0.fdr.1
5c002c
- Initial RPM release.