Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
michael@0 | 1 | Summary: DTS Coherent Acoustics decoder library |
michael@0 | 2 | Name: libdca |
michael@0 | 3 | Version: 0.0.5 |
michael@0 | 4 | Release: 6%{?dist} |
michael@0 | 5 | URL: http://www.videolan.org/developers/libdca.html |
michael@0 | 6 | Group: System Environment/Libraries |
michael@0 | 7 | Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 |
michael@0 | 8 | Patch0: libdca-0.0.5-relsymlinks.patch |
michael@0 | 9 | Patch1: libdca-0.0.5-strict-aliasing.patch |
michael@0 | 10 | License: GPLv2+ |
michael@0 | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
michael@0 | 12 | |
michael@0 | 13 | %description |
michael@0 | 14 | libdca is a free library for decoding DTS Coherent Acoustics streams. It is |
michael@0 | 15 | released under the terms of the GPL license. The DTS Coherent Acoustics |
michael@0 | 16 | standard is used in a variety of applications, including DVD, DTS audio CD and |
michael@0 | 17 | radio broadcasting. |
michael@0 | 18 | |
michael@0 | 19 | %package devel |
michael@0 | 20 | Summary: Development files for %{name} |
michael@0 | 21 | Group: Development/Libraries |
michael@0 | 22 | Obsoletes: libdts-devel < 0.0.2-2 |
michael@0 | 23 | Provides: libdts-devel = 0.0.2-2 |
michael@0 | 24 | Requires: %{name} = %{version}-%{release} |
michael@0 | 25 | Requires: pkgconfig |
michael@0 | 26 | |
michael@0 | 27 | %description devel |
michael@0 | 28 | Development files for %{name}. |
michael@0 | 29 | |
michael@0 | 30 | Install %{name}-devel if you wish to develop or compile |
michael@0 | 31 | applications that use %{name}. |
michael@0 | 32 | |
michael@0 | 33 | %package tools |
michael@0 | 34 | Summary: Various tools for use with %{name} |
michael@0 | 35 | Group: Applications/Multimedia |
michael@0 | 36 | |
michael@0 | 37 | %description tools |
michael@0 | 38 | Various tools that use %{name}. |
michael@0 | 39 | |
michael@0 | 40 | %prep |
michael@0 | 41 | %setup -q |
michael@0 | 42 | %patch0 -p1 -b .relsymlinks |
michael@0 | 43 | %patch1 -p1 -b .aliasing |
michael@0 | 44 | iconv -f ISO8859-1 -t UTF-8 AUTHORS > tmp; mv tmp AUTHORS |
michael@0 | 45 | |
michael@0 | 46 | %build |
michael@0 | 47 | %configure --disable-static |
michael@0 | 48 | # Get rid of the /usr/lib64 RPATH on 64bit (as of 0.0.5) |
michael@0 | 49 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
michael@0 | 50 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
michael@0 | 51 | # Force PIC as applications fail to recompile against the lib on x86_64 without |
michael@0 | 52 | %{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS -fPIC" |
michael@0 | 53 | |
michael@0 | 54 | %install |
michael@0 | 55 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 56 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" |
michael@0 | 57 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}.la |
michael@0 | 58 | |
michael@0 | 59 | %clean |
michael@0 | 60 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 61 | |
michael@0 | 62 | %post -p /sbin/ldconfig |
michael@0 | 63 | |
michael@0 | 64 | %postun -p /sbin/ldconfig |
michael@0 | 65 | |
michael@0 | 66 | %files |
michael@0 | 67 | %defattr(-,root,root,-) |
michael@0 | 68 | %doc AUTHORS COPYING ChangeLog NEWS README |
michael@0 | 69 | %{_libdir}/%{name}.so.* |
michael@0 | 70 | |
michael@0 | 71 | %files tools |
michael@0 | 72 | %defattr(-,root,root,-) |
michael@0 | 73 | %{_bindir}/* |
michael@0 | 74 | %{_mandir}/man1/* |
michael@0 | 75 | |
michael@0 | 76 | %files devel |
michael@0 | 77 | %defattr(-,root,root,-) |
michael@0 | 78 | %doc TODO doc/%{name}.txt |
michael@0 | 79 | %{_libdir}/pkgconfig/libd??.pc |
michael@0 | 80 | %{_includedir}/d??.h |
michael@0 | 81 | %{_libdir}/%{name}.so |
michael@0 | 82 | |
michael@0 | 83 | %changelog |
michael@0 | 84 | * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.0.5-6 |
michael@0 | 85 | - Build for MeeGo 1.1 |
michael@0 | 86 | |
michael@0 | 87 | * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.0.5-5 |
michael@0 | 88 | - Rebuild |
michael@0 | 89 | |
michael@0 | 90 | * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.0.5-4 |
michael@0 | 91 | - rebuild for new F11 features |
michael@0 | 92 | |
michael@0 | 93 | * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.0.5-3 |
michael@0 | 94 | - rebuild |
michael@0 | 95 | |
michael@0 | 96 | * Fri Nov 2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.0.5-2 |
michael@0 | 97 | - Merge freshrpms spec into livna spec for rpmfusion: |
michael@0 | 98 | - Update to latest upstream releae 0.0.5 as used by freshrpms |
michael@0 | 99 | - Set release to 2 to be higher as both livna and freshrpms latest release |
michael@0 | 100 | - Drop x86_64 patch (not needed since we override OPT_CFLAGS anyways) |
michael@0 | 101 | - Drop visibility patch, this should be done upstream |
michael@0 | 102 | - Drop upstream integrated libtool patch |
michael@0 | 103 | - No longer regenerate the autoxxx scripts as this is no longer needed |
michael@0 | 104 | - Port strict aliasing patch to 0.0.5 release |
michael@0 | 105 | - Add relative symlink creation patch from freshrpms |
michael@0 | 106 | - Update license tag in accordance with new license tag guidelines |
michael@0 | 107 | |
michael@0 | 108 | * Sat Nov 25 2006 Dominik Mierzejewski <rpm@greysector.net> 0.0.2-3 |
michael@0 | 109 | - added patches from gentoo (shared build, strict aliasing and visibility) |
michael@0 | 110 | |
michael@0 | 111 | * Sat Oct 28 2006 Dominik Mierzejewski <rpm@greysector.net> 0.0.2-2 |
michael@0 | 112 | - renamed to libdca |
michael@0 | 113 | - added Obsoletes/Provides |
michael@0 | 114 | - simplified autotools call |
michael@0 | 115 | |
michael@0 | 116 | * Mon Aug 07 2006 Dominik Mierzejewski <rpm@greysector.net> 0.0.2-1 |
michael@0 | 117 | - stop pretending we have a newer version |
michael@0 | 118 | |
michael@0 | 119 | * Sat Apr 16 2005 Dominik Mierzejewski <rpm@greysector.net> 0.0.3-0.20040725.1 |
michael@0 | 120 | - adapted ArkLinux specfile |
michael@0 | 121 | - x86_64 portability patch |
michael@0 | 122 | |
michael@0 | 123 | * Sun Jul 25 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 0.0.3-0.20040725.1ark |
michael@0 | 124 | - Force -fPIC |
michael@0 | 125 | - Update |
michael@0 | 126 | |
michael@0 | 127 | * Wed Jul 07 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 0.0.3-0.20040707.1ark |
michael@0 | 128 | - initial RPM |