34bae01
################################################################################
Kevin Wright 1a2cae0
Name:           nuxwdog
34bae01
################################################################################
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
34bae01
URL:            http://www.dogtagpki.org/wiki/Nuxwdog
Kevin Wright 1a2cae0
License:        LGPLv2 and (GPL+ or Artistic)
34bae01
34bae01
Version:        1.0.5
7f9f513
Release:        3%{?_timestamp}%{?_commit_id}%{?dist}
34bae01
# global         _phase -a1
7224e17
7224e17
# For epel5 and fc < 20 compatibility
7224e17
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Kevin Wright 1a2cae0
34bae01
# autosetup
34bae01
BuildRequires:  git
34bae01
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
c501e5f
BuildRequires:  perl-devel
7224e17
BuildRequires:  perl-generators
Kevin Wright 1a2cae0
BuildRequires:  perl(ExtUtils::MakeMaker)
Kevin Wright af89f1d
BuildRequires:  keyutils-libs-devel
99b08f6
BuildRequires:  gcc-c++
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
Requires:       nss
Kevin Wright af89f1d
Requires:       keyutils-libs
8cd8b4f
Obsoletes:      nuxwdog-client
Kevin Wright 1a2cae0
3ca3b3d
Source0:        https://github.com/dogtagpki/%{name}/archive/v%{version}/%{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 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
7224e17
Requires:     java-headless >= 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
7224e17
%package client-perl
7224e17
Summary:      Nuxwdog Watchdog client perl bindings
7224e17
Requires:     perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
7224e17
Requires:     %{name} = %{version}-%{release}
7224e17
7224e17
%description client-perl
7224e17
The nuxwdog-client-perl package contains a perl interface to nuxwdog.
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
%prep
34bae01
%autosetup -n %{name}-%{version}%{?_phase} -p 1 -S git
6eb0a56
7224e17
sed -i \
7224e17
  -e 's,^NUXWDOGCLIENT_DOCUMENTATION=${NUXWDOGCLIENT_BUILD_PREFIX}/.*$,NUXWDOGCLIENT_DOCUMENTATION=${NUXWDOGCLIENT_BUILD_PREFIX}%{_pkgdocdir},' setup_package
7224e17
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  \
7224e17
%if 0%{?__isa_bits} == 64
Kevin Wright 1a2cae0
    --enable-64bit \
Kevin Wright 1a2cae0
%endif
7224e17
    --docdir=%{_pkgdocdir}
