]> git.pld-linux.org Git - packages/arts.git/blobdiff - arts.spec
- Autoupgraded to 1.2.1-1.
[packages/arts.git] / arts.spec
index ce7da230072917fe1c3efd47ffe80efa9057c006..50e26174dbf303f19ec51f01500895e890a722e8 100644 (file)
--- a/arts.spec
+++ b/arts.spec
@@ -1,31 +1,49 @@
-%define                _sub_ver        rc3
+#
+# Conditional build:
+%bcond_without alsa    # disable ALSA support
+%bcond_with    nas     # enable NAS support
+#
+
+%define                _state          stable
+%define                _ver            1.2.1
+#%%define              _snap           040110
+
+%define                _kdever         3.2.1
+
 Summary:       aRts sound server
-Summary(es):   Sound server used by KDE
 Summary(pl):   Serwer d¼wiêku
 Summary(pt_BR):        Servidor de sons usado pelo KDE
-Name:          kdelibs
-Version:       3.0
-Release:       0.%{_sub_ver}.2
-Epoch:         6
+Name:          arts
+Version:       %{_ver}
+Release:       1
+Epoch:         13
 License:       LGPL
-Vendor:                The KDE Team
 Group:         Libraries
-%{!?_sub_ver:  %define _ftpdir stable}
-%{?_sub_ver:   %define _ftpdir unstable/kde-%{version}%{_sub_ver}}
-Source0:       ftp://ftp.kde.org/pub/kde/%{_ftpdir}/src/%{name}-%{version}%{_sub_ver}.tar.bz2
-Requires:      qt >= 3.0.2-0.20020222.5
+Source0:       http://download.kde.org/%{_state}/%{_kdever}/src/%{name}-%{_ver}.tar.bz2
+# Source0-md5: 84877632917893438c629803e7b004f3
+# http://download.kde.org/stable/3.2.1/src/arts-1.2.1.tar.bz2
+#Source0:      http://ep09.pld-linux.org/~djurban/kde/%{name}-%{version}.tar.bz2
 URL:           http://www.kde.org/
+%{?with_alsa:BuildRequires:    alsa-lib-devel}
+BuildRequires: audiofile-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: docbook-dtd41-sgml
+BuildRequires: docbook-utils >= 0.6.13-3
+BuildRequires: esound-devel
+BuildRequires: glib2-devel >= 2.0.0
+BuildRequires: libmad-devel
+BuildRequires: libtool >= 2:1.5-2
+BuildRequires: libvorbis-devel
+%{?with_nas:BuildRequires:     nas-devel}
+BuildRequires: pkgconfig
+BuildRequires: qt-devel >= 6:3.2.1-4
+Obsoletes:     arts-glib
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _htmldir        /usr/share/doc/kde/HTML
-
 %description
 aRts sound server.
 
-%description -l es
-Sound server and analog analyzer/synthetizer used by KDE.
-
 %description -l pl
 Serwer d¼wiêku aRts.
 
@@ -39,127 +57,137 @@ design foi escolhido para permitir que outras aplica
 como um sintetizador (ou fornecedor de filtros). Usado pelo KDE, entre
 outros.
 
