Author: qboosh                       Date: Sat Feb 19 22:57:13 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- build shared lib, fixed files ("not DOS" made duplicates!)
- allow stripping
- BR+R libstdc++-devel

---- Files affected:
SPECS:
   ftgl.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/ftgl.spec
diff -u SPECS/ftgl.spec:1.11 SPECS/ftgl.spec:1.12
--- SPECS/ftgl.spec:1.11        Sat Feb 19 21:59:15 2005
+++ SPECS/ftgl.spec     Sat Feb 19 23:57:06 2005
@@ -8,18 +8,17 @@
 License:       LGPL
 Group:         X11/Libraries
 # original URL (dead ATM): http://opengl.geek.nz/ftgl/%{name}-%{version}.tar.gz
-Source0:       
ftp://ftp.pl.debian.org/pub/debian/pool/main/f/%{name}/%{name}_%{version}.orig.tar.gz
+Source0:       
ftp://ftp.pl.debian.org/pub/debian/pool/main/f/ftgl/%{name}_%{version}.orig.tar.gz
 # Source0-md5: 3eabec9ad37371c4d139408c7ffd2429
 Patch0:                %{name}-Makefiles.patch
 URL:           http://homepages.paradise.net.nz/henryj/code/#FTGL
 BuildRequires: OpenGL-devel
 BuildRequires: automake
 BuildRequires: doxygen
-BuildRequires: freetype-devel
+BuildRequires: freetype-devel >= 2.0.9
+BuildRequires: libstdc++-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                no_install_post_strip   1
-
 %description
 FTGL is a free, open source library to enable developers to use
 arbitrary fonts in their OpenGL (http://www.opengl.org/) applications.
@@ -45,8 +44,10 @@
 Summary:       OpenGL frontend to freetype2 - development files
 Summary(pl):   Nakładka OpenGL na freetype2 - pliki dla programistów
 Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 Requires:      OpenGL-devel
-Requires:      freetype-devel
+Requires:      freetype-devel >= 2.0.9
+Requires:      libstdc++-devel
 
 %description devel
 OpenGL frontend to freetype2 - development files.
@@ -54,6 +55,18 @@
 %description devel -l pl
 Nakładka OpenGL na freetype2 - pliki dla programistów.
 
+%package static
+Summary:       Static FTGL library
+Summary(pl):   Statyczna biblioteka FTGL
+Group:         X11/Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static FTGL library.
+
+%description static -l pl
+Statyczna biblioteka FTGL.
+
 %prep
 %setup -q -n FTGL
 %patch0 -p1
@@ -61,31 +74,51 @@
 %build
 cd unix
 install /usr/share/automake/config.* .
-%configure
+%configure \
+       --enable-shared
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
 
 %{makeinstall} -C unix
 
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY.txt README.txt license.txt
+%attr(755,root,root) %{_libdir}/libftgl.so.*.*.*
+
 %files devel
 %defattr(644,root,root,755)
-%doc COPYING.txt HISTORY.txt README.txt $RPM_BUILD_ROOT%{_datadir}/doc/ftgl/*
+%doc unix/docs/html
+%attr(755,root,root) %{_libdir}/libftgl.so
+%{_libdir}/libftgl.la
 %{_includedir}/FTGL
-%{_libdir}/*
 %{_pkgconfigdir}/*.pc
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libftgl.a
+
 %define        date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2005/02/19 22:57:06  qboosh
+- build shared lib, fixed files ("not DOS" made duplicates!)
+- allow stripping
+- BR+R libstdc++-devel
+
 Revision 1.11  2005/02/19 20:59:15  gj
 - it's not the DOS ;)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ftgl.spec?r1=1.11&r2=1.12&f=u


_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to