]> git.pld-linux.org Git - packages/arts.git/blobdiff - arts.spec
- może wrescie ktoś wykasuje to konto ?
[packages/arts.git] / arts.spec
index 9c504913a62b1d70c1dab410ed57e60c68a15604..b631a70f4e9dde312ccc44ff761b37aa059b0539 100644 (file)
--- a/arts.spec
+++ b/arts.spec
@@ -2,43 +2,38 @@
 # _with_nas            - enable NAS audio support
 # _without_alsa                - disable ALSA support
 #
-
-%define                _state          snapshots
-%define                _ver            030317
-
+%ifarch sparc sparcv9 sparc64
+%define                _without_alsa   1
+%endif
 Summary:       aRts sound server
 Summary(pl):   Serwer d¼wiêku
 Summary(pt_BR):        Servidor de sons usado pelo KDE
 Name:          arts
-Version:       1.2
-Release:       0.%{_ver}.1
+Version:       1.1.3
+Release:       1
 Epoch:         12
 License:       LGPL
 Vendor:                The KDE Team
 Group:         Libraries
-Source0:       ftp://ftp.kde.org/pub/kde/%{_state}/%{name}-%{_ver}.tar.bz2
-Patch0:                http://rambo.its.tudelft.nl/~ewald/xine/arts-1.1.1-video-20030314.patch
-%ifnarch sparc sparcv9 sparc64
+Source0:       ftp://ftp.kde.org/pub/kde/stable/3.1.3/src/%{name}-%{version}.tar.bz2
+# Source0-md5: f04eb6ef387d63741561ab6623696322
+URL:           http://www.kde.org/
 %{!?_without_alsa:BuildRequires:       alsa-lib-devel}
-%endif
 BuildRequires: audiofile-devel
 BuildRequires: glib2-devel >= 2.0.0
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
 # not needed, only ./configure check for this
 #BuildRequires:        libvorbis-devel
 #BuildRequires:        mad-devel
 %{?_with_nas:BuildRequires:    nas-devel}
-%{!?_with_nas:BuildConflicts:  nas-devel}
 BuildRequires: pkgconfig
 BuildRequires: qt-devel >= 3.1
-URL:           http://www.kde.org/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _htmldir        /usr/share/doc/kde/HTML
 
-%define                no_install_post_chrpath         1
-
 %description
 aRts sound server.
 
@@ -70,7 +65,7 @@ Cz
 Summary:       QT dependend part of aRts
 Summary(pl):   Czê¶æ aRts wymagaj±ca QT
 Group:         X11/Libraries
-Requires:      %{name} >= %{version}
+Requires:      %{name} >= %{epoch}:%{version}
 Requires:      qt >= 3.1
 
 %description qt
@@ -85,7 +80,8 @@ Summary(pl):  Serwer d
 Summary(pt_BR):        Arquivos para desenvolvimento com o o aRts
 Group:         Development/Libraries
 Requires:      qt-devel >= 3.1
-Requires:      %{name} >= %{version}
+Requires:      %{name} >= %{epoch}:%{version}
+%{?_with_nas:Requires: nas-devel}
 
 %description devel
 Header files required to compile programs using arts.
@@ -110,36 +106,45 @@ GLib dependend part of aRts.
 Czê¶æ aRts wymagaj±ca GLib.
 
 %prep
-%setup -q -n %{name}-%{_ver}
-%patch0 -p1
+%setup -q
+
 %build
 kde_htmldir="%{_htmldir}"; export kde_htmldir
 kde_icondir="%{_pixmapsdir}"; export kde_icondir
 
 %configure \
        --%{?debug:en}%{!?debug:dis}able-debug \
+       --disable-rpath \
        --enable-final \
        --with-xinerama \
        --with%{?_without_alsa:out}-alsa
 
+%if %{!?_with_nas:1}0
+# Cannot patch configure.in because it does not rebuild correctly on ac25
+sed -e 's@#define HAVE_LIBAUDIONAS 1@/* #undef HAVE_LIBAUDIONAS */@' \
+       < config.h \
+       > config.h.tmp
+mv -f config.h{.tmp,}
+%endif
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
-%post X11   -p /sbin/ldconfig
-%postun X11 -p /sbin/ldconfig
+%post  X11 -p /sbin/ldconfig
+%postun        X11 -p /sbin/ldconfig
 
-%post qt   -p /sbin/ldconfig
-%postun qt -p /sbin/ldconfig
+%post  qt -p /sbin/ldconfig
+%postun        qt -p /sbin/ldconfig
 
-%post glib   -p /sbin/ldconfig
-%postun glib -p /sbin/ldconfig
+%post  glib -p /sbin/ldconfig
+%postun        glib -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -153,9 +158,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/artsrec
 %attr(755,root,root) %{_bindir}/artsshell
 %attr(755,root,root) %{_bindir}/artswrapper
-##%attr(755,root,root) %{_bindir}/testdhandle
+%attr(755,root,root) %{_bindir}/testdhandle
+%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*.*.*
 %{_libdir}/lib[!gqx]*.la
-%attr(755,root,root) %{_libdir}/lib[!gqx]*.so.*
 %{_libdir}/mcop
 
 %files devel
@@ -168,15 +173,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files X11
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
 %{_libdir}/libx11globalcomm.la
-%attr(755,root,root) %{_libdir}/libx11globalcomm.so.*
 
 %files glib
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
 %{_libdir}/libgmcop.la
-%attr(755,root,root) %{_libdir}/libgmcop.so.*
 
 %files qt
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
 %{_libdir}/libqtmcop.la
-%attr(755,root,root) %{_libdir}/libqtmcop.so.*
This page took 0.136766 seconds and 4 git commands to generate.