Blame SPECS/nuxwdog.spec

a7ea87
Name:           nuxwdog
a7ea87
Version:        1.0.1
a7ea87
Release:        10%{?dist}
a7ea87
Summary:        Watchdog server to start and stop processes, and prompt for passwords
a7ea87
# The entire source code is LGPLv2 except for the perl module, which is GPL+ or Artistic
a7ea87
License:        LGPLv2 and (GPL+ or Artistic)
a7ea87
Group:          System Environment/Libraries
a7ea87
URL:            http://www.redhat.com/certificate_system
a7ea87
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a7ea87
a7ea87
BuildRequires:  ant
a7ea87
BuildRequires:  java-devel >= 1:1.6.0
a7ea87
BuildRequires:  jpackage-utils
a7ea87
BuildRequires:  nspr-devel
a7ea87
BuildRequires:  nss-devel
a7ea87
BuildRequires:  pkgconfig
a7ea87
BuildRequires:  libselinux-devel
a7ea87
BuildRequires:  perl(ExtUtils::MakeMaker)
a7ea87
BuildRequires:  keyutils-libs-devel
a7ea87
a7ea87
Requires:       nss
a7ea87
Requires:       keyutils-libs
a7ea87
Obsoletes:      nuxwdog-client
a7ea87
Obsoletes:      nuxwdog-client-perl
a7ea87
a7ea87
Source0:        https://fedorahosted.org/released/nuxwdog/%{name}-%{version}.tar.gz
a7ea87
a7ea87
# Note: there is an rpmlint warning about Nuxwdogclient.so being a private-shared-object-provide
a7ea87
# This would ordinarily be fixed by calling the macro perl_default_filter, but 
a7ea87
# this disables rpms file coloring and makes the package fail multilib tests.
a7ea87
a7ea87
%if 0%{?rhel}
a7ea87
ExcludeArch: ppc ppc64 s390 s390x
a7ea87
%endif
a7ea87
a7ea87
%description
a7ea87
The nuxwdog package supplies the nuxwdog watchdog daemon, 
a7ea87
used to start,stop, prompt for passwords and monitor processes.
a7ea87
It also contains C/C++ and Perl client code to allow clients to
a7ea87
interact with the nuxwdog watchdog daemon.
a7ea87
a7ea87
%package devel
a7ea87
Group:        Development/Libraries
a7ea87
Summary:      Development files for the Nuxwdog Watchdog
a7ea87
Requires:     %{name} = %{version}-%{release}
a7ea87
Obsoletes:    nuxwdog-client-devel
a7ea87
a7ea87
%description devel
a7ea87
The nuxwdog-devel package contains the header files needed to build clients
a7ea87
that call WatchdogClient functions, so that clients can interact with the
a7ea87
nuxwdog watchdog server.
a7ea87
a7ea87
%package client-java
a7ea87
Group:        System Environment/Libraries
a7ea87
Summary:      Nuxwdog Watchdog client JNI Package
a7ea87
Requires:     java >= 1:1.6.0
a7ea87
Requires:     jpackage-utils
a7ea87
Requires:     %{name} = %{version}-%{release}
a7ea87
a7ea87
%description client-java
a7ea87
The nuxwdog-client-java package contains a JNI interface to the nuxwdog 
a7ea87
client code, so that Java clients can interact with the nuxwdog watchdog 
a7ea87
server.
a7ea87
a7ea87
a7ea87
%prep
a7ea87
%setup -q -n %{name}-%{version}
a7ea87
a7ea87
%build
a7ea87
ant \
a7ea87
    -Dproduct.ui.flavor.prefix="" \
a7ea87
    -Dproduct.prefix="" \
a7ea87
    -Dproduct="nuxwdog" \
a7ea87
    -Dversion="%{version}"
a7ea87
%configure  --disable-static  \
a7ea87
%ifarch ppc64 s390x sparc64 x86_64
a7ea87
    --enable-64bit \
a7ea87
%endif
a7ea87
    --libdir=%{_libdir}
