[packman] mad-devel without pkg-config

Jonh Arson jonharson at gmail.com
Sun Mar 5 00:18:21 CET 2006


the mad.pc file (package config file) isn't included in the mad-devel
present on packman

here is an attached fixed spec (also added debuginfo stripping that was
missing)

tried todo it the real way (using a .pc.in file) but that failed about 4
time in a row so i gave up and included the file directly and added it
as source, work alright just need to be sure too update it in case of a
version change. not sure if 0644 is optimal permission for that file
just be sure to double check ;)

-- 
Jonh Arson <jonharson at gmail.com>
http://www.m90.org/gallery/image/pacbomb.jpg :P
-------------- next part --------------
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
-------------- next part --------------
# Packmangroup: Multimedia
# Packmanpackagename: mad
# Packman: Detlef Reichelt

# norootforbuild

Name:         mad
Summary:      An MPEG audio decoder library
Summary(de):  MAD ist ein high-quality MPEG audio decoder.

Packager:       Detlef Reichelt <detlef at links2linux.de>
Vendor:         Packman
Distribution:   SuSE Linux 10.0 (i586)

Version:      0.15.1b
Release:      1.pm.1
Group:        System/Libraries
License:      GPL
URL:          http://www.underbit.com/products/mad/
Source:       libmad-%{version}.tar.bz2
Source1:      %{name}.pc
Patch:       mad-automake-fix.dif
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig

%description
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
and Layer III a.k.a. MP3) are fully implemented.

MAD supports high quality 24-bit PCM output for modern audio
technologies. MAD computes using 100% fixed-point (integer)
computation, so you can run it without a floating point unit.

Authors:
--------
    Underbit Technologies, Inc. <support at underbit.com>

%package devel
Summary:      Development package for mad
Group:        Development/Libraries/C and C++
Requires:     mad

%description devel
This package contains the header files and static libraries needed to
develop applications with libmad.

Authors:
--------
    Underbit Technologies, Inc. <support at underbit.com>

%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -n libmad-%{version}
%patch

%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
  --libdir=%{_libdir}
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_libdir}/pkgconfig/%{name}.pc"

%post
%run_ldconfig

%postun
%run_ldconfig

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/mad.pc

%changelog -n mad
* Sat Mar 4 2006 - Jonh Arson <jonharson at gmail.com>
- fixed missing .pc file in the -devel
- added debuginfo stripping
* Tue Sep 20 2005 - Henne Vogelsang <henne at links2linux.de>
- First packman release


More information about the Packman mailing list