Blame SPECS/cmpi-bindings.spec

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