]> git.pld-linux.org Git - packages/glm.git/commitdiff
- pl, some cleanups, separated -devel/-static
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 10 May 2006 20:34:51 +0000 (20:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    glm.spec -> 1.2

glm.spec

index 432a9668a1a7ab18034be25aacafb4c10d0f9cdf..740aedc397160f49baf64d49def74ec7b4c901eb 100644 (file)
--- a/glm.spec
+++ b/glm.spec
@@ -1,9 +1,5 @@
-#
-# 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
@@ -13,68 +9,62 @@ Source0:     http://devernay.free.fr/hacks/glm/%{name}-%{version}.tar.gz
 # 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
 
@@ -82,29 +72,33 @@ rm -rf $RPM_BUILD_ROOT
        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}
This page took 0.136363 seconds and 5 git commands to generate.