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