Browse Source

Installation and description improvements.

Michael Schloh von Bennewitz 22 years ago
parent
commit
93c5ba7246
1 changed files with 21 additions and 10 deletions
  1. 21 10
      xine-lib/xine-lib.spec

+ 21 - 10
xine-lib/xine-lib.spec

@@ -25,7 +25,7 @@
 
 #   package information
 Name:         xine-lib
-Summary:      Video Player Library
+Summary:      Media Player Library
 URL:          http://www.xinehq.de/
 Vendor:       Guenter Bartsch et al.
 Packager:     The OpenPKG Project
@@ -42,16 +42,17 @@ Source0:      http://download.sourceforge.net/xine/xine-lib-%{version}-beta10.ta
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20030103, X11, libiconv, sdl, vorbis-libs
-PreReq:       OpenPKG, openpkg >= 20030103, X11
+PreReq:       OpenPKG, openpkg >= 20030103, X11, libiconv, sdl, vorbis-libs
 AutoReq:      no
 AutoReqProv:  no
 
 %description
-    xine is a free multimedia player. It plays back CDs, DVDs, and
-    VCDs. It also decodes multimedia files like AVI, MOV, WMV, and MP3
-    from local disk drives, and displays multimedia streamed over the
-    Internet. It interprets many of the most common multimedia formats
-    available and some of the most uncommon formats, too.
+    This is the xine library, implementing a multimedia engine. It
+    plays back CDs, DVDs, and VCDs. It also decodes multimedia files
+    like AVI, MOV, WMV, and MP3 from local disk drives, and displays
+    multimedia streamed over the Internet. It interprets many of the
+    most common multimedia formats available and some of the most
+    uncommon formats, too.
 
 %prep
     %setup -q -n xine-lib-1-beta10
@@ -73,14 +74,24 @@ AutoReqProv:  no
         --with-sdl-prefix=%{l_prefix} \
         --with-ogg-prefix=%{l_prefix} \
         --with-vorbis-prefix=%{l_prefix}
-
     %{l_make} %{l_mflags -O}
 
 %install
     rm -rf $RPM_BUILD_ROOT
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/include/xine \
+        $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig \
+        $RPM_BUILD_ROOT%{l_prefix}/lib/xine/plugins/1.0.0 \
+        $RPM_BUILD_ROOT%{l_prefix}/share/xine/libxine1/fonts \
+        $RPM_BUILD_ROOT%{l_prefix}/man/man1
     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
-    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
-    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+    rm -rf \
+        $RPM_BUILD_ROOT%{l_prefix}/share/aclocal \
+        $RPM_BUILD_ROOT%{l_prefix}/share/doc \
+        $RPM_BUILD_ROOT%{l_prefix}/share/locale
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+        %{l_files_std} \
+        '%not %dir %{l_prefix}/lib/pkgconfig'
 
 %files -f files