7224e17
make licensedir=%{_pkgdocdir}
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
%install
7224e17
make install DESTDIR=%{buildroot} INSTALL="install -p" licensedir=%{_pkgdocdir}
Kevin Wright 1a2cae0
find %{buildroot} -name '*.la' -exec rm -f {} ';'
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
Kevin Wright 1a2cae0
%post -p /sbin/ldconfig 
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
%postun -p /sbin/ldconfig
Kevin Wright 1a2cae0
7224e17
%files
7224e17
%_pkgdocdir
Kevin Wright 1a2cae0
%{_bindir}/*
Kevin Wright 1a2cae0
%{_libdir}/libnuxwdog.so.*
Kevin Wright 1a2cae0
%{_mandir}/man1/nuxwdog.1*
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
%files devel
Kevin Wright 1a2cae0
%{_includedir}/nuxwdog/
Kevin Wright 1a2cae0
%{_libdir}/libnuxwdog.so
Kevin Wright 1a2cae0
Kevin Wright 1a2cae0
%files client-java
Kevin Wright 1a2cae0
%{_libdir}/nuxwdog-jni/
Kevin Wright 1a2cae0
%{_jnidir}/*
Kevin Wright 1a2cae0
7224e17
%files client-perl
7224e17
%{perl_vendorarch}/Nuxwdogclient.pm
7224e17
%{perl_vendorarch}/auto/Nuxwdogclient
7224e17
%{_mandir}/man3/Nuxwdogclient.3pm*
7224e17
Kevin Wright 1a2cae0
%changelog
7f9f513
* Fri Nov 30 2018 Dogtag PKI Team (pki-devel@redhat.com) 1.0.5-3
7f9f513
- Rebuild for submission to bodhi since 1.0.5-2 didn't make it to stable
7f9f513
15f5d65
* Wed Aug 22 2018 Alexander Bokovoy <abokovoy@redhat.com> - 1.0.5-2
15f5d65
- Remove obsolete ExcludeArch statement for RHEL builds
34bae01
- Syncing with upstream changes
15f5d65
3ca3b3d
* Thu Aug 16 2018 Dogtag PKI Team (pki-devel@redhat.com) 1.0.5-1
3ca3b3d
- Fix memory bug due to insufficient memory allocation
3ca3b3d
7224e17
* Tue Jul 24 2018 Dogtag PKI Team (pki-devel@redhat.com) 1.0.4-2
7224e17
- Sync up upstream and restore changes
7224e17
99b08f6
* Mon Jul 23 2018 Dogtag PKI Team (pki-devel@redhat.com) 1.0.4-1
99b08f6
- Resolves: 1605267 - add gcc-c++ and perl-devel deps
daf270f
7224e17
- * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-16
7224e17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7224e17
7224e17
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.3-15
7224e17
- Perl 5.28 rebuild
7224e17
7224e17
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-14
7224e17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7224e17
7224e17
* Wed Jan 17 2018 Ade Lee <alee@redhat.com> 1.0.3-13
7224e17
- Resolves: 1534030 - add option to set process uid
7224e17
8cd8b4f
* Thu Nov 2 2017 Ade Lee <alee@redhat.com> 1.0.3-12
8cd8b4f
- nuxwdog Pagure Issue #2 - nuxwdog is cutting off long ExeArgs resulting
8cd8b4f
  in PKI service startup failure
8cd8b4f
1beb593
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-11
1beb593
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1beb593
dc9c1b7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-10
dc9c1b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dc9c1b7
c17d2c6
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.3-9
c17d2c6
- Perl 5.26 rebuild
c17d2c6
2617b2c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-8
2617b2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2617b2c
d2760f3
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.3-7
d2760f3
- Perl 5.24 rebuild
d2760f3
4fc4658
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-6
4fc4658
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4fc4658
Marcin Juszkiewicz 8c3ad1e
* Mon Nov 30 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.3-5
Marcin Juszkiewicz 8c3ad1e
- Use __isa_bits macro instead of list of 64-bit architectures - rhbz#1262388
Marcin Juszkiewicz 8c3ad1e
- drop duplicated libdir in configure call
Marcin Juszkiewicz 8c3ad1e
2744ddd
* Wed Nov 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.3-4
2744ddd
- Split out perl bindings into subpackage
2744ddd
3a36ee0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
3a36ee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3a36ee0
41cce2a
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.3-2
41cce2a
- Perl 5.22 rebuild
41cce2a
38510c8
* Sun May 10 2015 Ade Lee <alee@redhat.com> 1.0.3-1
38510c8
- Add systemd support
38510c8
9b22c5c
* Wed Apr 22 2015 Ade Lee <alee@redhat.com> 1.0.2-1
9b22c5c
- Allow passwords to be retrieved post-init phase
9b22c5c
- Fix null termination issue on returned stored passwords
9b22c5c
9807c68
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.1-15
9807c68
- Perl 5.20 rebuild
9807c68
8dafc7c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-14
8dafc7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8dafc7c
6c2354e
* Wed Aug 13 2014 Ade Lee <alee@redhat.com> - 1.0.1-13
6c2354e
- Exclude ppcle and ppc64le for rhel build
6c2354e
6eb0a56
* Mon Jun 30 2014 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 1.0.1-12
6eb0a56
- Fix UnversionedDocDir-installation issues (FTBFS RHBZ #1106553, RHBZ #992385).
6eb0a56
- Let nuxwdog package require perl(:MODULE_COMPAT_..).
6eb0a56
- Fix bogus %%changelog date.
6eb0a56
f23b6bd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-11
f23b6bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f23b6bd
c23ca1b
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.0.1-10
c23ca1b
- Use Requires: java-headless rebuild (#1067528)
c23ca1b
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
6eb0a56
* Thu 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
3ca3b3d
  Certificate System (RHCS) 6.1 uxwdog code.