| 1 | # Note: this .spec is borrowed from libtool-2.4.2-21.fc20.src.rpm
|
|---|
| 2 |
|
|---|
| 3 | %global gcc_version 4.9.2
|
|---|
| 4 |
|
|---|
| 5 | Summary: The GNU Portable Library Tool
|
|---|
| 6 | Name: libtool
|
|---|
| 7 | Version: 2.4.6
|
|---|
| 8 | Release: 3%{?dist}
|
|---|
| 9 | License: GPLv2+ and LGPLv2+ and GFDL
|
|---|
| 10 | URL: http://www.gnu.org/software/libtool/
|
|---|
| 11 | Group: Development/Tools
|
|---|
| 12 | Vendor: bww bitwise works GmbH
|
|---|
| 13 |
|
|---|
| 14 | %define svn_url http://svn.netlabs.org/repos/ports/libtool/trunk
|
|---|
| 15 | %define svn_rev 1847
|
|---|
| 16 |
|
|---|
| 17 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 18 |
|
|---|
| 19 | BuildRequires: gcc make subversion zip
|
|---|
| 20 |
|
|---|
| 21 | %info_requires
|
|---|
| 22 |
|
|---|
| 23 | BuildRequires: autoconf, automake
|
|---|
| 24 | #BuildRequires: texinfo
|
|---|
| 25 | Requires: 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
|
|---|
| 32 | Requires: gcc >= %{gcc_version}
|
|---|
| 33 | Requires: gcc <= %{gcc_version}.999
|
|---|
| 34 |
|
|---|
| 35 | %description
|
|---|
| 36 | GNU Libtool is a set of shell scripts which automatically configure UNIX and
|
|---|
| 37 | UNIX-like systems to generically build shared libraries. Libtool provides a
|
|---|
| 38 | consistent, portable interface which simplifies the process of using shared
|
|---|
| 39 | libraries.
|
|---|
| 40 |
|
|---|
| 41 | If you are developing programs which will use shared libraries, but do not use
|
|---|
| 42 | the rest of the GNU Autotools (such as GNU Autoconf and GNU Automake), you
|
|---|
| 43 | should install the libtool package.
|
|---|
| 44 |
|
|---|
| 45 | The libtool package also includes all files needed to integrate the GNU
|
|---|
| 46 | Portable Library Tool (libtool) and the GNU Libtool Dynamic Module Loader
|
|---|
| 47 | (ltdl) into a package built using the GNU Autotools (including GNU Autoconf
|
|---|
| 48 | and GNU Automake).
|
|---|
| 49 |
|
|---|
| 50 | %package ltdl
|
|---|
| 51 | Summary: Runtime libraries for GNU Libtool Dynamic Module Loader
|
|---|
| 52 | Group: System Environment/Libraries
|
|---|
| 53 | Provides: %{name}-libs = %{version}-%{release}
|
|---|
| 54 | License: LGPLv2+
|
|---|
| 55 |
|
|---|
| 56 | %description ltdl
|
|---|
| 57 | The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a
|
|---|
| 58 | library that provides a consistent, portable interface which simplifies the
|
|---|
| 59 | process of using dynamic modules.
|
|---|
| 60 |
|
|---|
| 61 | These runtime libraries are needed by programs that link directly to the
|
|---|
| 62 | system-installed ltdl libraries; they are not needed by software built using
|
|---|
| 63 | the rest of the GNU Autotools (including GNU Autoconf and GNU Automake).
|
|---|
| 64 |
|
|---|
| 65 | %package ltdl-devel
|
|---|
| 66 | Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader
|
|---|
| 67 | Group: Development/Libraries
|
|---|
| 68 | Requires: %{name}-ltdl = %{version}-%{release}
|
|---|
| 69 | License: LGPLv2+
|
|---|
| 70 |
|
|---|
| 71 | %description ltdl-devel
|
|---|
| 72 | Static 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
|
|---|
| 81 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 82 | rm -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)
|
|---|
| 88 | export 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)
|
|---|
| 92 | rm -f .version ChangeLog
|
|---|
| 93 | mv .version~ .version
|
|---|
| 94 | mv ChangeLog~ ChangeLog
|
|---|
| 95 |
|
|---|
| 96 | %build
|
|---|
| 97 |
|
|---|
| 98 | # These are for LTDL DLL
|
|---|
| 99 | export 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:
|
|---|
| 115 | make 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
|
|---|
| 127 | rm -rf ${buildroot}
|
|---|
| 128 | make install DESTDIR=%{buildroot}
|
|---|
| 129 |
|
|---|
| 130 | # info's TOP dir (by default owned by info)
|
|---|
| 131 | rm -f %{buildroot}%{_infodir}/dir
|
|---|
| 132 | # *.la *.a files generated by libtool shouldn't be distributed (and the
|
|---|
| 133 | # `./configure --disable-static' breaks testsuite)
|
|---|
| 134 | rm -f %{buildroot}%{_libdir}/libltdl.la
|
|---|
| 135 | rm -f %{buildroot}%{_libdir}/ltdl.a
|
|---|
| 136 |
|
|---|
| 137 | %clean
|
|---|
| 138 | rm -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.
|
|---|