Blame SPECS/bltk.spec

983249
Name:		bltk
983249
Version:	1.1.0
cd5fcb
Release:	10%{?dist}
983249
Summary:	The BLTK measures notebook battery life under any workload
983249
983249
Group:		Applications/System
983249
License:	BSD
983249
URL:			http://www.lesswatts.org/projects/bltk/
983249
Source0:	http://www.lesswatts.org/patches/bltk/%{name}-%{version}.tar.gz
983249
Source1:	bltk.conf
983249
Source2:  OOCALC_FILE_SAMPLE.ods
983249
Source3:  OODRAW_FILE_SAMPLE.odg
983249
Source4:  OOWRITER_FILE_SAMPLE.odt
983249
983249
Patch1:  bltk-1.0.9-man.patch
983249
Patch3:  bltk-1.0.9-bltk_paths.patch
983249
Patch4:  bltk-1.0.9-opt_developer.patch
983249
Patch5:  bltk-1.1.0-cond_install.patch
983249
Patch6:  bltk-1.0.9-opt_game.patch
983249
Patch7:  bltk-1.0.9-conf.patch
983249
Patch8:  bltk-1.0.9-opt_office.patch
983249
Patch10: bltk-1.0.9-opt_player.patch
983249
Patch11: bltk-1.0.9-home_dir.patch
983249
Patch12: bltk-1.0.9-opt_reader.patch
983249
Patch13: bltk-1.0.9-installed.patch
983249
Patch15: bltk-1.0.9-xse.patch
983249
Patch16: bltk-1.0.9-conf_home.patch
983249
Patch17: bltk-1.1.0-rm_sudo.patch
983249
Patch18: bltk-1.0.9-plot-path.patch
983249
Patch19: bltk-1.0.9-rpm.patch
4fdad4
Patch20: bltk-1.1.0-cflags-override.patch
cd5fcb
Patch21: bltk-1.1.0-fix-tmp-files.patch
983249
983249
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
983249
983249
BuildRequires:	libX11-devel
983249
983249
Requires: udisks2 gnuplot
983249
983249
%description
983249
This tool kit is used to measure battery life and performance under
983249
different workloads on Linux. Test can be used with various workloads to
983249
simulate different types of laptop usage.
983249
The following workloads are currently implemented:
983249
	a) Idle workload - collect statistics only
983249
	b) Developer workload - simulates code development in Linux environment
983249
	c) Reader workload - simulates text reading on laptop
983249
	d) DVD playback workload - simulates laptop entertaining usage
983249
	e) 3d game workload - simulates 3D-gaming on laptop
983249
	f) Office Activity workload - simulates laptop usage for different
983249
		office activities (based on OpenOffice.org office suit)
