Blame SPECS/cmpi-bindings.spec

8ef125
Name:           cmpi-bindings
8ef125
Version:        0.9.5
8ef125
Release:        6%{?dist}
8ef125
Summary:        Adapter to write and run CMPI-type CIM providers
8ef125
8ef125
Group:          Development/Libraries
8ef125
License:        BSD
8ef125
URL:            http://github.com/kkaempf/cmpi-bindings
8ef125
Source0:        https://github.com/kkaempf/%{name}/archive/v%{version}.tar.gz
8ef125
8ef125
#Patch0: don't build ruby and perl bingings
8ef125
Patch0:         cmpi-bindings-0.4.17-no-ruby-perl.patch
8ef125
#Patch1: removes workaround no longer needed
8ef125
Patch1:         cmpi-bindings-0.4.17-sblim-sigsegv.patch
8ef125
#Patch2: fixes placement of *.py[co] file
8ef125
Patch2:         cmpi-bindings-0.9.5-python-lib-dir.patch
8ef125
8ef125
BuildRequires:  cmake gcc-c++ swig >= 1.3.34
8ef125
BuildRequires:  curl-devel pkgconfig sed
8ef125
BuildRequires:  sblim-cmpi-devel
8ef125
BuildRequires:  python2-devel
8ef125
8ef125
%description
8ef125
CMPI-compliant provider interface for various languages via SWIG
8ef125
8ef125
8ef125
%package -n cmpi-bindings-pywbem
8ef125
Summary:        Adapter to write and run CMPI-type CIM providers in Python
8ef125
Group:          Development/Languages
8ef125
Requires:       pywbem
8ef125
 
8ef125
%description -n cmpi-bindings-pywbem
8ef125
CMPI-compliant provider interface for Python
8ef125
8ef125
8ef125
%prep
8ef125
%setup -q
8ef125
%patch0 -p1
8ef125
%patch1 -p1
8ef125
%patch2 -p1 -b .python-lib-dir
8ef125
8ef125
# change hardcoded path from /usr/lib/pycim/ to something better
8ef125
sed -i 's@/usr/lib/pycim/@'`echo %{python_sitelib}/pycim/`'@' swig/python/cmpi_pywbem_bindings.py
8ef125
# let user know where the providers have to be placed
8ef125
cat > README.Fedora << EOS 
8ef125
Python provider interface expects the providers to be placed in:
8ef125
%{python_sitelib}/pycim/
8ef125
8ef125
You can customize the path - edit line 428 in:
8ef125
%{python_sitelib}/cmpi_pywbem_bindings.py
8ef125
EOS
8ef125
8ef125
8ef125
%build
8ef125
mkdir build
8ef125
cd build
8ef125
cmake -DCMAKE_INSTALL_PREFIX=%_prefix \
8ef125
      -DLIB=%{_lib} \
8ef125
      -DCMAKE_VERBOSE_MAKEFILE=TRUE \
8ef125
      -DCMAKE_C_FLAGS:STRING="%{optflags}" \
8ef125
      -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
8ef125
      -DCMAKE_BUILD_TYPE=Release \
8ef125
      -DCMAKE_SKIP_RPATH=1 \
8ef125
      ..  
8ef125
make %{?_smp_mflags}
8ef125
8ef125
8ef125
%install
8ef125
rm -rf $RPM_BUILD_ROOT
8ef125
cd build
8ef125
mkdir -p $RPM_BUILD_ROOT%{_datadir}/cmpi
8ef125
make install DESTDIR=$RPM_BUILD_ROOT
8ef125
# create directory for providers
8ef125
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/pycim/
8ef125
rmdir $RPM_BUILD_ROOT%{_datadir}/cmpi
8ef125
8ef125
8ef125
%clean
8ef125
rm -rf $RPM_BUILD_ROOT
8ef125
8ef125
8ef125
%files -n cmpi-bindings-pywbem
8ef125
%defattr(-,root,root,-)
8ef125
%doc README ANNOUNCE COPYING LICENSE.BSD README.Fedora
8ef125
%dir %{_libdir}/cmpi
8ef125
%{_libdir}/cmpi/libpyCmpiProvider.so
8ef125
%{python_sitearch}/cmpi_pywbem_bindings.py*
8ef125
%{python_sitearch}/cmpi.py*
8ef125
%dir %{python_sitelib}/pycim/
8ef125
8ef125
%changelog
8ef125
* Wed Mar 19 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.9.5-6
8ef125
- Fix cflags propagation
8ef125
  Resolves: #1070791
8ef125
8ef125
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.5-5
8ef125
- Mass rebuild 2014-01-24
8ef125
8ef125
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.5-4
8ef125
- Mass rebuild 2013-12-27
8ef125
8ef125
* Tue Aug 13 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.9.5-3
8ef125
- Fix placement of *.py[co] files
8ef125
  Resolves: #921547
8ef125
- Remove /usr/share/cmpi - it's used by ruby binding that we don't build
8ef125
8ef125
* Wed Jul 17 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.9.5-2
8ef125
- Fix URL, fix sources
8ef125
8ef125
* Thu Apr 11 2013 Jan Safranek <jsafrane@redhat.com> - 0.9.5-1
8ef125
- Update to 0.9.5
8ef125
8ef125
* Thu Apr 11 2013 Jan Safranek <jsafrane@redhat.com> - 0.9.4-1
8ef125
- Update to 0.9.4
8ef125
8ef125
* Thu Mar 28 2013 Jan Safranek <jsafrane@redhat.com> - 0.5.2-6
8ef125
- Fixed 'env' parameter value in 'get_providers()' function
8ef125
  Resolves: #919082
8ef125
- Fixed embedded instance properties
8ef125
  Resolves: #919081
8ef125
8ef125
* Fri Feb 15 2013 Jan Safranek <jsafrane@redhat.com> - 0.5.2-5
8ef125
- Fixed passing NULL array from get_instance
8ef125
  Resolves: #883041
8ef125
8ef125
* Wed Jan 30 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.5.2-4
8ef125
- Fix memory leaks
8ef125
  Resolves: #902809
8ef125
8ef125
* Thu Jan 10 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.5.2-3
8ef125
- Fixed passing NULL array from get_instance
8ef125
- Add bindings for CMTraceMessage
8ef125
  (patches by Jan Safranek)
8ef125
8ef125
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
8ef125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ef125
8ef125
* Mon May  7 2012 Jan Safranek <jsafrane@redhat.com> - 0.5.2
8ef125
- Update to 0.5.2
8ef125
8ef125
* Thu Mar 08 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.4.17-2
8ef125
- Create and own "pycim" directory
8ef125
- Add documentation and create README.Fedora
8ef125
8ef125
* Thu Mar 01 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.4.17-1
8ef125
- Initial support (ruby and perl bindings are disabled)