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