a7ea87
make
a7ea87
a7ea87
%install
a7ea87
rm -rf %{buildroot}
a7ea87
make install DESTDIR=%{buildroot} INSTALL="install -p"
a7ea87
a7ea87
find %{buildroot} -name '*.la' -exec rm -f {} ';'
a7ea87
a7ea87
mkdir -p  %{buildroot}%{_docdir}
a7ea87
mv %{buildroot}%{_usr}/doc %{buildroot}%{_docdir}/%{name}-%{version}
a7ea87
a7ea87
find %{buildroot}/%{perl_vendorarch} -name .packlist |xargs rm -f {}
a7ea87
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
a7ea87
find %{buildroot} -name "perllocal.pod" |xargs rm -f {}
a7ea87
%{_fixperms} %{buildroot}/%{perl_vendorarch}/*
a7ea87
a7ea87
mkdir -p %{buildroot}/%{_libdir}/nuxwdog-jni
a7ea87
mv %{buildroot}/%{_libdir}/libnuxwdog-jni.so  %{buildroot}/%{_libdir}/nuxwdog-jni
a7ea87
mv %{buildroot}%{_usr}/jars/nuxwdog.jar %{buildroot}/%{_libdir}/nuxwdog-jni/nuxwdog-%{version}.jar
a7ea87
mkdir -p %{buildroot}%{_jnidir}
a7ea87
cd %{buildroot}/%{_jnidir}
a7ea87
ln -s %{_libdir}/nuxwdog-jni/nuxwdog-%{version}.jar nuxwdog.jar
a7ea87
rm -rf %{buildroot}%{_usr}/jars
a7ea87
rm -rf %{buildroot}%{_usr}/doc
a7ea87
a7ea87
%post -p /sbin/ldconfig 
a7ea87
a7ea87
%postun -p /sbin/ldconfig
a7ea87
a7ea87
%clean
a7ea87
rm -rf %{buildroot}
a7ea87
a7ea87
%files 
a7ea87
%defattr(-,root,root,-)
a7ea87
%doc LICENSE
a7ea87
%{_bindir}/*
a7ea87
%{_libdir}/libnuxwdog.so.*
a7ea87
%{_mandir}/man3/Nuxwdogclient.3pm*
a7ea87
%{_mandir}/man1/nuxwdog.1*
a7ea87
%{perl_vendorarch}/*
a7ea87
%exclude %dir %{perl_vendorarch}/auto/
a7ea87
a7ea87
%files devel
a7ea87
%defattr(-,root,root,-)
a7ea87
%doc 
a7ea87
%{_includedir}/nuxwdog/
a7ea87
%{_libdir}/libnuxwdog.so
a7ea87
a7ea87
%files client-java
a7ea87
%defattr(-,root,root,-)
a7ea87
%doc
a7ea87
%{_libdir}/nuxwdog-jni/
a7ea87
%{_jnidir}/*
a7ea87
a7ea87
%changelog
a7ea87
* Tue Sep 30 2014 Ade Lee <alee@redhat.com> - 1.0.1-10
a7ea87
- Resolves: rhbz#1117072 -  ppc64le is missing from ExcludeArch
a7ea87
- reverted the previous change.  ppc64le now removed from ExcludeArch
a7ea87
a7ea87
* Wed Aug 13 2014 Ade Lee <alee@redhat.com> - 1.0.1-9
a7ea87
- Resolves: rhbz#1117072 -  ppc64le is missing from ExcludeArch
a7ea87
a7ea87
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.1-8
a7ea87
- Mass rebuild 2013-12-27
a7ea87
a7ea87
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
a7ea87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a7ea87
a7ea87
* Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.1-6
a7ea87
- revbump after jnidir change
a7ea87
a7ea87
* Wed Dec 12 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.1-5
a7ea87
- Rebuilt for jpackage-utils changes
a7ea87
a7ea87
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
a7ea87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a7ea87
a7ea87
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
a7ea87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a7ea87
a7ea87
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
a7ea87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a7ea87
a7ea87
* Fri Jan 28 2011 Ade Lee <alee@redhat.com> 1.0.1-1
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL.
a7ea87
- fix file coloring, aliasing problem
a7ea87
a7ea87
* Tue Jan 4 2011 Ade Lee <alee@redhat.com> 1.0.0-16
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL.
a7ea87
- fix build problem
a7ea87
a7ea87
* Tue Jan 4 2011 Ade Lee <alee@redhat.com> 1.0.0-15
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL.
a7ea87
- add needed build requires, requires
a7ea87
a7ea87
* Thu Dec 23 2010 Ade Lee <alee@redhat.com> 1.0.0-14
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL.
a7ea87
- Remove old encryption scheme
a7ea87
- Store passwords in kernel keyring
a7ea87
a7ea87
* Wed Dec 16 2010 Ade Lee <alee@redhat.com> 1.0.0-13
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL.
a7ea87
a7ea87
* Wed Dec 15 2010 Ade Lee <alee@redhat.com> 1.0.0-12
a7ea87
- Resolves: #643546 - [RFE] Add nuxwdog to RHEL. 
a7ea87
a7ea87
* Wed Dec 15 2010 Ade Lee <alee@redhat.com> 1.0.0-11
a7ea87
- Exclude arches for which there is no java
a7ea87
a7ea87
* Wed Dec 8 2010 Ade Lee <alee@redhat.com> 1.0.0-10
a7ea87
- Fixed copyright notices
a7ea87
- Removed versioning for requires
a7ea87
- Fixed library reference in perl build
a7ea87
a7ea87
* Tue Dec 7 2010 Ade Lee <alee@redhat.com> 1.0.0-9
a7ea87
- Fixed macros and copyrights
a7ea87
- Copyrights fixed for perl modules
a7ea87
a7ea87
* Fri Dec 3 2010 Ade Lee <alee@redhat.com> 1.0.0-8
a7ea87
- Spec file modified as per fedora review
a7ea87
- Copyrights fixed for perl modules
a7ea87
a7ea87
* Wed Dec 1 2010 Ade Lee <alee@redhat.com> 1.0.0-7
a7ea87
- Added missing build dependency on MakeMaker
a7ea87
- Removed extra config flags
a7ea87
a7ea87
* Tue Nov 30 2010 Ade Lee <alee@redhat.com> 1.0.0-6
a7ea87
- Restructure rpms
a7ea87
- Fix rpmlint issues
a7ea87
a7ea87
* Fri Sep 10 2010 Ade Lee <alee@redhat.com> 1.0.0-5
a7ea87
- Bumped version to match brew builds
a7ea87
- Bugzilla Bug 630115 - added printMessage() method
a7ea87
 
a7ea87
* Thu Feb 11 2010 Ade Lee <alee@redhat.com> 1.0.0-2
a7ea87
- Initial version in separated repo.
a7ea87
a7ea87
* Tue Dec 1 2009 Ade Lee <alee@redhat.com> 1.0.0-1
a7ea87
- Initial open source version based upon Red Hat
a7ea87
  Certificate System (RHCS) 6.1 uxwdog code.
a7ea87