Author: glen Date: Sun Mar 18 00:10:31 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - build libs using libtool
---- Files affected: SPECS: mythes.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: SPECS/mythes.spec diff -u SPECS/mythes.spec:1.2 SPECS/mythes.spec:1.3 --- SPECS/mythes.spec:1.2 Sun Mar 18 00:56:13 2007 +++ SPECS/mythes.spec Sun Mar 18 01:10:25 2007 @@ -1,16 +1,15 @@ # $Revision$, $Date$ -# TODO -# - shared lib Summary: MyThes thesaurus Name: mythes Version: 1.0 -Release: 0.1 +Release: 1 License: BSD Group: Libraries Source0: http://lingucomponent.openoffice.org/MyThes-1.zip # Source0-md5: 79e24a2e9a44d5d370d6685ff233064c Patch0: %{name}-optflags.patch URL: http://lingucomponent.openoffice.org/thesaurus.html +BuildRequires: libtool BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -42,9 +41,11 @@ %patch0 -p1 %build -%{__make} \ - CXX="%{__cxx}" \ - OPTFLAGS="%{rpmcflags}" +libtool --tag=CXX --mode=compile %{__cxx} mythes.cxx -c -o mythes.lo +libtool --tag=CXX --mode=link %{__cxx} mythes.lo -rpath %{_libdir} -o libmythes.la + +libtool --tag=CXX --mode=compile %{__cxx} example.cxx -c -o example.lo +libtool --tag=CXX --mode=link %{__cxx} libmythes.la example.lo -o example %check ./example th_en_US_new.idx th_en_US_new.dat checkme.lst @@ -53,18 +54,24 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}} install mythes.hxx $RPM_BUILD_ROOT%{_includedir} -install libmythes.a $RPM_BUILD_ROOT%{_libdir} +libtool --mode=install install libmythes.la $RPM_BUILD_ROOT%{_libdir} %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) %doc README data_layout.txt +%attr(755,root,root) %{_libdir}/libmythes.so.*.*.* %files devel %defattr(644,root,root,755) %{_includedir}/mythes.hxx +%{_libdir}/libmythes.la +%{_libdir}/libmythes.so %files static %defattr(644,root,root,755) @@ -76,6 +83,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2007/03/18 00:10:25 glen +- build libs using libtool + Revision 1.2 2007/03/17 23:56:13 glen - created -devel, -static ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/mythes.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
