SPECS: glm.spec - pl, some cleanups, separated -devel/-static

qboosh qboosh at pld-linux.org
Wed May 10 22:34:56 CEST 2006


Author: qboosh                       Date: Wed May 10 20:34:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, some cleanups, separated -devel/-static

---- Files affected:
SPECS:
   glm.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/glm.spec
diff -u SPECS/glm.spec:1.1 SPECS/glm.spec:1.2
--- SPECS/glm.spec:1.1	Mon May  1 13:44:45 2006
+++ SPECS/glm.spec	Wed May 10 22:34:51 2006
@@ -1,10 +1,6 @@
 # $Revision$, $Date$
-#
-# Conditional build:
-%bcond_with	tests		# build with tests
-%bcond_without	tests		# build without tests
-#
-Summary:	glm Alias Wavefront OBJ File Reader/Viewer Library
+Summary:	glm - Alias Wavefront OBJ File Reader/Viewer Library
+Summary(pl):	glm - biblioteka do odczytu i przeglądania plików OBJ Alias Wavefront
 Name:		glm
 Version:	0.3
 Release:	0.1
@@ -14,68 +10,62 @@
 # Source0-md5:	f154f0d6c3316b31ad8e8b5ced7dd5c9
 #Patch0: %{name}-DESTDIR.patch
 URL:		http://devernay.free.fr/hacks/glm/
-#BuildRequires:	-
-#BuildRequires:	autoconf
-#BuildRequires:	automake
-#BuildRequires:	intltool
-#BuildRequires:	libtool
-#Requires(postun):	-
-#Requires(pre,post):	-
-#Requires(preun):	-
-#Requires:	-
-#Provides:	-
-#Provides:	group(foo)
-#Provides:	user(foo)
-#Obsoletes:	-
-#Conflicts:	-
-#BuildArch:	noarch
-#ExclusiveArch:	%{ix86}
+BuildRequires:	automake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 glm is an Alias Wavefront OBJ File Reader/Viewer Library.
 
+%description -l pl
+glm to biblioteka do odczytu i przeglądania plików OBJ Alias
+Wavefront.
+
+%package devel
+Summary:	Header file for glm library
+Summary(pl):	Plik nagłówkowy biblioteki glm
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header file for glm library.
+
+%description devel -l pl
+Plik nagłówkowy biblioteki glm.
+
+%package static
+Summary:	Static glm library
+Summary(pl):	Statyczna biblioteka glm
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static glm library.
+
+%description static -l pl
+Statyczna biblioteka glm.
+
 %package examples
-Summary:	examples
+Summary:	glm examples
+Summary(pl):	Przykłady do glm
 Group:		Development/Libraries
 #Requires:	%{name} = %{version}-%{release}
 
 %description examples
 This is the package containing the examples, both binary and source.
 
+%description examples -l pl
+Ten pakiet zawiera przykłady w postaci źródeł i binariów.
+
 %prep
 %setup -q
-#%setup -q -c -T
-#%setup -q -n %{name}
-#%%setup -q -n %{name}-%{version}.orig -a 1
-#%patch0 -p1
-
-# undos the source
-#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
-
-# remove CVS control files
-#find -name CVS -print0 | xargs -0 rm -rf
 
 %build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%%{__intltoolize}
-#%%{__gettextize}
-#%%{__libtoolize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
 cp -f /usr/share/automake/config.sub .
 %configure \
 	--enable-shared \
 	--enable-static
 %{__make}
 
-#%{__make} \
-#	CFLAGS="%{rpmcflags}" \
-#	LDFLAGS="%{rpmldflags}"
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -83,31 +73,35 @@
 	DESTDIR=$RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 install -d $RPM_BUILD_ROOT%{_bindir}
-# gluiobj dont work
-install examples/glutobj $RPM_BUILD_ROOT%{_bindir}/
-install examples/smooth  $RPM_BUILD_ROOT%{_bindir}/
-# game_glutobj seems same as glutobj
-install examples/*.c examples/*.cpp examples/*.h examples/Makefile* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
 
+# gluiobj don't work
+install examples/glutobj $RPM_BUILD_ROOT%{_bindir}
+install examples/smooth  $RPM_BUILD_ROOT%{_bindir}
+# game_glutobj seems same as glutobj
+install examples/*.c examples/*.cpp examples/*.h examples/Makefile* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post	-p /sbin/ldconfig
-
 %postun	-p /sbin/ldconfig
 
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog INSTALL NEWS README TODO
 %attr(755,root,root) %{_libdir}/libglm.so.*
-%{_libdir}/libglm.a
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libglm.so
 %{_includedir}/glm.h
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libglm.a
+
 %files examples
 %defattr(644,root,root,755)
-#%%doc
 %{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -116,7 +110,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/05/10 20:34:51  qboosh
+- pl, some cleanups, separated -devel/-static
+
 Revision 1.1  2006/05/01 11:44:45  agaran
 - not finished, lacks data subpackage, not fixed pathes, nor other thing,
   NFY, initial
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/glm.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list