983249
983249
%prep
983249
%setup -q -n bltk
983249
983249
# %patch0 -p1 -b .all
983249
%patch1 -p1 -b .man
983249
%patch3 -p1 -b .bltk_paths
983249
%patch4 -p1 -b .opt_developer
983249
%patch5 -p1 -b .cond_install
983249
%patch6 -p1 -b .opt_game
983249
%patch7 -p1 -b .conf
983249
%patch8 -p1 -b .opt_office
983249
%patch10 -p1 -b .opt_player
983249
%patch11 -p1 -b .home_dir
983249
%patch12 -p1 -b .opt_reader
983249
%patch13 -p1 -b .installed
983249
%patch15 -p1 -b .xse
983249
%patch16 -p1 -b .conf_home
983249
%patch17 -p1 -b .rm_sudo
983249
%patch18 -p1 -b .plot-path
983249
%patch19 -p1 -b .rpm
4fdad4
%patch20 -p1 -b .cflags-override
cd5fcb
%patch21 -p1 -b .fix-tmp-files
983249
983249
%build
4fdad4
make CFLAGS="$RPM_OPT_FLAGS"
983249
#make %{?_smp_mflags}
983249
983249
%install
983249
rm -rf $RPM_BUILD_ROOT
983249
983249
make install DESTDIR=$RPM_BUILD_ROOT PACKAGE_BUILD=y
983249
983249
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/{bin,lib,doc,wl_developer,wl_game,wl_office,wl_player,wl_reader}
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_developer/bin
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_game/bin
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office/bin
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_player/bin
983249
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_reader/bin
983249
mkdir -p ${RPM_BUILD_ROOT}/etc
983249
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,5}
983249
983249
install -m 644 %{SOURCE1}	${RPM_BUILD_ROOT}/etc
983249
install -m 644 doc/bltk.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1
983249
install -m 644 doc/bltk_report.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1
983249
install -m 644 doc/bltk.conf.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
983249
983249
install -m 755 bin/bat_drain	${RPM_BUILD_ROOT}%{_libdir}/bltk/bin/bat_drain
983249
install -m 755 bin/bat_drain_table	${RPM_BUILD_ROOT}%{_libdir}/bltk/bin/bat_drain_table
983249
983249
install -m 755 bin/bltk	${RPM_BUILD_ROOT}%{_libdir}/bltk/bin
983249
983249
install -m 755 lib/libxse.so.0	${RPM_BUILD_ROOT}%{_libdir}/bltk/lib/libxse.so.0
983249
983249
install -m 755 bin/bltk_*	${RPM_BUILD_ROOT}%{_libdir}/bltk/bin/
983249
install -m 755 bin/bat_*	${RPM_BUILD_ROOT}%{_libdir}/bltk/bin/
983249
983249
install -m 755 wl_developer/bin/bltk_wl_developer ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_developer/bin
983249
install -m 755 wl_developer/bin/bltk_wl_developer_xse ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_developer/bin
983249
install -m 755 wl_developer/bin/bltk_wl_developer_spy ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_developer/bin
983249
983249
install -m 755 wl_game/bin/bltk_wl_game ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_game/bin
983249
install -m 755 wl_game/bin/bltk_wl_game_xse ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_game/bin
983249
983249
install -m 755 wl_office/bin/bltk_wl_office ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office/bin
983249
install -m 755 wl_office/bin/bltk_wl_office_xse ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office/bin
983249
install -m 755 wl_office/bin/bltk_wl_office_run_app ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office/bin
983249
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 wl_office/scen ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 wl_office/scen_install ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 wl_office/response_install ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
install -m 644 wl_office/text* ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_office
983249
983249
install -m 755 wl_player/bin/bltk_wl_player ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_player/bin
983249
install -m 755 wl_player/bin/bltk_wl_player_make_binary ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_player/bin
983249
983249
install -m 755 wl_reader/bin/bltk_wl_reader ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_reader/bin
983249
install -m 755 wl_reader/bin/bltk_wl_reader_xse ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_reader/bin
983249
install -m 644 wl_reader/war_and_peace.html ${RPM_BUILD_ROOT}%{_libdir}/bltk/wl_reader
983249
4fdad4
cat << ":EOF" > ${RPM_BUILD_ROOT}%{_bindir}/bltk
4fdad4
#!/bin/sh
4fdad4
4fdad4
bltk_native="$(rpm --eval '%%{_libdir}')/bltk/bin/$(basename $0)"
4fdad4
4fdad4
[ -x "$bltk_native" ] && exec "$bltk_native" "$@"
4fdad4
exec /usr/lib/bltk/bin/$(basename $0) "$@"
4fdad4
:EOF
4fdad4
chmod a+rx ${RPM_BUILD_ROOT}%{_bindir}/bltk
4fdad4
pushd ${RPM_BUILD_ROOT}%{_bindir}
4fdad4
for f in bltk_plot bltk_report bltk_report_compress bltk_report_table bltk_report_uncompress;
4fdad4
do
4fdad4
  ln -s bltk $f
