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

Last change on this file since 1010 was 911, checked in by dmik, 9 years ago

spec: libtool: Release version 2.4.6-3.

File size: 7.0 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.6
8Release: 3%{?dist}
9License: GPLv2+ and LGPLv2+ and GFDL
10URL: http://www.gnu.org/software/libtool/
11Group: Development/Tools
12Vendor: bww bitwise works GmbH
13
14%define svn_url http://svn.netlabs.org/repos/ports/libtool/trunk
15%define svn_rev 1847
16
17Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
18
19BuildRequires: gcc make subversion zip
20
21%info_requires
22
23BuildRequires: autoconf, automake
24#BuildRequires: texinfo
25Requires: autoconf, automake, sed, tar
26
27# make sure we can configure all supported langs
28#BuildRequires: libstdc++-devel, gcc-gfortran
29
30# /usr/bin/libtool includes paths within gcc's versioned directories
31# Libtool must be rebuilt whenever a new upstream gcc is built
32Requires: gcc >= %{gcc_version}
33Requires: gcc <= %{gcc_version}.999
34
35%description
36GNU Libtool is a set of shell scripts which automatically configure UNIX and
37UNIX-like systems to generically build shared libraries. Libtool provides a
38consistent, portable interface which simplifies the process of using shared
39libraries.
40
41If you are developing programs which will use shared libraries, but do not use
42the rest of the GNU Autotools (such as GNU Autoconf and GNU Automake), you
43should install the libtool package.
44
45The libtool package also includes all files needed to integrate the GNU
46Portable Library Tool (libtool) and the GNU Libtool Dynamic Module Loader
47(ltdl) into a package built using the GNU Autotools (including GNU Autoconf
48and GNU Automake).
49
50%package ltdl
51Summary: Runtime libraries for GNU Libtool Dynamic Module Loader
52Group: System Environment/Libraries
53Provides: %{name}-libs = %{version}-%{release}
54License: LGPLv2+
55
56%description ltdl
57The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a
58library that provides a consistent, portable interface which simplifies the
59process of using dynamic modules.
60
61These runtime libraries are needed by programs that link directly to the
62system-installed ltdl libraries; they are not needed by software built using
63the rest of the GNU Autotools (including GNU Autoconf and GNU Automake).
64
65%package ltdl-devel
66Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader
67Group: Development/Libraries
68Requires: %{name}-ltdl = %{version}-%{release}
69License: LGPLv2+
70
71%description ltdl-devel
72Static libraries and header files for development with ltdl.
73
74%debug_package
75
76%prep
77%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}
78%setup -q
79%else
80%setup -n "%{name}-%{version}" -Tc
81svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
82rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
83(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
84%endif
85
86# Make sure configure is updated to properly support OS/2
87# (slashes in PATH are needed for the bootstrap script itself)
88export PATH=`echo $PATH | tr '\\\\' /`
89./bootstrap --copy --force --skip-git
90
91# Restore .version and ChangeLog as they are not properly regenerated (they need .git)
92rm -f .version ChangeLog
93mv .version~ .version
94mv ChangeLog~ ChangeLog
95
96%build
97
98# These are for LTDL DLL
99export LDFLAGS="-Zomf -Zmap -Zhigh-mem"
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 V=1 # %%{?_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# @todo Check seems to work per se but not under RPM
123#%check
124#make check VERBOSE=yes
125
126%install
127rm -rf ${buildroot}
128make install DESTDIR=%{buildroot}
129
130# info's TOP dir (by default owned by info)
131rm -f %{buildroot}%{_infodir}/dir
132# *.la *.a files generated by libtool shouldn't be distributed (and the
133# `./configure --disable-static' breaks testsuite)
134rm -f %{buildroot}%{_libdir}/libltdl.la
135rm -f %{buildroot}%{_libdir}/ltdl.a
136
137%clean
138rm -rf $RPM_BUILD_ROOT
139
140%post
141%info_post %{name}.info
142
143%preun
144%info_preun %{name}.info
145
146%files
147%defattr(-,root,root)
148%doc AUTHORS COPYING NEWS README THANKS TODO ChangeLog*
149%{_infodir}/libtool.info*
150%{_mandir}/man1/libtool.1*
151%{_mandir}/man1/libtoolize.1*
152%{_bindir}/libtool
153%{_bindir}/libtoolize
154%{_datadir}/aclocal/*.m4
155%exclude %{_datadir}/libtool/libltdl
156%{_datadir}/libtool
157
158%files ltdl
159%defattr(-,root,root)
160%doc libltdl/COPYING.LIB
161%{_libdir}/ltdl*.dll
162
163%files ltdl-devel
164%defattr(-,root,root)
165%doc libltdl/README
166%{_datadir}/libtool/libltdl
167%{_includedir}/ltdl.h
168%{_includedir}/libltdl
169# Import libraries must be in -devel subpackage
170%{_libdir}/ltdl*_dll.a
171
172%changelog
173* Mon Nov 28 2016 Dmitriy Kuminov <coding@dmik.org> 2.4.6-3
174- Add -buildlevel command line option to pass BUILDLEVEL signature
175 for DLL creation.
176- Fix NEED_USCORE detection in ltdl (LT_FUNC_DLSYM_USCORE) on OS/2.
177- Build LTDL DLL with high memory support (-Zhigh-mem).
178
179* Tue Feb 2 2016 Dmitriy Kuminov <coding@dmik.org> 2.4.6-2
180- Fix missing DLL exports when -export-symbols-regex is given.
181- Fix broken -os2dllname compatiblity.
182- Set libext to lib when AR is emxomfar.
183- Make SYMBOL_UNDERSCORE correctly defined.
184
185* Tue Feb 17 2015 Dmitriy Kuminov <coding@dmik.org> 2.4.6-1
186- Update to version 2.4.6 from vendor.
187
188* Fri Jan 23 2015 yd
189- rebuild for gcc 4.9.2.
190
191* Tue Jan 13 2015 Dmitriy Kuminov <coding@dmik.org> 2.4.2-8
192- Support -release option on OS/2.
193- Use response files for long command lines when linking DLLs on OS/2.
194
195* Fri Oct 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-7
196- Rename -os2dllname switch to -shortname (old one is still
197 supported for backward compatibility).
198- Always set allow_undefined to no on OS/2.
199- Fix setting BEGINLIBPATH in execute mode on OS/2.
200- Support -version-number on OS/2.
201
202* Tue Oct 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-6
203- Generate proper DLL version suffix (CURRNENT - AGE).
204
205* Tue Sep 30 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-5
206- Fix weird typo breaking correct OS/2 DLL name generation
207 in some cases.
208
209* Thu Sep 04 2014 yd
210- added debug package with symbolic info for exceptq.
211
212* Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-3
213- Rebuild with autoconf 2.69-2.
214- Use /@unixroot in generated files instead of absolute paths to
215 compiler files.
216
217* Mon Sep 1 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-2
218- Fix PATH_SEPARATOR detection in libtoolize.
219
220* Sun Aug 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-1
221- Initial package for version 2.4.2.
Note: See TracBrowser for help on using the repository browser.