|
|
70da00 |
%global provider_dir %{_libdir}/cmpi
|
|
|
70da00 |
|
|
|
70da00 |
Name: sblim-cmpi-nfsv4
|
|
|
70da00 |
Summary: SBLIM nfsv4 instrumentation
|
|
|
70da00 |
Version: 1.1.0
|
|
|
70da00 |
Release: 10%{?dist}
|
|
|
70da00 |
License: EPL
|
|
|
70da00 |
Group: Applications/System
|
|
|
70da00 |
URL: http://sourceforge.net/projects/sblim/
|
|
|
70da00 |
Source0: http://downloads.sourceforge.net/project/sblim/providers/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
70da00 |
|
|
|
70da00 |
# Patch0: use Pegasus root/interop instead of root/PG_Interop
|
|
|
70da00 |
Patch0: sblim-cmpi-nfsv4-1.1.0-pegasus-interop.patch
|
|
|
70da00 |
|
|
|
70da00 |
BuildRequires: sblim-cmpi-base-devel sblim-cmpi-devel
|
|
|
70da00 |
Requires: sblim-cmpi-base cim-server cim-schema
|
|
|
70da00 |
Requires: /etc/ld.so.conf.d
|
|
|
70da00 |
Requires(post): /sbin/ldconfig
|
|
|
70da00 |
Requires(postun): /sbin/ldconfig
|
|
|
70da00 |
|
|
|
70da00 |
%description
|
|
|
70da00 |
Standards Based Linux Instrumentation Nfsv4 Providers
|
|
|
70da00 |
|
|
|
70da00 |
%package devel
|
|
|
70da00 |
# ^- currently a placeholder - no devel files shipped
|
|
|
70da00 |
Summary: SBLIM Nfsv4 Instrumentation Header Development Files
|
|
|
70da00 |
Group: Development/Libraries
|
|
|
70da00 |
Requires: %{name} = %{version}-%{release}
|
|
|
70da00 |
|
|
|
70da00 |
%description devel
|
|
|
70da00 |
SBLIM Base Nfsv4 Development Package
|
|
|
70da00 |
|
|
|
70da00 |
%package test
|
|
|
70da00 |
Summary: SBLIM Nfsv4 Instrumentation Testcases
|
|
|
70da00 |
Group: Applications/System
|
|
|
70da00 |
Requires: %{name} = %{version}-%{release}
|
|
|
70da00 |
Requires: sblim-testsuite
|
|
|
70da00 |
|
|
|
70da00 |
%description test
|
|
|
70da00 |
SBLIM Base Fsvol Testcase Files for SBLIM Testsuite
|
|
|
70da00 |
|
|
|
70da00 |
%prep
|
|
|
70da00 |
%setup -q
|
|
|
70da00 |
%patch0 -p1 -b .pegasus-interop
|
|
|
70da00 |
|
|
|
70da00 |
%build
|
|
|
70da00 |
%ifarch s390 s390x ppc ppc64
|
|
|
70da00 |
export CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
|
|
|
70da00 |
%else
|
|
|
70da00 |
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
70da00 |
%endif
|
|
|
70da00 |
%configure \
|
|
|
70da00 |
--disable-static \
|
|
|
70da00 |
TESTSUITEDIR=%{_datadir}/sblim-testsuite \
|
|
|
70da00 |
PROVIDERDIR=%{provider_dir}
|
|
|
70da00 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
70da00 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
70da00 |
make
|
|
|
70da00 |
|
|
|
70da00 |
%install
|
|
|
70da00 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
70da00 |
# remove unused libtool files
|
|
|
70da00 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
70da00 |
rm -f $RPM_BUILD_ROOT/%{provider_dir}/*.la
|
|
|
70da00 |
# shared libraries
|
|
|
70da00 |
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
|
|
|
70da00 |
echo "%{_libdir}/cmpi" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
70da00 |
mv $RPM_BUILD_ROOT/%{_libdir}/libLinux_NFSv4SystemConfigurationUtil.so $RPM_BUILD_ROOT/%{provider_dir}
|
|
|
70da00 |
|
|
|
70da00 |
%files
|
|
|
70da00 |
%dir %{provider_dir}
|
|
|
70da00 |
%{provider_dir}/*.so
|
|
|
70da00 |
%{_datadir}/%{name}
|
|
|
70da00 |
%docdir %{_datadir}/doc/%{name}-%{version}
|
|
|
70da00 |
%{_datadir}/doc/%{name}-%{version}
|
|
|
70da00 |
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
70da00 |
|
|
|
70da00 |
%files test
|
|
|
70da00 |
%{_datadir}/sblim-testsuite
|
|
|
70da00 |
|
|
|
70da00 |
%global PEGASUS_MOF CIM_SystemSetting,CIM_NFS,CIM_SystemConfiguration,CIM_SystemSettingContext
|
|
|
70da00 |
|
|
|
70da00 |
%pre
|
|
|
70da00 |
# If upgrading, deregister old version
|
|
|
70da00 |
if [ $1 -gt 1 ]; then
|
|
|
70da00 |
%{_datadir}/%{name}/provider-register.sh -d \
|
|
|
70da00 |
-r %{_datadir}/%{name}/*.registration \
|
|
|
70da00 |
-m %{_datadir}/%{name}/*.mof \
|
|
|
70da00 |
> /dev/null 2>&1 || :;
|
|
|
70da00 |
fi
|
|
|
70da00 |
|
|
|
70da00 |
%post
|
|
|
70da00 |
/sbin/ldconfig
|
|
|
70da00 |
# tog-pegasus needs some schemes registered first
|
|
|
70da00 |
if [ -x /usr/bin/peg-loadmof.sh ]; then
|
|
|
70da00 |
peg-loadmof.sh -n root/cimv2 /usr/share/mof/cim-current/*/{%{PEGASUS_MOF}}.mof > /dev/null 2>&1 || :;
|
|
|
70da00 |
/sbin/service tog-pegasus try-restart > /dev/null 2>&1 || :;
|
|
|
70da00 |
fi
|
|
|
70da00 |
if [ $1 -ge 1 ]; then
|
|
|
70da00 |
# Register Schema and Provider - this is higly provider specific
|
|
|
70da00 |
%{_datadir}/%{name}/provider-register.sh \
|
|
|
70da00 |
-r %{_datadir}/%{name}/*.registration \
|
|
|
70da00 |
-m %{_datadir}/%{name}/*.mof \
|
|
|
70da00 |
> /dev/null 2>&1 || :;
|
|
|
70da00 |
fi;
|
|
|
70da00 |
|
|
|
70da00 |
%preun
|
|
|
70da00 |
# Deregister only if not upgrading
|
|
|
70da00 |
if [ $1 -eq 0 ]; then
|
|
|
70da00 |
%{_datadir}/%{name}/provider-register.sh -d \
|
|
|
70da00 |
-r %{_datadir}/%{name}/*.registration \
|
|
|
70da00 |
-m %{_datadir}/%{name}/*.mof \
|
|
|
70da00 |
> /dev/null 2>&1 || :;
|
|
|
70da00 |
fi
|
|
|
70da00 |
|
|
|
70da00 |
%postun -p /sbin/ldconfig
|
|
|
70da00 |
|
|
|
70da00 |
%changelog
|
|
|
70da00 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.0-10
|
|
|
70da00 |
- Mass rebuild 2014-01-24
|
|
|
70da00 |
|
|
|
70da00 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.0-9
|
|
|
70da00 |
- Mass rebuild 2013-12-27
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Aug 14 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.1.0-8
|
|
|
70da00 |
- Use Pegasus root/interop instead of root/PG_Interop
|
|
|
70da00 |
|
|
|
70da00 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-7
|
|
|
70da00 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Nov 07 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.1.0-6
|
|
|
70da00 |
- Fix Source0 URL
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Sep 05 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.1.0-5
|
|
|
70da00 |
- Fix issues found by fedora-review utility in the spec file
|
|
|
70da00 |
|
|
|
70da00 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
|
|
|
70da00 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
70da00 |
|
|
|
70da00 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
70da00 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
70da00 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Oct 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.1.0-1
|
|
|
70da00 |
- Update to sblim-cmpi-nfsv4-1.1.0
|
|
|
70da00 |
- Remove CIMOM dependencies
|
|
|
70da00 |
|
|
|
70da00 |
* Wed Oct 14 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.0.12-1
|
|
|
70da00 |
- Initial support
|