Blame SPECS/nuxwdog.spec

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