Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
a52dec
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
a52dec.spec
@@ -1,25 +1,31 @@ -%define name a52dec -%define version 0.7.4 -%define release 1 -%define mandir %{_mandir} +# norootforbuild + +%define name a52dec +%define version 0.7.4 +%define release 3 +%define major 0 +%define lib liba52dec +%define libname %{lib}%{major} +%define mandir %{_mandir} Summary: library for decoding ATSC A/52 streams Summary(de): Bibliothek zum dekodieren von ATSC A/52 Streams Name: %{name} Version: %{version} Release: %{release} -License: GPL -Group: Development/Libraries/C +License: GPL v2 or later +Group: Productivity/Multimedia/Sound/Utilities Source0: a52dec-0.7.4.tar.bz2 URL: http://liba52.sourceforge.net/ BuildRoot: /var/tmp/%{name}-%{version}-%{release} Prefix: %{_prefix} - -Packager: %packager -Vendor: %vendor -Distribution: %distribution +BuildRequires: glibc-devel +BuildRequires: gcc +BuildRequires: gzip +Requires: %{libname} = %{version}-%{release} +Autoreqprov: On %description liba52 is a free library for decoding ATSC A/52 streams. @@ -27,51 +33,81 @@ %description -l de liba52 ist eine frei Biblothek zum dekodieren von ATSC A/52 Streams. +%package -n %{libname} +Group: System/Libraries +Summary: Shared library part of a52dec +Summary(de): Bibliotheken zu a52dec +Provides: %{lib} = %{version}-%{release} + +%description -n %{libname} +Shared library part of a52dec + +%description -n %{libname} -l de +Bibliotheken zu a52dec + +%package -n %{lib}-devel +Group: System/Libraries +Summary: Header files and static library for the a52dec library +Summary(de): Header Dateien und statische Bibliotheken für die a52dec Bibliothek +Requires: %{libname} = %{version}-%{release} +Requires: glibc-devel +Requires: gcc + +%description -n %{lib}-devel +Header files and static library for the a52dec library + +%description -n %{lib}-devel -l de +Header Dateien und statische Bibliotheken für die a52dec Bibliothek + +%debug_package + + %prep %setup %build %ifarch x86_64 amd64 ia32e -CFLAGS="$RPM_OPT_FLAGS -fPIC" +CFLAGS="${RPM_OPT_FLAGS} -fPIC" %else -CFLAGS="$RPM_OPT_FLAGS" +CFLAGS="${RPM_OPT_FLAGS}" %endif CC=gcc export CC CFLAGS -./configure --prefix=%{prefix} --mandir=%{mandir} --libdir=%{_libdir} --enable-shared -make +%configure --enable-shared +%__make %{?jobs:-j%{jobs}} %install -[ "$RPM_BUILD_ROOT" = "/var/tmp/%{name}-%{version}-%{release}" ] && rm -rf $RPM_BUILD_ROOT; - -make DESTDIR=$RPM_BUILD_ROOT install +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} +%makeinstall -/sbin/ldconfig -n $RPM_BUILD_ROOT +find %{buildroot}%{mandir} -type f -exec gzip -9 {} \; -find $RPM_BUILD_ROOT%{mandir} -type f -exec gzip -9 {} \; - -#find $RPM_BUILD_ROOT -type f -o -type l |sed -e "s|$RPM_BUILD_ROOT||g" > filelist - -%postun -/sbin/ldconfig +%clean +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} -%post -/sbin/ldconfig +%post -n %{libname} +%run_ldconfig -%clean -[ "$RPM_BUILD_ROOT" = "/var/tmp/%{name}-%{version}-%{release}" ] && rm -rf $RPM_BUILD_ROOT; +%postun -n %{libname} +%run_ldconfig %files %defattr(-, root, root) %doc README ChangeLog AUTHORS HISTORY INSTALL NEWS TODO COPYING -%{prefix}/bin/* -%{prefix}/include/a52dec/*.h -%{_libdir}/* +%{_bindir}/* %{mandir}/man1/*.gz +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n %{lib}-devel +%defattr(-,root,root) +%{_includedir}/ +%{_libdir}/*.so +%{_libdir}/*.*a + %changelog * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> - import for SLE_10 build - -