Blame SPECS/libvisual.spec

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