source: spec/trunk/SPECS/libtool.spec@ 502

Last change on this file since 502 was 502, checked in by Yuri Dario, 11 years ago

spec: libtool, rebuild for gcc 4.9.2.

File size: 6.4 KB
Line 
1# Note: this .spec is borrowed from libtool-2.4.2-21.fc20.src.rpm
2
3%global gcc_version 4.9.2
4
5Summary: The GNU Portable Library Tool
6Name: libtool
7Version: 2.4.2
8Release: 9%{?dist}
9License: GPLv2+ and LGPLv2+ and GFDL
10URL: http://www.gnu.org/software/libtool/
11Group: Development/Tools
12
13#Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
14
15%define svn_url http://svn.netlabs.org/repos/ports/libtool/trunk
16%define svn_rev 955
17
18Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
19
20BuildRequires: gcc make subversion zip
21
22#Requires(post): /sbin/install-info
23#Requires(preun): /sbin/install-info
24
25BuildRequires: autoconf, automake
26#BuildRequires: texinfo
27Requires: autoconf, automake, sed, tar
28
29# make sure we can configure all supported langs
30#BuildRequires: libstdc++-devel, gcc-gfortran
31
32# /usr/bin/libtool includes paths within gcc's versioned directories
33# Libtool must be rebuilt whenever a new upstream gcc is built
34Requires: gcc >= %{gcc_version}
35Requires: gcc <= %{gcc_version}.999
36
37%description
38GNU Libtool is a set of shell scripts which automatically configure UNIX and
39UNIX-like systems to generically build shared libraries. Libtool provides a
40consistent, portable interface which simplifies the process of using shared
41libraries.
42
43If you are developing programs which will use shared libraries, but do not use
44the rest of the GNU Autotools (such as GNU Autoconf and GNU Automake), you
45should install the libtool package.
46
47The libtool package also includes all files needed to integrate the GNU
48Portable Library Tool (libtool) and the GNU Libtool Dynamic Module Loader
49(ltdl) into a package built using the GNU Autotools (including GNU Autoconf
50and GNU Automake).
51
52%package ltdl
53Summary: Runtime libraries for GNU Libtool Dynamic Module Loader
54Group: System Environment/Libraries
55Provides: %{name}-libs = %{version}-%{release}
56License: LGPLv2+
57
58%description ltdl
59The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a
60library that provides a consistent, portable interface which simplifies the
61process of using dynamic modules.
62
63These runtime libraries are needed by programs that link directly to the
64system-installed ltdl libraries; they are not needed by software built using
65the rest of the GNU Autotools (including GNU Autoconf and GNU Automake).
66
67%package ltdl-devel
68Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader
69Group: Development/Libraries
70Requires: %{name}-ltdl = %{version}-%{release}
71License: LGPLv2+
72
73%description ltdl-devel
74Static libraries and header files for development with ltdl.
75
76%package debug
77Summary: HLL debug data for exception handling support.
78
79%description debug
80HLL debug data for exception handling support.
81
82%prep
83%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
84%setup -q
85%else
86%setup -n "%{name}-%{version}" -Tc
87svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
88rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
89(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
90%endif
91
92# make sure configure is updated to properly support OS/2
93bootstrap
94
95%build
96
97# we don't have makeinfo/help2man yet; fake them (this will wipe docs out)
98export MAKEINFO=:
99export HELP2MAN=:
100
101%configure --prefix=%{_prefix} \
102 --exec-prefix=%{_prefix} \
103 --bindir=%{_bindir} \
104 --sbindir=%{_sbindir} \
105 --sysconfdir=%{_sysconfdir} \
106 --datadir=%{_datadir} \
107 --includedir=%{_includedir} \
108 --libdir=%{_libdir} \
109 --libexecdir=%{_libexecdir} \
110 --localstatedir=%{_localstatedir} \
111 --mandir=%{_mandir} \
112 --infodir=%{_infodir}
113
114## build not smp safe:
115make # %%{?_smp_mflags}
116
117#for i in ChangeLog.1997 ChangeLog.1998 ChangeLog.1999 ChangeLog.2002; do
118# iconv -f ISO_8859-15 -t UTF8 $i > $i.tmp
119# mv -f $i.tmp $i
120#done
121
122#%check
123#make check VERBOSE=yes
124
125%install
126rm -rf ${buildroot}
127make install DESTDIR=%{buildroot}
128
129# info's TOP dir (by default owned by info)
130rm -f %{buildroot}%{_infodir}/dir
131# *.la *.a files generated by libtool shouldn't be distributed (and the
132# `./configure --disable-static' breaks testsuite)
133rm -f %{buildroot}%{_libdir}/libltdl.la
134rm -f %{buildroot}%{_libdir}/ltdl.a
135
136#%post
137#/sbin/install-info %{_infodir}/libtool.info.gz %{_infodir}/dir || :
138
139#%preun
140#if [ "$1" = 0 ]; then
141# /sbin/install-info --delete %{_infodir}/libtool.info.gz %{_infodir}/dir || :
142#fi
143
144%files
145%defattr(-,root,root)
146%doc AUTHORS COPYING NEWS README THANKS TODO ChangeLog*
147#%{_infodir}/libtool.info*.gz
148%{_mandir}/man1/libtool.1*
149%{_mandir}/man1/libtoolize.1*
150%{_bindir}/libtool
151%{_bindir}/libtoolize
152%{_datadir}/aclocal/*.m4
153%exclude %{_datadir}/libtool/libltdl
154%{_datadir}/libtool
155
156%files ltdl
157%defattr(-,root,root)
158%doc libltdl/COPYING.LIB
159%{_libdir}/ltdl*.dll
160
161%files ltdl-devel
162%defattr(-,root,root)
163%doc libltdl/README
164%{_datadir}/libtool/libltdl
165%{_includedir}/ltdl.h
166%{_includedir}/libltdl
167# Import libraries must be in -devel subpackage
168%{_libdir}/ltdl*_dll.a
169
170%files debug
171%defattr(-,root,root)
172%{_libdir}/*.dbg
173
174%changelog
175* Tue Jan 23 2015 yd
176- rebuild for gcc 4.9.2.
177
178* Tue Jan 13 2015 Dmitriy Kuminov <coding@dmik.org> 2.4.2-8
179- Support -release option on OS/2.
180- Use response files for long command lines when linking DLLs on OS/2.
181
182* Fri Oct 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-7
183- Rename -os2dllname switch to -shortname (old one is still
184 supported for backward compatibility).
185- Always set allow_undefined to no on OS/2.
186- Fix setting BEGINLIBPATH in execute mode on OS/2.
187- Support -version-number on OS/2.
188
189* Tue Oct 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-6
190- Generate proper DLL version suffix (CURRNENT - AGE).
191
192* Tue Sep 30 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-5
193- Fix weird typo breaking correct OS/2 DLL name generation
194 in some cases.
195
196* Thu Sep 04 2014 yd
197- added debug package with symbolic info for exceptq.
198
199* Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-3
200- Rebuild with autoconf 2.69-2.
201- Use /@unixroot in generated files instead of absolute paths to
202 compiler files.
203
204* Mon Sep 1 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-2
205- Fix PATH_SEPARATOR detection in libtoolize.
206
207* Sun Aug 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-1
208- Initial package for version 2.4.2.
Note: See TracBrowser for help on using the repository browser.