PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/sblim-cmpi-samba-1.0/sblim-cmpi-samba.spec.in

#
Autoconf | 262 lines | 169 code | 56 blank | 37 comment | 24 complexity | 12a7d158d2d198eb1d8d0a087eb2b32a MD5 | raw file
Possible License(s): EPL-1.0
  1. #
  2. # sblim-cmpi-samba.spec.in
  3. #
  4. # Package spec for cmpi-samba
  5. #
  6. %define cmpi_provider_dir %{_libdir}/cmpi
  7. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
  8. Summary: SBLIM WBEM-SMT Samba
  9. Name: @PACKAGE_TARNAME@
  10. Version: @PACKAGE_VERSION@
  11. Release: 1
  12. Group: Systems Management/Instrumentation
  13. URL: http://www.sblim.org
  14. License: EPL
  15. Requires: sblim-tools-libra
  16. Requires: samba >= 3.0.10
  17. #Requires: tog-pegasus >= 2.6.0
  18. BuildRequires: sblim-tools-libra-devel
  19. #BuildRequires: tog-pegasus-devel
  20. #BuildRequires: sblim-cmpi-devel
  21. Provides: cmpi-samba
  22. Source0: http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
  23. %Description
  24. The cmpi-samba package provides access to the samba configuration data
  25. via CIMOM technology/infrastructure.
  26. It contains the Samba CIM Model, CMPI Provider with the Samba task specific
  27. Resource Access.
  28. A web based client application is available on SourceForge. Please refer to
  29. http://sblim.wiki.sourceforge.net to get more information the WBEM-SMT Client
  30. Application.
  31. ###############################################################################
  32. %Package devel
  33. Summary: SBLIM WBEM-SMT Samba - Header Development Files
  34. Group: Systems Management/Instrumentation
  35. Requires: %{name} = %{version}-%{release}
  36. %Description devel
  37. SBLIM WBEM-SMT Samba Development Package contains header files and
  38. link libraries for dependent provider packages
  39. ###############################################################################
  40. %Package test
  41. Summary: SBLIM WBEM-SMT Samba - Testcase Files
  42. Group: Systems Management/Instrumentation/Test
  43. Requires: %{name} = %{version}-%{release}
  44. Requires: sblim-testsuite
  45. %Description test
  46. SBLIM WBEM-SMT Samba Provider Testcase Files for the SBLIM Testsuite
  47. ###############################################################################
  48. %prep
  49. %setup -n %{name}-%{version}
  50. ###############################################################################
  51. %build
  52. %configure \
  53. TESTSUITEDIR=%{_datadir}/sblim-testsuite \
  54. CIMSERVER=pegasus \
  55. PROVIDERDIR=%{_libdir}/cmpi
  56. make
  57. ###############################################################################
  58. %clean
  59. if [ "x${RPM_BUILD_ROOT}" != "x" ] ; then
  60. rm -rf ${RPM_BUILD_ROOT}
  61. fi
  62. ###############################################################################
  63. %install
  64. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  65. make DESTDIR=$RPM_BUILD_ROOT install
  66. # remove unused libtool files
  67. rm -f $RPM_BUILD_ROOT/%{_libdir}/*a
  68. rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*a
  69. /usr/lib/rpm/brp-compress
  70. ###############################################################################
  71. %pre
  72. # Conditional definition of schema and registration files
  73. %define SCHEMA %{_datadir}/%{name}/Linux_Samba_Profile.mof %{_datadir}/%{name}/Linux_Samba.mof
  74. %define REGISTRATION %{_datadir}/%{name}/Linux_Samba.registration
  75. %define INTEROP_SCHEMAS %{_datadir}/%{name}/Linux_Samba_Profile.mof
  76. %define INTEROP_REGISTRATIONS %{_datadir}/%{name}/Linux_Samba_Profile.registration
  77. # If upgrading, deregister old version
  78. if [ $1 -gt 1 ]
  79. then
  80. %{_datadir}/%{name}/provider-register.sh -d %{?tog_pegasus:-t pegasus} \
  81. -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
  82. %{_datadir}/%{name}/provider-register.sh -d %{?tog_pegasus:-t pegasus} \
  83. -v -n "root/PG_InterOp" -r %{INTEROP_REGISTRATIONS} -m %{INTEROP_SCHEMAS} > /dev/null
  84. fi
  85. ###############################################################################
  86. %post
  87. # Register Schema and Provider - this is higly provider specific
  88. # Check if pegasus repository has the CIM_RegisteredProfile classes else register the interop mof file
  89. #if [ ! -e "/var/lib/Pegasus/repository/root#PG_InterOp/classes/CIM_RegisteredProfile.CIM_ManagedElement" ]
  90. #then
  91. # if [ -e "/usr/share/Pegasus/mof/CIM29/CIM_Interop.mof" ]
  92. # then
  93. # cimmofl -w -uc -aEV -R/var/lib/Pegasus -n root/PG_InterOp /usr/share/Pegasus/mof/CIM29/CIM_Interop.mof > /dev/null
  94. # /etc/init.d/tog-pegasus restart > /dev/null
  95. # fi
  96. #fi
  97. %{_datadir}/%{name}/provider-register.sh %{?tog_pegasus:-t pegasus} \
  98. -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
  99. %{_datadir}/%{name}/provider-register.sh %{?tog_pegasus:-t pegasus} \
  100. -v -n "root/PG_InterOp" -r %{INTEROP_REGISTRATIONS} -m %{INTEROP_SCHEMAS} > /dev/null
  101. /sbin/ldconfig
  102. ###############################################################################
  103. %preun
  104. # Deregister only if not upgrading
  105. if [ $1 -eq 0 ]
  106. then
  107. %{_datadir}/%{name}/provider-register.sh -d %{?tog_pegasus:-t pegasus} \
  108. -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
  109. %{_datadir}/%{name}/provider-register.sh -d %{?tog_pegasus:-t pegasus} \
  110. -v -n "root/PG_InterOp" -r %{INTEROP_REGISTRATIONS} -m %{INTEROP_SCHEMAS} > /dev/null
  111. fi
  112. ###############################################################################
  113. %postun
  114. # Run ldconfig only if not upgrading
  115. if [ $1 -eq 0 ]
  116. then
  117. /sbin/ldconfig
  118. fi
  119. ###############################################################################
  120. %files
  121. %defattr(-,root,root,0644)
  122. %doc %{_datadir}/doc/%{name}-%{version}
  123. %doc %{_mandir}/man5/smt_smb_ra_support.conf.5.gz
  124. %config(noreplace) %{_sysconfdir}/smt_smb*.conf
  125. %defattr(-,root,root,0755)
  126. %{_datadir}/%{name}
  127. # %exclude %{_datadir}/%{name}/*.pyc
  128. # %exclude %{_datadir}/%{name}/*.pyo
  129. %{_libdir}/libIBM_SmbProviderTooling.so.*
  130. %{_libdir}/libLinux_SmbGeneralProviderBasic.so.*
  131. %{_libdir}/libRaToolsSmb.so.*
  132. %{cmpi_provider_dir}/libcmpiSambaCIM_ConcreteJob.so
  133. %{cmpi_provider_dir}/libcmpiLinux_Samba*.so
  134. %files devel
  135. %defattr(-,root,root,0644)
  136. %dir %{_includedir}/sblim
  137. %{_includedir}/sblim/smt_smb*.h
  138. %defattr(-,root,root,0755)
  139. %{_libdir}/libIBM_SmbProviderTooling.so
  140. %{_libdir}/libLinux_SmbGeneralProviderBasic.so
  141. %{_libdir}/libRaToolsSmb.so
  142. %files test
  143. %defattr(-,root,root,0755)
  144. %{_datadir}/sblim-testsuite/test-cmpi-samba.sh
  145. %{_datadir}/sblim-testsuite/test-cmpi-samba-associations.pl
  146. %defattr(-,root,root,0644)
  147. %{_datadir}/sblim-testsuite/smb.conf
  148. %{_datadir}/sblim-testsuite/smbpasswd
  149. %{_datadir}/sblim-testsuite/smbusers
  150. %{_datadir}/sblim-testsuite/cim/Linux_Samba*
  151. %{_datadir}/sblim-testsuite/system/linux/Linux_Samba*
  152. %{_datadir}/sblim-testsuite/xml/Linux_Samba*
  153. ###############################################################################
  154. %changelog
  155. * Tue Sep 15 2009 Jeremy Bongio <jbongio@us.ibm.com> 1.0-1
  156. o Change licensing from CPL to EPL
  157. * Wed Jun 17 2009 Jeremy Bongio <jbongio@us.ibm.com> 0.5.6-1
  158. o Maintenance release
  159. * Mon May 12 2008 Saravanan Kannan <skanan(at)us.ibm.com> 0.5.5-1
  160. o Fixes for testsuite issues.
  161. * Wed Apr 30 2008 Saravanan Kannan <skanan(at)us.ibm.com> 0.5.4-1
  162. - Inclusion of fixes for the following issues:
  163. o 1939839 cmpi-samba: Registered Profile support
  164. * Tue Dec 11 2007 Sam Kannan <skanan@us.ibm.com> 0.5.3-1
  165. - Inclusion of fixes for the following issues:
  166. o 1845493 cmpi-samba: Include proper group definition for RPM build
  167. o 1815306 cmpi-samba: Man page for the samba specific config file
  168. o 1814509 cmpi-samba: Enhancements to build process
  169. o 1769647 cmpi-samba: Parallel requests cause provider to quit
  170. * Fri Sep 14 2007 Wolfgang Taphorn <taphorn@de.ibm.com> 0.5.2-1
  171. - Inclusion of fixes for the following issues:
  172. o 1794679 cmpi-samba: base tests on current delivered testsuite
  173. o 1794656 cmpi-samba: Creation of new system user does not appear
  174. o 1794654 cmpi-samba: Include information on WBEM-SMT client app
  175. * Mon Aug 27 2007 Wolfgang Taphorn <taphorn@de.ibm.com> 0.5.1-1
  176. - Inclusion of fixes for the following issues:
  177. o 1775667 cmpi-samba: Still using ShadowRepository
  178. * Fri Jul 6 2007 Wolfgang Taphorn <taphorn@de.ibm.com> 0.5.0-1
  179. - Inclusion of fixes for the following issues:
  180. o 1764888 cmpi-samba: More specific on package content
  181. o 1762059 cmpi-samba: Type conversion issue for string arrays
  182. o 1757460 cmpi-samba: Server status not reflected properly
  183. o 1755726 cmpi-samba: Retrieval of smb users wrong
  184. o 1747732 cmpi-samba: Model upgrade for ECUTE 2.3.6 usage
  185. o 1746588 cmpi-samba: Linux_SambaDenyHostsForGlobal not working
  186. o 1746584 cmpi-samba: Cleanup for test cases
  187. o 1741424 cmpi-samba: no modifyInst value in the test case
  188. o 1741421 cmpi-samba: providing full Object Path in the test cases
  189. o 1741033 cmpi-samba: reordered the test cases
  190. o 1737895 cmpi-samba: Unresolved symbols in service class
  191. o 1724483 cmpi-samba: GetInstance uses still shadow repository
  192. o 1632460 cmpi-samba: Use Servicename as InstanceId
  193. * Mon Dec 4 2006 Wolfgang Taphorn <taphorn@de.ibm.com> 0.2.3-1
  194. - Inclusion of fixes for the following bug entries:
  195. o 1608539 cmpi-samba: existency checks in gi methods for Host classes
  196. o 1608544 cmpi-samba: Improvements to test cases for ci on assocs
  197. o 1608698 cmpi-samba: Build does not pass 'make distcheck'
  198. * Tue Oct 17 2006 Wolfgang Taphorn <taphorn@de.ibm.com> 0.2.2-1
  199. - Added Test cases
  200. - Fix for the following bug:
  201. o 1572262 smb: build does not include correct system libraries
  202. * Sat Jul 22 2006 Wolfgang Taphorn <taphorn@de.ibm.com> 0.2.1-1
  203. - Build process improvements
  204. - Model changes, regeneration of providers
  205. * Tue Sep 16 2005 Wolfgang Taphorn <taphorn@de.ibm.com> 0.1.1-1
  206. - initial support