+%package devel
+Summary:       Sound server - header files
+Summary(pl):   Serwer d¼wiêku - pliki nag³ówkowe
+Summary(pt_BR):        Arquivos para desenvolvimento com o o aRts
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+# not necessary for all libs (e.g. mcop), but propagated by artsflow
+%{?with_alsa:Requires: alsa-lib-devel}
+Requires:      audiofile-devel
+Requires:      esound-devel
+Requires:      glib2-devel >= 2.0.0
+Requires:      libmad-devel
+Requires:      libvorbis-devel
+%{?with_nas:Requires:  nas-devel}
+
+%description devel
+Header files required to compile programs using arts.
+
+%description devel -l pl
+Pliki nag³ówkowe niezbêdne do budowania aplikacji korzystaj±cych z
+arts.
+
+%description devel -l pt_BR
+Arquivos para desenvolvimento com o o aRts.
+
+# separate from arts-devel because they are mostly independent and have very
+# different deps
+# there is no artsc base - it would be small and would require arts - so there
+# is no reason to separate
+%package -n artsc-devel
+Summary:       Development files for artsc libraries
+Summary(pl):   Pliki programistyczne bibliotek artsc
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      glib2-devel >= 2.0.0
+Conflicts:     arts-devel < 12:1.2.0.031126-2
+
+%description -n artsc-devel
+Development files for artsc libraries (C interface to aRts sound
+system).
+
+%description -n artsc-devel -l pl
+Pliki programistyczne bibliotek artsc (interfejsu w C do systemu
+d¼wiêku aRts).
+
 %package X11
 Summary:       X11 dependent part of aRts
 Summary(pl):   Czê¶æ aRts wymagaj±ca X11
 Group:         X11/Libraries
-Group(de):     X11/Libraries
-Group(es):     X11/Bibliotecas
-Group(fr):     X11/Librairies
-Group(pl):     X11/Biblioteki
-Group(pt_BR):  X11/Bibliotecas
-Group(ru):     X11/âÉÂÌÉÏÔÅËÉ
-Group(uk):     X11/â¦Â̦ÏÔÅËÉ
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description X11
-X11 dependent part of aRts.
+X11 dependent part of aRts (x11globalcomm module).
 
 %description X11 -l pl
-Czê¶æ aRts wymagaj±ca X11.
+Czê¶æ aRts wymagaj±ca X11 (modu³ x11globalcomm).
 
-%package -n qt
+%package qt
 Summary:       QT dependend part of aRts
 Summary(pl):   Czê¶æ aRts wymagaj±ca QT
 Group:         X11/Libraries
-Group(de):     X11/Libraries
-Group(es):     X11/Bibliotecas
-Group(fr):     X11/Librairies
-Group(pl):     X11/Biblioteki
-Group(pt_BR):  X11/Bibliotecas
-Group(ru):     X11/âÉÂÌÉÏÔÅËÉ
-Group(uk):     X11/â¦Â̦ÏÔÅËÉ
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      qt >= 6:3.2.1-4
 
 %description qt
-QT dependend part of aRts.
+QT dependend part of aRts (qtmcop library).
 
 %description qt -l pl
-Czê¶æ aRts wymagaj±ca QT.
+Czê¶æ aRts wymagaj±ca QT (biblioteka qtmcop).
 
-%package -n devel
-Summary:       Sound server - header files
-Summary(es):   Header files for compiling aRtsd applications
-Summary(pl):   Serwer d¼wiêku - pliki nag³ówkowe
-Summary(pt_BR):        Arquivos para desenvolvimento com o o aRts
-Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(es):     Desarrollo/Bibliotecas
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Group(pt_BR):  Desenvolvimento/Bibliotecas
-Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+%package qt-devel
+Summary:       Development files for qtmcop library
+Summary(pl):   Pliki programistyczne dla biblioteki qtmcop
+Group:         X11/Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Requires:      %{name}-qt = %{epoch}:%{version}-%{release}
+Requires:      qt-devel >= 6:3.2.1-4
 
-%description devel
-Header files required to compile programs using arts.
+%description qt-devel
+Development files for qtmcop library.
 
-%description devel -l es
-This package includes the header files you will need to compile
-applications for aRtsd.
-
-%description devel -l pl
-Pliki nag³ówkowe niezbêdne do budowania aplikacji korzystaj±cych z
-arts.
-
-%description devel -l pt_BR
-Arquivos para desenvolvimento com o o aRts.
-
-%package message
-Summary:       Program which can be used to display aRts daemon messages
-Summary(pl):   Program do wy¶wietlania komunikatów daemona aRts
-Group:         Development/Tools
-Group(de):     Entwicklung/Werkzeuge
-Group(fr):     Development/Outils
-Group(pl):     Programowanie/Narzêdzia
-
-%description message
-This program can be given as -m option argument to aRts daemon. It
-will be called to display messages generated by daemon.
-
-%description message -l pl
-Ten program mo¿e byæ przekazany daemonowi aRts jako parametr opcji -m.
-Bêdzie on wywo³ywany w celu wy¶wietlenia komunikatów daemona.
+%description qt-devel -l pl
+Pliki programistyczne dla biblioteki qtmcop.
 
 %prep
