SPECS: crossmingw32-freetype.spec - fix shared library creation
wolf
wolf at pld-linux.org
Sun Oct 21 00:12:39 CEST 2007
Author: wolf Date: Sat Oct 20 22:12:39 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fix shared library creation
---- Files affected:
SPECS:
crossmingw32-freetype.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/crossmingw32-freetype.spec
diff -u SPECS/crossmingw32-freetype.spec:1.8 SPECS/crossmingw32-freetype.spec:1.9
--- SPECS/crossmingw32-freetype.spec:1.8 Fri Jul 6 21:41:39 2007
+++ SPECS/crossmingw32-freetype.spec Sun Oct 21 00:12:34 2007
@@ -111,14 +111,59 @@
%{__make}
+# link shared library
+cd objs/.libs
+%{__cc} \
+ --shared *.o -llualib50 -llua50 -lm -o libfreetype.dll \
+ -Wl,--enable-auto-image-base -Wl,--out-implib,libfreetype.dll.a -lz
+cd ../..
+
+cat << "EOF" >> libfreetype.la
+# libfreetype.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
+
+# The name that we can dlopen(3).
+dlname=''
+
+# Names of this library.
+library_names='libfreetype.dll.a'
+
+# The name of the static archive.
+old_library='libfreetype.a'
+
+# Libraries that this one depends upon.
+dependency_libs=' -lz'
+
+# Version information for libfreetype.
+current=9
+age=3
+revision=16
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='%{_libdir}'
+EOF
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install libfreetype.la $RPM_BUILD_ROOT%{_libdir}
+
install -d $RPM_BUILD_ROOT%{_dlldir}
-mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+install objs/.libs/libfreetype.dll $RPM_BUILD_ROOT%{_dlldir}
+install objs/.libs/libfreetype.dll.a $RPM_BUILD_ROOT%{_libdir}
%if 0%{!?debug:1}
%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
@@ -133,6 +178,7 @@
%files
%defattr(644,root,root,755)
%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt}
+%{_bindir}/freetype-config
%{_libdir}/libfreetype.dll.a
%{_libdir}/libfreetype.la
%{_includedir}/freetype2
@@ -145,7 +191,7 @@
%files dll
%defattr(644,root,root,755)
-%{_dlldir}/libfreetype-*.dll
+%{_dlldir}/libfreetype.dll
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -153,6 +199,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2007/10/20 22:12:34 wolf
+- fix shared library creation
+
Revision 1.8 2007/07/06 19:41:39 qboosh
- updated to 2.3.5 (fixes CVE-2007-2754)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/crossmingw32-freetype.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list