4fdad4
done
4fdad4
popd
4fdad4
983249
%clean
983249
rm -rf $RPM_BUILD_ROOT
983249
983249
%post -p /sbin/ldconfig
983249
983249
%postun -p /sbin/ldconfig
983249
983249
%files
983249
%defattr(-,root,root,-)
983249
%doc doc/HOWTO doc/Manual doc/README
983249
%config(noreplace) %attr(0644,root,root) /etc/bltk.conf
983249
983249
%{_libdir}/bltk/bin/bltk
983249
%{_bindir}/bltk
983249
%{_bindir}/bltk_plot
983249
%{_bindir}/bltk_report
983249
%{_bindir}/bltk_report_compress
983249
%{_bindir}/bltk_report_table
983249
%{_bindir}/bltk_report_uncompress
983249
983249
%{_mandir}/man1/bltk*
983249
%{_mandir}/man5/bltk.conf.*
983249
983249
%{_libdir}/bltk/lib/libxse.so.0
983249
983249
%{_libdir}/bltk/bin/bat_drain
983249
%{_libdir}/bltk/bin/bat_drain_table
983249
%{_libdir}/bltk/bin/bltk_calc
983249
%{_libdir}/bltk/bin/bltk_check
983249
%{_libdir}/bltk/bin/bltk_display_state
983249
%{_libdir}/bltk/bin/bltk_get_ac_adapter
983249
%{_libdir}/bltk/bin/bltk_get_bat
983249
%{_libdir}/bltk/bin/bltk_get_cpufreq
983249
%{_libdir}/bltk/bin/bltk_get_cpuinfo
983249
%{_libdir}/bltk/bin/bltk_get_cpustat
983249
%{_libdir}/bltk/bin/bltk_get_cpustate
983249
%{_libdir}/bltk/bin/bltk_get_dmidecode
983249
%{_libdir}/bltk/bin/bltk_get_hdparm
983249
%{_libdir}/bltk/bin/bltk_get_hd_rpm
983249
%{_libdir}/bltk/bin/bltk_get_info
983249
%{_libdir}/bltk/bin/bltk_get_kernel_release
983249
%{_libdir}/bltk/bin/bltk_get_lspci
983249
%{_libdir}/bltk/bin/bltk_get_meminfo
983249
%{_libdir}/bltk/bin/bltk_get_realpath
983249
%{_libdir}/bltk/bin/bltk_get_stat
983249
%{_libdir}/bltk/bin/bltk_get_system_release
983249
%{_libdir}/bltk/bin/bltk_get_timer
983249
%{_libdir}/bltk/bin/bltk_get_user_field
983249
%{_libdir}/bltk/bin/bltk_get_xdpyinfo
983249
983249
%{_libdir}/bltk/bin/bltk_install
983249
%{_libdir}/bltk/bin/bltk_func
983249
%{_libdir}/bltk/bin/bltk_plot
983249
%{_libdir}/bltk/bin/bltk_report
983249
%{_libdir}/bltk/bin/bltk_report_check
983249
%{_libdir}/bltk/bin/bltk_report_compress
983249
%{_libdir}/bltk/bin/bltk_report_table
983249
%{_libdir}/bltk/bin/bltk_report_uncompress
983249
%{_libdir}/bltk/bin/bltk_save_sys_info
983249
%{_libdir}/bltk/bin/bltk_spy
983249
%{_libdir}/bltk/bin/bltk_time
983249
%{_libdir}/bltk/bin/bltk_type_command
983249
%{_libdir}/bltk/bin/bltk_winid
983249
%{_libdir}/bltk/bin/bltk_wl_common
983249
983249
%{_libdir}/bltk/wl_developer/bin/bltk_wl_developer
983249
%{_libdir}/bltk/wl_developer/bin/bltk_wl_developer_spy
983249
%{_libdir}/bltk/wl_developer/bin/bltk_wl_developer_xse
983249
983249
%{_libdir}/bltk/wl_game/bin/bltk_wl_game
983249
%{_libdir}/bltk/wl_game/bin/bltk_wl_game_xse
983249
983249
%{_libdir}/bltk/wl_office/bin/bltk_wl_office
983249
%{_libdir}/bltk/wl_office/bin/bltk_wl_office_xse
983249
%{_libdir}/bltk/wl_office/bin/bltk_wl_office_run_app
983249
%{_libdir}/bltk/wl_office/OOCALC_FILE_SAMPLE.ods
983249
%{_libdir}/bltk/wl_office/OODRAW_FILE_SAMPLE.odg
983249
%{_libdir}/bltk/wl_office/OOWRITER_FILE_SAMPLE.odt
983249
%{_libdir}/bltk/wl_office/scen
983249
%{_libdir}/bltk/wl_office/scen_install
983249
%{_libdir}/bltk/wl_office/response_install
983249
%{_libdir}/bltk/wl_office/text1
983249
%{_libdir}/bltk/wl_office/text2
983249
%{_libdir}/bltk/wl_office/text3
983249
983249
%{_libdir}/bltk/wl_player/bin/bltk_wl_player
983249
%{_libdir}/bltk/wl_player/bin/bltk_wl_player_make_binary
983249
983249
%{_libdir}/bltk/wl_reader/bin/bltk_wl_reader
983249
%{_libdir}/bltk/wl_reader/bin/bltk_wl_reader_xse
983249
%{_libdir}/bltk/wl_reader/war_and_peace.html
983249
983249
%changelog
cd5fcb
* Tue Mar 21 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-10
cd5fcb
- Fixed temporary files creation
cd5fcb
  Resolves: rhbz#1102089
