Browse Source

update: cdrdao

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3476 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 13 years ago
parent
commit
343d57c10a
1 changed files with 52 additions and 16 deletions
  1. 52 16
      c/cdrdao/cdrdao-vl.spec

+ 52 - 16
c/cdrdao/cdrdao-vl.spec

@@ -1,18 +1,24 @@
 Name: cdrdao
-Version: 1.2.2
-Release: 4%{?_dist_release}
 Summary: Writes audio CD-Rs in disk-at-once (DAO) mode.
-Summary(ja): ディスクアットワンス(DAO)モードで、audioをCD-Rへ書き込む事が出来ます。
-Source: %{name}-%{version}.tar.bz2
-Patch0: cdrdao-1.2.2-sigc.patch
-License: GPL
+Summary(ja): ディスクアットワンス(DAO)モードでオーディオデータを CD-R へ書き込むツール
+Version: 1.2.3
+Release: 1%{?_dist_release}
+
 Group: Applications/Multimedia
+License: GPLv2+
 URL: http://cdrdao.sourceforge.net/
 
+Source0:   http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Missing includes causes failure build
+Patch1: cdrdao-1.2.3-stat.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: gtkmm2-devel
 BuildRequires: libgnomeuimm-devel
+BuildRequires: libsigc++-devel
 BuildRequires: libao-devel
-BuildRequires: pccts >= 1.33mr33
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: libvorbis-devel >= 1.0
+#BuildRequires: pccts >= 1.33mr33
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -45,24 +51,53 @@ the audio data.
 
 %prep
 %setup -q
-%patch0 -p0 -b .sigc
+%patch1 -p1 -b .stat
 
 %build
-%configure --with-pcctsinc=%{_includedir}/pccts \
-           --without-lame \
-           --without-mp3-support
-%__make
+%configure \
+        --with-xdao \
+        --without-scglib \
+        --without-mp3-support \
+        --without-lame
+# --with-pcctsinc=%{_includedir}/pccts \
+#           --without-lame \
+#           --without-mp3-support
+
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%makeinstall
+make install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+
+
+%pre -n gcdmaster
+if [ $1 -gt 1 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    gconftool-2 --makefile-uninstall-rule \
+        %{_sysconfdir}/gconf/schemas/gcdmaster.schemas >& /dev/null ||:
+fi
 
 %post -n gcdmaster
-%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gcdmaster.schemas >& /dev/null ||:
+
+%posttrans -n gcdmaster
+update-mime-database %{_datadir}/mime >& /dev/null ||:
+
+%preun -n gcdmaster
+if [ $1 -eq 0 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    gconftool-2 --makefile-uninstall-rule \
+        %{_sysconfdir}/gconf/schemas/gcdmaster.schemas >& /dev/null ||:
+fi
 
 %postun -n gcdmaster
-%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null
+if [ $1 -eq 0 ] ; then
+    update-mime-database %{_datadir}/mime >& /dev/null ||:
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -79,6 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -n gcdmaster
 %defattr(-,root,root)
 %doc AUTHORS COPYING README 
+%{_sysconfdir}/gconf/schemas/gcdmaster.schemas
 %{_bindir}/gcdmaster
 %{_datadir}/application-registry/*
 %{_datadir}/applications/*