conky-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. # TODO: make libXNVCtrl-devel
  2. %define with_alsa 0
  3. %define with_audacious 0
  4. %define with_imlib 1
  5. %define with_lua 0
  6. %define with_moc 1
  7. %define with_mpd 0
  8. %define with_nvidia 0
  9. %define with_rss 1
  10. %define with_smapi 0
  11. %define with_ibm 0
  12. %define with_wlan 0
  13. Name: conky
  14. Version: 1.7.1.1
  15. Release: 1%{?_dist_release}
  16. Summary: A lightweight system monitor for X
  17. Summary(ja): X 用軽量システムモニタ
  18. Group: User Interface/X
  19. License: GPLv3+
  20. URL: http://conky.sf.net/
  21. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
  22. Patch0: conky-1.7.1.1-nonxft.patch
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildRequires: libXft-devel
  25. BuildRequires: libXt-devel
  26. BuildRequires: libXdamage-devel
  27. BuildRequires: libXext-devel
  28. %if %{with_alsa}
  29. BuildRequires: alsa-lib-devel
  30. %endif
  31. %if %{with_imlib}
  32. BuildRequires: imlib2-devel
  33. %endif
  34. %if %{with_lua}
  35. BuildRequires: lua-devel
  36. %endif
  37. %if %{with_audacious}
  38. BuildRequires: audacious-devel
  39. BuildRequires: dbus-glib-devel
  40. %endif
  41. %if %{with_nvidia}
  42. BuildRequires: libXNVCtrl-devel
  43. %endif
  44. %if %{with_rss}
  45. BuildRequires: curl-devel
  46. %endif
  47. %if %{with_wlan}
  48. BuildRequires: wireless-tools-devel
  49. %endif
  50. %description
  51. A system monitor for X originally based on the torsmo code. but more kickass.
  52. It just keeps on given'er. Yeah.
  53. #'
  54. %description -l ja
  55. torsmo をベースにした X 用のシステムモニタです。
  56. %prep
  57. %setup -q
  58. %patch0 -p1 -b .nonxft
  59. for i in AUTHORS ChangeLog; do
  60. iconv -f iso8859-1 -t utf8 -o ${i}{_,} && touch -r ${i}{,_} && mv -f ${i}{_,}
  61. done
  62. %build
  63. #sh autogen.sh
  64. %configure \
  65. --disable-rpath \
  66. %if !%{with_alsa}
  67. --disable-alsa \
  68. %if %{with_audacious}
  69. --enable-audacious=yes \
  70. %endif
  71. %if %{with_imlib}
  72. --enable-imlib2 \
  73. %endif
  74. %if !%{with_lua}
  75. --disable-lua \
  76. %endif
  77. %if !%{with_moc}
  78. --disable-moc \
  79. %endif
  80. %if !%{with_mpd}
  81. --disable-mpd \
  82. %endif
  83. %if %{with_nvidia}
  84. --enable-nvidia \
  85. %endif
  86. %if %{with_rss}
  87. --enable-rss \
  88. %endif
  89. %if %{with_ibm}
  90. --enable-ibm \
  91. %endif
  92. %if %{with_smapi}
  93. --enable-smapi \
  94. %endif
  95. %if %{with_wlan}
  96. --enable-wlan \
  97. %endif
  98. ;
  99. %__make %{?_smp_mflags}
  100. %install
  101. %__rm -rf $RPM_BUILD_ROOT
  102. %__make install DESTDIR=$RPM_BUILD_ROOT
  103. %clean
  104. %__rm -rf $RPM_BUILD_ROOT
  105. %files
  106. %defattr(-,root,root,-)
  107. %doc AUTHORS ChangeLog COPYING TODO README NEWS extras/* doc/docs.html
  108. %dir %{_sysconfdir}/%{name}
  109. %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
  110. %{_bindir}/%{name}
  111. %{_mandir}/man1/*
  112. %changelog
  113. * Thu Jul 30 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.7.1.1-1
  114. - new upstream release
  115. * Sat Nov 15 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.6.1-1
  116. - initial build based on Fedora package
  117. - applied conky-1.6.0-rdtsc.patch, conky-1.6.1-ifaddrs.patch
  118. * Tue Aug 26 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.6.1-1
  119. - Update to 1.6.1
  120. - Fix buffer overflow when reading interface addresses
  121. * Tue Jul 22 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.6.0-1
  122. - Update to 1.6.0
  123. - Fix freq_dyn on x86_64
  124. * Tue Apr 01 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.5.1-1
  125. - Update to 1.5.1
  126. * Sun Mar 23 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.5.0-1
  127. - Update to 1.5.0
  128. - Convert doc files to UTF-8
  129. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.9-2
  130. - Autorebuild for GCC 4.3
  131. * Tue Nov 27 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.4.9-1
  132. - Update to 1.4.9
  133. - Enable support for Audacious 1.4.0
  134. * Sun Oct 21 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.4.8-1
  135. - Update to 1.4.8
  136. - Enable mpd, rss and wireless support
  137. - Update license tag
  138. * Wed Apr 18 2007 Michael Rice <errr[AT]errr-online.com> - 1.4.5-4
  139. - Rebuild to match audacious lib in fc6 bug: 236989
  140. * Mon Apr 09 2007 Michael Rice <errr[AT]errr-online.com> - 1.4.5-3
  141. - Rebuild for devel
  142. * Thu Dec 14 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.5-2
  143. - Ship NEWS
  144. - Add patch for license of timed_thread and NEWS
  145. * Tue Dec 12 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.5-1
  146. - version bump
  147. - change group
  148. * Wed Dec 06 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.4-3
  149. - rebuild for new audacious lib version
  150. * Thu Nov 30 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.4-2
  151. - Move nano and vim files into docs
  152. - remove unneeded BR's
  153. * Tue Nov 21 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.4-1
  154. - Version bump
  155. - Add vim and nano syntax files to package
  156. * Thu Oct 05 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.3-1
  157. - Version bump
  158. - Remove Install file from docs
  159. * Mon Oct 02 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.2-4
  160. - moved to configure macro from ./configure
  161. - clean up changelog and make more informative entrys
  162. - Fixed sumary in spec file
  163. - remove NEWS file since it was empty
  164. - remove xmms support due to possible security issue
  165. - remove bmp support due to possible security issue
  166. - add missing BR for libXext-devel and remove unneeded libX11-devel
  167. * Thu Sep 28 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.2-3
  168. - use the GPL as licence since the whole package is GPL
  169. * Thu Sep 28 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.2-2
  170. - remove unneeded deps
  171. * Tue Sep 26 2006 Michael Rice <errr[AT]errr-online.com> - 1.4.2-1
  172. - Initial RPM release