cd5fcb
4fdad4
* Wed Mar  5 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-9
4fdad4
- Improved multilib
4fdad4
  Related: rhbz#1057086
4fdad4
4fdad4
* Wed Mar  5 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-8
4fdad4
- Fixed multilib
4fdad4
  Resolves: rhbz#1057086
4fdad4
4fdad4
* Mon Mar  3 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-7
4fdad4
- Fixed application of CFLAGS
4fdad4
  Resolves: rhbz#1070787
4fdad4
4fdad4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.0-6
4fdad4
- Mass rebuild 2014-01-24
4fdad4
4fdad4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.0-5
4fdad4
- Mass rebuild 2013-12-27
4fdad4
983249
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
983249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
983249
983249
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
983249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
983249
983249
* Mon May  7 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-2
983249
- Switched to udisks2
983249
983249
* Thu Mar 29 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 1.1.0-1
983249
- New version
983249
- Dropped office_scen patch (upstreamed)
983249
- Dropped hdparm patch (upstream added support for LVM)
983249
- Reworked rm_sudo patch
983249
983249
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-12
983249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
983249
983249
* Wed Feb 23 2011 Jiri Skala <jskala@redhat.com> 1.0.9-11
983249
- fixes #679022 - bltk_plot is broken
983249
- fixes paths in bltk_get_hd_rpm
983249
983249
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-10
983249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
983249
983249
* Mon May 10 2010 Jiri Skala <jskala@redhat.com> 1.0.9-9
983249
- added udisks dependency
983249
983249
* Thu Feb 04 2010 Jiri Skala <jskala@redhat.com> 1.0.9-8
983249
- removed requires openoffice
983249
983249
* Fri Dec 11 2009 Jiri Skala <jskala@redhat.com> 1.0.9-7
983249
- fixes #542688 - bltk will run any command as root
983249
983249
* Thu Sep 03 2009 Jiri Skala <jskala@redhat.com> 1.0.9-6
983249
- fixed misspelled bash variable with stop file
983249
983249
* Fri Jul 31 2009 Jiri Skala <jskala@redhat.com> 1.0.9-5
983249
- bltk.conf can be located in ~/.bltk
983249
983249
* Tue Jul 28 2009 Jiri Skala <jskala@redhat.com> 1.0.9-4
983249
- added man mages
983249
- splitted patch to more files
983249
- filled up scen file of office workload
983249
- updated to latest upstream sources
983249
983249
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-2
983249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
983249
983249
* Tue Jul 14 2009 Jiri Skala <jskala@redhat.com> 1.0.9-1
983249
- merged with latest upstream sources
983249
983249
* Fri Apr 10 2009 Jiri Skala <jskala@redhat.com> 1.0.8-2
983249
- optimized bltk.conf - SOFFICE_PROG
983249
- fixed working dir in reports
983249
- fixed SIGHUP handling
983249
- finalized implementation of stop file in office and reader WLs
983249
983249
* Thu Jan 29 2009 Jiri Skala <jskala@redhat.com> 1.0.8-1
983249
- assembling package