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

Last change on this file since 817 was 652, checked in by dmik, 10 years ago

spec: libtool: Release version 2.4.6-2.

File size: 6.7 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: 2%{?dist}
9License: GPLv2+ and LGPLv2+ and GFDL
10URL: http://www.gnu.org/software/libtool/
11Group: Development/Tools
12Vendor: bww bitwise works GmbH
13
14#Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
15
16%define svn_url http://svn.netlabs.org/repos/ports/libtool/trunk
17%define svn_rev 1283
18
19Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
20
21BuildRequires: gcc make subversion zip
22
23%info_requires
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%debug_package
77
78%prep
79%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}
80%setup -q
81%else
82%setup -n "%{name}-%{version}" -Tc
83svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
84rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
85(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
86%endif
87
88# Make sure configure is updated to properly support OS/2
89# (slashes in PATH are needed for the bootstrap script itself)
90export PATH=`echo $PATH | tr '\\\\' /`
91./bootstrap --copy --force --skip-git
92
93# Restore .version and ChangeLog as they are not properly regenerated (they need .git)
94rm -f .version ChangeLog
95mv .version~ .version
96mv ChangeLog~ ChangeLog
97
98%build
99
100%configure --prefix=%{_prefix} \
101 --exec-prefix=%{_prefix} \
102 --bindir=%{_bindir} \
103 --sbindir=%{_sbindir} \
104 --sysconfdir=%{_sysconfdir} \
105 --datadir=%{_datadir} \
106 --includedir=%{_includedir} \
107 --libdir=%{_libdir} \
108 --libexecdir=%{_libexecdir} \
109 --localstatedir=%{_localstatedir} \
110 --mandir=%{_mandir} \
111 --infodir=%{_infodir}
112
113## build not smp safe:
114make # %%{?_smp_mflags}
115
116#for i in ChangeLog.1997 ChangeLog.1998 ChangeLog.1999 ChangeLog.2002; do
117# iconv -f ISO_8859-15 -t UTF8 $i > $i.tmp
118# mv -f $i.tmp $i
119#done
120
121# @todo Check seems to work per se but not under RPM
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%info_post %{name}.info
138
139%preun
140%info_preun %{name}.info
141
142%files
143%defattr(-,root,root)
144%doc AUTHORS COPYING NEWS README THANKS TODO ChangeLog*
145%{_infodir}/libtool.info*
146%{_mandir}/man1/libtool.1*
147%{_mandir}/man1/libtoolize.1*
148%{_bindir}/libtool
149%{_bindir}/libtoolize
150%{_datadir}/aclocal/*.m4
151%exclude %{_datadir}/libtool/libltdl
152%{_datadir}/libtool
153
154%files ltdl
155%defattr(-,root,root)
156%doc libltdl/COPYING.LIB
157%{_libdir}/ltdl*.dll
158
159%files ltdl-devel
160%defattr(-,root,root)
161%doc libltdl/README
162%{_datadir}/libtool/libltdl
163%{_includedir}/ltdl.h
164%{_includedir}/libltdl
165# Import libraries must be in -devel subpackage
166%{_libdir}/ltdl*_dll.a
167
168%changelog
169* Tue Feb 2 2016 Dmitriy Kuminov <coding@dmik.org> 2.4.6-2
170- Fix missing DLL exports when -export-symbols-regex is given.
171- Fix broken -os2dllname compatiblity.
172- Set libext to lib when AR is emxomfar.
173- Make SYMBOL_UNDERSCORE correctly defined.
174
175* Tue Feb 17 2015 Dmitriy Kuminov <coding@dmik.org> 2.4.6-1
176- Update to version 2.4.6 from vendor.
177
178* Tue Jan 23 2015 yd
179- rebuild for gcc 4.9.2.
180
181* Tue Jan 13 2015 Dmitriy Kuminov <coding@dmik.org> 2.4.2-8
182- Support -release option on OS/2.
183- Use response files for long command lines when linking DLLs on OS/2.
184
185* Fri Oct 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-7
186- Rename -os2dllname switch to -shortname (old one is still
187 supported for backward compatibility).
188- Always set allow_undefined to no on OS/2.
189- Fix setting BEGINLIBPATH in execute mode on OS/2.
190- Support -version-number on OS/2.
191
192* Tue Oct 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-6
193- Generate proper DLL version suffix (CURRNENT - AGE).
194
195* Tue Sep 30 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-5
196- Fix weird typo breaking correct OS/2 DLL name generation
197 in some cases.
198
199* Thu Sep 04 2014 yd
200- added debug package with symbolic info for exceptq.
201
202* Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-3
203- Rebuild with autoconf 2.69-2.
204- Use /@unixroot in generated files instead of absolute paths to
205 compiler files.
206
207* Mon Sep 1 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-2
208- Fix PATH_SEPARATOR detection in libtoolize.
209
210* Sun Aug 31 2014 Dmitriy Kuminov <coding@dmik.org> 2.4.2-1
211- Initial package for version 2.4.2.
Note: See TracBrowser for help on using the repository browser.