%define ldtp_dir /usr %define _pythondir %{ldtp_dir}/lib/python/site-packages %define _bindir %{ldtp_dir}/bin %define _datadir %{ldtp_dir}/share %define _docdir %{_datadir}/doc %define _localedir %{_datadir}/locale %define distver %(release="`rpm -q --queryformat='%{VERSION}' %{dist}-release 2> /dev/null | tr . : | sed s/://g`" ; if test $? != 0 ; then release="" ; fi ; echo "$release") %define packer %(finger -lp `echo "$USER"` | head -n 1 | cut -d: -f 3) %define ldtp_tarname ldtp %define datestamp 20061211 Summary: Linux Desktop Testing Project Name: ldtp Version: 0.7.0 Release: 1 License: LGPL Vendor: Novell Inc. Group: Desktop URL: http://ldtp.freedesktop.org/ Source0: %{name}.tar.gz Packager: Nagappan BuildRoot: %{_tmppath}/%{ldtp_tarname}-root %description GNU/Linux Desktop Testing Project (GNU/LDTP) is aimed at producing high quality test automation framework and cutting-edge tools that can be used to test GNU/Linux Desktop and improve it. It uses the Accessibility libraries to poke through the applications user interface. The framework also has tools to record test-cases based on user-selection on the application. GNU/LDTP core framework uses Appmap and the recorded test-cases to test an application and gives the status of each test-case as output. As of now, GNU/LDTP can test any GNOME application which are accessibility enabled, Mozilla, Openoffice.org, any Java application (should have a UI based on swing) and KDE 4.0 applications based on QT 4.0 (based on the press releases by KDE). We encourage you to join the project and help us to create robust, reliable and stable test tool/framework for Unix Desktops. %prep echo %_target echo %_target_alias echo %_target_cpu echo %_target_os echo %_target_vendor echo Building %{name}-%{version}-%{release} %setup -q -n %{name} %build CFLAGS="%optflags" CXXFLAGS="%{optflags}" \ ./configure --prefix=%{ldtp_dir}\ --disable-debug # --disable-debug\ # --enable-localization make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_docdir} mkdir -p %{buildroot}%{_localedir} mkdir -p %{buildroot}%{_pythondir} install -m 755 src/ldtp %{buildroot}%{_bindir}/ldtp install -m 755 python/ldtprecord %{buildroot}%{_bindir}/ldtprecord install -m 755 python/ldtprunner %{buildroot}%{_bindir}/ldtprunner install -m 644 python/ldtp.py %{buildroot}%{_pythondir}/ldtp.py install -m 644 python/ldtp.pyc %{buildroot}%{_pythondir}/ldtp.pyc install -m 644 python/ldtputils.py %{buildroot}%{_pythondir}/ldtputils.py install -m 644 python/ldtputils.pyc %{buildroot}%{_pythondir}/ldtputils.pyc install -m 644 python/ldtpcodegen.py %{buildroot}%{_pythondir}/ldtpcodegen.py install -m 644 python/ldtpcodegen.pyc %{buildroot}%{_pythondir}/ldtpcodegen.pyc %pre # add users if any %post # add autorun during boot, if you wish %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT #rm /tmp/%{name}.files %preun # stop ldtp if it is running before the installation/upgradation %postun # start ldtp if it was running before the installation/upgradation %defattr(-,root,root) %files %attr(0644, root, bin) %{_pythondir}/ldtp.py %attr(0644, root, bin) %{_pythondir}/ldtp.pyc %attr(0644, root, bin) %{_pythondir}/ldtp.pyo %attr(0644, root, bin) %{_pythondir}/ldtputils.py %attr(0644, root, bin) %{_pythondir}/ldtputils.pyc %attr(0644, root, bin) %{_pythondir}/ldtputils.pyo %attr(0644, root, bin) %{_pythondir}/ldtpcodegen.py %attr(0644, root, bin) %{_pythondir}/ldtpcodegen.pyc %attr(0644, root, bin) %{_pythondir}/ldtpcodegen.pyo %doc README TODO COPYING ChangeLog %attr(0755, root, bin) %{_bindir}/ldtp %attr(0755, root, bin) %{_bindir}/ldtprecord %attr(0755, root, bin) %{_bindir}/ldtprunner %changelog * Mon Dec 11 2006 Sandeep - Initial LDTP rpm