Blame SPECS/nuxwdog.spec

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