Bibletime – a bible study tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bibletime.spec 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. %define name bibletime
  2. %define version 1.6.5.1
  3. # this needs to be changed depending on build number
  4. %define release 1
  5. # This should be set to your os.
  6. # Possible values are Mandrake, Red Hat, Turbolinux, Caldera, SuSE, Debian, etc.
  7. # In bibletime.spec.in this is automatically filled in by configure
  8. %define ostype Debian
  9. # This should be set to the version of your OS (6.0, 6.1, 6.2, 7.0, 7.1, 7.2, 8.0, etc.)
  10. # Done by configure in bibletime.spec.in
  11. %define osversion lenny/sid
  12. # This is your cpu i486, i586, i686, ppc, sparc, alpha, etc.
  13. %define buildarch i586
  14. # This the RPM group on your system that this will installed into.
  15. # Graphical desktop/KDE, X11/apps, etc.
  16. %define rpmgroup Graphical desktop/KDE
  17. Summary: BibleTime %{version} is an easy to use Bible study tool for KDE.
  18. Name: %{name}
  19. Version: %{version}
  20. Release: %{release}
  21. Copyright: GPL
  22. Vendor: BibleTime's developer (info@bibletime.info)
  23. Url: http://www.bibletime.info/
  24. Packager: Brook Humphrey <bah@webmedic.net>, Joachim Ansorg <junkmail@joachim.ansorgs.de>
  25. Group: %{rpmgroup}
  26. BuildArch: %{buildarch}
  27. Source0: %{name}-%{version}.tar.bz2
  28. BuildRoot: %{_tmppath}/%{name}-%{version}--rootbibletime
  29. Prefix: /usr
  30. Requires: sword >= 1.5.8
  31. Distribution: %{ostype} %{osversion}
  32. BuildRequires: tdelibs-devel
  33. BuildRequires: sword-devel >= 1.5.8
  34. %description
  35. BibleTime %{version}-%{release} is a free and easy to use bible study tool for UNIX systems.
  36. BibleTime provides easy handling of digitalized texts (Bibles, commentaries and lexicons) and powerful features to work with these texts (search in texts, write own notes, save, print etc.). BibleTime is a frontend for the SWORD Bible Framework.
  37. This is a relocatable package, you can install it on different target with
  38. rpm -Uvh bibletime-%{version}-%{release}.rpm --prefix /usr/local/opt/apps/noncommercial
  39. default is %{_prefix}
  40. The SWORD Project is an effort to create an ever expanding software package for research and study of God and His Word. The SWORD Bible Framework allows easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc. Many frontends are build using this framework. An installed module set may be shared between any frontend using the framework.
  41. This rpm was compiled on a %{ostype} %{osversion} system for %{buildarch} class cpu's.
  42. %prep
  43. rm -rf $RPM_BUILD_ROOT
  44. rm -rf $RPM_BUILD_DIR/%{name}-%{version}
  45. %setup -q
  46. make -f Makefile.cvs
  47. # Look for common rpm-options:
  48. if [ -f /etc/opt/trinity/common_options ]; then
  49. . /etc/opt/trinity/common_options
  50. ./configure $configkde
  51. else
  52. ./configure --prefix=${_prefix}
  53. fi
  54. # Setup for parallel builds
  55. numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
  56. if [ "$numprocs" = "0" ]; then
  57. numprocs=1
  58. fi
  59. make -j$numprocs
  60. %install
  61. make DESTDIR=$RPM_BUILD_ROOT install-strip
  62. #cd $RPM_BUILD_ROOT
  63. #find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/bt-files.list
  64. #find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/bt-files.list
  65. #find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/bt-files.list
  66. %post
  67. /sbin/ldconfig
  68. %postun
  69. /sbin/ldconfig
  70. %clean
  71. #rm -f $RPM_BUILD_DIR/master.list
  72. rm -rf $RPM_BUILD_ROOT
  73. %files
  74. %defattr(-,root,root)
  75. %{prefix}/bin/*
  76. %{prefix}/share/applnk/Applications/bibletime.desktop
  77. %{prefix}/share/apps/bibletime/
  78. %{prefix}/share/doc/tde/HTML/en/bibletime/
  79. %{prefix}/share/icons/*
  80. %changelog
  81. * Sat Dec 27 2003 Joachim Ansorg <junkmail@joachim.ansorgs.de>
  82. -We require curl 7.10 or later now
  83. -Update to BibleTime 1.4 and Sword 1.5.7
  84. * Sun Jun 22 2003 Joachim Ansorg <junkmail@joachim.ansorgs.de>
  85. -Cleanup. We require no an Sword RPM file to be installed.
  86. -Removed Mandrake menu stuff because there's an own SPEC file for this.
  87. * Fri Feb 14 2003 Joachim Ansorg <junkmail@joachim.ansorgs.de>
  88. -Removed locales.d source and management of Sword files because we require a Sword RPM now.
  89. * Mon Apr 8 2002 Brook Humphrey <bah@webmedic.net> bibletime-1.1
  90. - Added to the spec to better handle mandrake menus during compile. Now should be compatable with all os's.
  91. - added locals.d source to build. This removes dependecy on sword being installed. Will make seperate package for this later.
  92. * Fri Mar 31 2002 Joachim Ansorg <jansorg@gmx.de>
  93. - Made including the book translations working finally.
  94. - Fixed SPEC files to work with SuSE
  95. * Thu Feb 7 2002 Brook Humphrey <bah@webmedic.net> bibletime-1.0.2
  96. - changed compile time options to mach bibletime spec included with source files
  97. - compiled on mandrake 8.2
  98. * Fri Sep 7 2001 Joachim Ansorg <jansorg@gmx.de>
  99. - Added the bookname files in the file list
  100. * Tue Jul 10 2001 Brook Humphrey <bah@webmedic.net> bibletime-1.0.1-Mandrake8.0.4mdk
  101. - Recompile because of dependecy problems.
  102. * Tue Jul 10 2001 Brook Humphrey <bah@webmedic.net> bibletime-1.0.1-Mandrake8.0.1mdk
  103. - bug fix release bibletime-1.0.1
  104. - adda extra compile options to spec file.
  105. - Merged in suse changes for compileing on SuSE
  106. * Sun May 27 2001 Brook Humphrey <bah@webmedic.net>
  107. - Trying different variations of static compiles again.
  108. - Still using cvs sources while waiting for 1.0 release.
  109. * Thu May 24 2001 Brook Humphrey <bah@webmedic.net>
  110. - Trying for x static and whatever else we can get into it.
  111. - No X for today Got libz to compile in but it causes segfault.
  112. * Wed May 23 2001 Brook Humphrey <bah@webmedic.net>
  113. - Yet another try at static qt.
  114. - Qt static works now.
  115. * Mon May 21 2001 Brook Humphrey <bah@webmedic.net>
  116. - Static is working for kde and a few other libs but not qt yet.
  117. - Testing another patch today to try to get qt compiled static.
  118. * Sun May 20 2001 Brook Humphrey <bah@webmedic.net>
  119. - Cleaned up spec some more(stupid spelling error's)
  120. - static compile not working today so added option to compile kde and sword as static seperately
  121. * Sat May 19 2001 Brook Humphrey <bah@webmedic.net>
  122. - Cleaned up spec some more and added a few more comments
  123. - Changed spec to automaticly do parts concerning static and Mandrake menus
  124. - All info can be set in defines at top of spec file no other changes should need to be made
  125. - Fixed patch to compile static should now compile static with kde libs
  126. - Test to compile with qt as static also
  127. * Sun May 13 2001 Brook Humphrey <bah@webmedic.net>
  128. - cleaned up spec file and added more comments for easier reading.
  129. - changed sword.conf instelation to check for previous versions of sword.conf
  130. - If found a new sword.conf is not created
  131. - Made a patch to hopefully compile kde and other libs as atatic
  132. - static compile didn't work for today.
  133. * Tue May 8 2001 Brook Humphrey <bah@webmedic.net>
  134. - Updated package to be relocatable
  135. - added sword directories and sword.conf to install
  136. * Mon Apr 30 2001 Brook Humphrey <bah@webmedic.net>
  137. - Changed to build staticly
  138. - added more mandrake macros to spec file
  139. * Mon Apr 23 2001 Brook Humphrey <bah@webmedic.net>
  140. - made changes to enable compile of cvs tree
  141. * Wed Mar 14 2001 Brook Humphrey <bah@webmedic.net>
  142. - updated to use mandrake menu sysem