Author: shadzik                      Date: Sat Apr  7 01:03:38 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add gtk subpackage and all taht belongs to it (Source1, bcond etc.)

---- Files affected:
SPECS:
   recordmydesktop.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/recordmydesktop.spec
diff -u SPECS/recordmydesktop.spec:1.9 SPECS/recordmydesktop.spec:1.10
--- SPECS/recordmydesktop.spec:1.9      Sun Apr  1 23:25:18 2007
+++ SPECS/recordmydesktop.spec  Sat Apr  7 03:03:32 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build
+%bcond_without gtk     # don't build gtk frontend
+
 Summary:       Desktop session recorder
 Summary(pl.UTF-8):     Rejestrator pulpitu
 Name:          recordmydesktop
@@ -8,6 +12,8 @@
 Group:         X11/Applications
 Source0:       
http://dl.sourceforge.net/recordmydesktop/%{name}-%{version}.tar.gz
 # Source0-md5: 56163494390dd208213c1563043eb3ee
+Source1:       
http://dl.sourceforge.net/recordmydesktop/gtk-%{name}-%{version}.tar.gz
+# Source1-md5: 5d160b4a907848c77f5649e04886547f
 URL:           http://recordmydesktop.sourceforge.net/
 BuildRequires: alsa-lib-devel
 BuildRequires: autoconf
@@ -15,6 +21,10 @@
 BuildRequires: libogg-devel
 BuildRequires: libtheora-devel
 BuildRequires: libvorbis-devel
+%if %{with gtk}
+BuildRequires: python-devel
+BuildRequires: python-pygtk-devel
+%endif
 BuildRequires: xorg-lib-libICE-devel
 BuildRequires: xorg-lib-libSM-devel
 BuildRequires: xorg-lib-libXdamage-devel
@@ -34,8 +44,20 @@
 używając tylko otwartych formatów takich jak Theora do zapisu obrazu i
 Vorbis do zapisu dźwięku, wykorzystując kontener Ogg.
 
+%package gtk
+Summary:       GTK frontend for recordmydesktop
+Summary(pl.UTF-8):     Frontend do recordmydesktop napisany w GTK
+Group:         X11/Applications
+Requires:      %{name} = %{version}
+
+%description gtk
+GTK frontend for recordmydesktop.
+
+%description gtk -l pl.UTF-8
+Frontend do recordmydesktop napisany w GTK.
+
 %prep
-%setup -q
+%setup -q -a 1
 
 %build
 %{__aclocal}
@@ -44,27 +66,50 @@
 %configure
 %{__make}
 
+%if %{with gtk}
+cd gtk-%{name}-%{version}
+%configure
+%{__make}
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with gtk}
+%{__make} -C gtk-%{name}-%{version} install \
+       DESTDIR=$RPM_BUILD_ROOT
+%find_lang %{name}-gtk --all-name
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/%{name}
 %{_mandir}/man1/recordmydesktop.1*
 
+%if %{with gtk}
+%files -f %{name}-gtk.lang gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gtk-recordMyDesktop
+%{_desktopdir}/gtk-recordmydesktop.desktop
+%{_pixmapsdir}/gtk-recordmydesktop.png
+%endif
+
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2007/04/07 01:03:32  shadzik
+- add gtk subpackage and all taht belongs to it (Source1, bcond etc.)
+
 Revision 1.9  2007/04/01 21:25:18  rotom
 - up to 0.3.4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/recordmydesktop.spec?r1=1.9&r2=1.10&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to