[620] | 1 | %define name libdca |
---|
| 2 | %define version 0.0.5 |
---|
| 3 | %define release 4%{?_dist_release} |
---|
| 4 | |
---|
| 5 | Summary: DTS Coherent Acoustics decoder library |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Source: http://download.videolan.org/pub/videolan/libdca/0.0.5/%{name}-%{version}.tar.bz2 |
---|
| 10 | Patch0: libdca-0.0.5-relsymlinks.patch |
---|
| 11 | URL: http://www.videolan.org/developers/libdca.html |
---|
| 12 | License: GPLv2+ |
---|
| 13 | Group: System Environment/Libraries |
---|
| 14 | |
---|
| 15 | #Requires: |
---|
| 16 | BuildRequires: automake, libtool |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | libdca is a free library for decoding DTS Coherent Acoustics streams. It is |
---|
| 21 | released under the terms of the GPL license. The DTS Coherent Acoustics |
---|
| 22 | standard is used in a variety of applications, including DVD, DTS audio CD and |
---|
| 23 | radio broadcasting. |
---|
| 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Development files for %{name} |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | Requires: pkgconfig |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | Development files for %{name}. |
---|
| 33 | |
---|
| 34 | Install %{name}-devel if you wish to develop or compile |
---|
| 35 | applications that use %{name}. |
---|
| 36 | |
---|
| 37 | %package tools |
---|
| 38 | Summary: Various tools for use with %{name} |
---|
| 39 | Group: Applications/Multimedia |
---|
| 40 | |
---|
| 41 | %description tools |
---|
| 42 | Various tools that use %{name}. |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | rm -rf $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | %setup -q |
---|
| 48 | %patch0 -p1 -b .relsymlinks |
---|
| 49 | |
---|
| 50 | %build |
---|
| 51 | %configure |
---|
| 52 | %{__make} %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS" |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 57 | |
---|
| 58 | %clean |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | %post -p /sbin/ldconfig |
---|
| 62 | |
---|
| 63 | %postun -p /sbin/ldconfig |
---|
| 64 | |
---|
| 65 | %files |
---|
| 66 | %defattr(-,root,root,0755) |
---|
| 67 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 68 | %{_libdir}/*.so.* |
---|
| 69 | |
---|
| 70 | %files tools |
---|
| 71 | %defattr(-,root,root,0755) |
---|
| 72 | %{_bindir}/* |
---|
| 73 | %{_mandir}/man1/* |
---|
| 74 | |
---|
| 75 | %files devel |
---|
| 76 | %defattr(-,root,root,-) |
---|
| 77 | %doc TODO doc/%{name}.txt |
---|
| 78 | %{_libdir}/pkgconfig/libd??.pc |
---|
| 79 | %{_includedir}/d??.h |
---|
| 80 | %{_libdir}/%{name}.so |
---|
| 81 | %{_libdir}/libd??.a |
---|
| 82 | %exclude %{_libdir}/libd??.la |
---|
| 83 | |
---|
| 84 | %changelog |
---|
| 85 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-4 |
---|
| 86 | - change release to sync with self-build-libdca |
---|
| 87 | |
---|
| 88 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.5-3 |
---|
| 89 | - change release to sync with self-build-libdca |
---|
| 90 | |
---|
| 91 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.5-2 |
---|
| 92 | - spec in utf8 |
---|
| 93 | - remove *.la |
---|
| 94 | |
---|
| 95 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.5-1 |
---|
| 96 | - apply new versioning policy |
---|
| 97 | |
---|
| 98 | * Sat Mar 1 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.5-0vl1 |
---|
| 99 | - initial build for Vine Linux 4.2 |
---|
| 100 | |
---|
| 101 | ### end of file |
---|