-%setup -q -n "%{name}-%{version}%{_sub_ver}"
+# qboosh leave it this way, 'cause its easier to change to snap later
+%setup -q -n %{name}-%{version}
 
 %build
-kde_htmldir="%{_htmldir}"; export kde_htmldir
-kde_icondir="%{_pixmapsdir}"; export kde_icondir
+cp /usr/share/automake/config.sub admin
+%{__make} -f admin/Makefile.common cvs
 
-%{__make} -f Makefile.cvs
-
-CFLAGS="%{rpmcflags}"
-CXXFLAGS="%{rpmcflags}"
 %configure \
+       %{!?with_nas:ac_cv_header_audio_audiolib_h=no} \
        --%{?debug:en}%{!?debug:dis}able-debug \
+       --disable-rpath \
        --enable-final \
-       --with-alsa \
-
-## 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,}
+       --with-qt-libraries=%{_libdir} \
+       --with%{!?with_alsa:out}-alsa
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT%{_pixmapsdir}/{hicolor,locolor}/{16x16,22x22,32x32,48x48}/{actions,apps,devices,filesystems,mimetypes}
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip arts/doc/{README,NEWS,TODO}
 
-%find_lang %{name} --with-kde --all-name
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+# Debian manpages
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+cd debian
+for f in man/*.sgml ; do
+       base="$(basename $f .sgml)"
+       upper="$(echo ${base} | tr a-z A-Z)"
+       db2man $f
+       install ${upper}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${base}.1
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f arts.lang
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%post  X11 -p /sbin/ldconfig
+%postun        X11 -p /sbin/ldconfig
+
+%post  qt -p /sbin/ldconfig
+%postun        qt -p /sbin/ldconfig
+
+%files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/artscat
 %attr(755,root,root) %{_bindir}/artsd
@@ -168,34 +196,90 @@ 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) %{_libdir}/lib[am]*.so.*.*
-%attr(755,root,root) %{_libdir}/libs[!h]*.so.*.*
-%attr(755,root,root) %{_libdir}/lib[ams]*.la
-%attr(755,root,root) %{_libdir}/libkmedia*.so.*.*
-%attr(755,root,root) %{_libdir}/libkmedia*.la
+# shared libraries
+%attr(755,root,root) %{_libdir}/libartsc.so.*.*.*
+%attr(755,root,root) %{_libdir}/libartsflow.so.*.*.*
+%attr(755,root,root) %{_libdir}/libartsflow_idl.so.*.*.*
+%attr(755,root,root) %{_libdir}/libgmcop.so.*.*.*
+%attr(755,root,root) %{_libdir}/libkmedia2.so.*.*.*
+%attr(755,root,root) %{_libdir}/libkmedia2_idl.so.*.*.*
+%attr(755,root,root) %{_libdir}/libmcop.so.*.*.*
+%attr(755,root,root) %{_libdir}/libmcop_mt.so.*.*.*
+%attr(755,root,root) %{_libdir}/libsoundserver_idl.so.*.*.*
+# lt_dlopened modules (*.la needed)
+%attr(755,root,root) %{_libdir}/libartscbackend.so.*.*.*
+%{_libdir}/libartscbackend.la
+%attr(755,root,root) %{_libdir}/libartsdsp.so.*.*.*
+%{_libdir}/libartsdsp.la
+%attr(755,root,root) %{_libdir}/libartsdsp_st.so.*.*.*
+%{_libdir}/libartsdsp_st.la
+%attr(755,root,root) %{_libdir}/libartsgslplayobject.so.*.*.*
+%{_libdir}/libartsgslplayobject.la
+%attr(755,root,root) %{_libdir}/libartswavplayobject.so.*.*.*
+%{_libdir}/libartswavplayobject.la
+#
 %{_libdir}/mcop
+%{_mandir}/man1/artscat.1*
+%{_mandir}/man1/artsd.1*
+%{_mandir}/man1/artsdsp.1*
+%{_mandir}/man1/artsplay.1*
+%{_mandir}/man1/artsrec.1*
+%{_mandir}/man1/artsshell.1*
+%{_mandir}/man1/artswrapper.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mcopidl
+%attr(755,root,root) %{_libdir}/libartsflow.so
+%attr(755,root,root) %{_libdir}/libartsflow_idl.so
+%attr(755,root,root) %{_libdir}/libartsgslplayobject.so
+%attr(755,root,root) %{_libdir}/libartswavplayobject.so
+%attr(755,root,root) %{_libdir}/libgmcop.so
+%attr(755,root,root) %{_libdir}/libkmedia2.so
+%attr(755,root,root) %{_libdir}/libkmedia2_idl.so
+%attr(755,root,root) %{_libdir}/libmcop.so
+%attr(755,root,root) %{_libdir}/libmcop_mt.so
+%attr(755,root,root) %{_libdir}/libsoundserver_idl.so
+# it seems to be only (lt_)dlopened, nothing links with it - so not needed
+# %attr(755,root,root) %{_libdir}/libx11globalcomm.so
+# shared libraries
+%{_libdir}/libartsflow.la
+%{_libdir}/libartsflow_idl.la
+%{_libdir}/libgmcop.la
+%{_libdir}/libkmedia2.la
+%{_libdir}/libkmedia2_idl.la
+%{_libdir}/libmcop.la
+%{_libdir}/libmcop_mt.la
+%{_libdir}/libsoundserver_idl.la
+#
+%{_includedir}/arts
+%exclude %{_includedir}/arts/qiomanager.h
+%{_mandir}/man1/mcopidl.1*
+
+%files -n artsc-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/artsc-config
+%attr(755,root,root) %{_libdir}/libartsc.so
+%attr(755,root,root) %{_libdir}/libartscbackend.so
+%attr(755,root,root) %{_libdir}/libartsdsp.so
+%attr(755,root,root) %{_libdir}/libartsdsp_st.so
+%{_libdir}/libartsc.la
+%{_includedir}/artsc
+%{_mandir}/man1/artsc-config.1*
 
 %files X11
 %defattr(644,root,root,755)
+# lt_dlopened module (.la needed)
 %attr(755,root,root) %{_libdir}/libx11globalcomm.so.*.*.*
-%attr(755,root,root) %{_libdir}/libx11globalcomm.la
+%{_libdir}/libx11globalcomm.la
 
 %files qt
 %defattr(644,root,root,755)
+# shared library
 %attr(755,root,root) %{_libdir}/libqtmcop.so.*.*.*
-%attr(755,root,root) %{_libdir}/libqtmcop.la
-
-%files devel
-%defattr(644,root,root,755)
-%doc arts/doc/*.gz
-%attr(755,root,root) %{_bindir}/artsc-config
-%attr(755,root,root) %{_bindir}/mcopidl
-%{_libdir}/lib[mqsx]*.so
-%{_libdir}/libarts[!k]*.so
-%{_libdir}/libkmedia*.so
-%{_includedir}/arts
-%{_includedir}/artsc
 
-%files message
+%files qt-devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/artsmessage
+%attr(755,root,root) %{_libdir}/libqtmcop.so
+%{_libdir}/libqtmcop.la
+%{_includedir}/arts/qiomanager.h
This page took 0.0808 seconds and 4 git commands to generate.