libltdl/libltdl.spec

Sat, 21 Feb 2009 16:34:22 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 21 Feb 2009 16:34:22 +0100
changeset 6
961c83bf7b99
permissions
-rw-r--r--

Import custom package specs to build for undistributed platforms.
This allows installation of pulseaudio and its dependencies on some
operating systems not providing it in default package repositories.

michael@6 1 %define name libltdl
michael@6 2 %define version 0.1.3
michael@6 3 %define release 1
michael@6 4
michael@6 5 Summary: GNU portable run time dynamic link library
michael@6 6 Name: %{name}
michael@6 7 Version: %{version}
michael@6 8 Release: %{release}
michael@6 9 Source0: %{name}-%{version}.tar.bz2
michael@6 10 Patch0: libltdl.patch
michael@6 11 Packager: rufus t firefly <rufus.t.firefly@linux-mandrake.com>
michael@6 12 URL: http://www.gnu.org/software/libtool/
michael@6 13 License: GPL
michael@6 14 Group: System/Libraries
michael@6 15 BuildRoot: %{_tmppath}/%{name}-buildroot
michael@6 16 BuildRequires: libtool, automake, autoconf, perl
michael@6 17 Prefix: %{_prefix}
michael@6 18
michael@6 19 %description
michael@6 20 libltdl is an easy-to-use packaging of the GNU portable run time
michael@6 21 dynamic link library.
michael@6 22
michael@6 23 %package devel
michael@6 24 Summary: GNU portable run time dynamic link library development files
michael@6 25 Group: Development/Other
michael@6 26
michael@6 27 %description devel
michael@6 28 libltdl is an easy-to-use packaging of the GNU portable run time
michael@6 29 dynamic link library. You will only need this package if you intend
michael@6 30 to develop applications with this library
michael@6 31
michael@6 32 %prep
michael@6 33 rm -rf $RPM_BUILD_ROOT
michael@6 34
michael@6 35 %setup -n ltdl
michael@6 36 %patch -p0
michael@6 37
michael@6 38 %build
michael@6 39 # fix version number
michael@6 40 perl -pi -e "s|0.0.0|%{version}||g;" configure.in
michael@6 41
michael@6 42 # actual build
michael@6 43 ./autogen.sh
michael@6 44 %configure --enable-ltdl-install
michael@6 45 make all
michael@6 46
michael@6 47 %install
michael@6 48 mkdir -p $RPM_BUILD_ROOT%{_libdir}
michael@6 49 %makeinstall PREFIX=$RPM_BUILD_ROOT/usr
michael@6 50
michael@6 51 %clean
michael@6 52 rm -rf $RPM_BUILD_ROOT
michael@6 53
michael@6 54 %post
michael@6 55 /sbin/ldconfig
michael@6 56
michael@6 57 %postun
michael@6 58 /sbin/ldconfig
michael@6 59
michael@6 60 %files
michael@6 61 %defattr(-,root,root)
michael@6 62 %doc README
michael@6 63 %{_libdir}/libltdl.so
michael@6 64 %{_libdir}/libltdl.so.*
michael@6 65
michael@6 66 %files devel
michael@6 67 %defattr(-,root,root)
michael@6 68 %{_libdir}/libltdl.a
michael@6 69 %{_libdir}/libltdl.la
michael@6 70 %{_includedir}/ltdl.h
michael@6 71
michael@6 72 %changelog
michael@6 73 * Tue Nov 07 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
michael@6 74 - v0.1.3-1mdk
michael@6 75 - finalized from CVS
michael@6 76
michael@6 77 * Mon Sep 11 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.1.2.20000524-3mdk
michael@6 78 - clean spec
michael@6 79
michael@6 80 * Fri Jul 28 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.1.2.20000524-2mdk
michael@6 81 - BM
michael@6 82 - fuck rpmlint
michael@6 83
michael@6 84 * Tue Jun 27 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.1.2.20000524-1mdk
michael@6 85 - fix build by adding --enable-ltdl-install
michael@6 86 - new in contribs
michael@6 87
michael@6 88 * Wed May 24 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
michael@6 89 - v0.1.2.20000524 (initial packaging)
michael@6 90

mercurial