[pki-tps] Release Candidate 1
Ade Lee
vakwetu at fedoraproject.org
Fri Dec 7 22:48:58 UTC 2012
commit 12591b4ff83c762d5ed1132d04f2947c1e29d975
Author: Ade Lee <alee at redhat.com>
Date: Fri Dec 7 17:48:56 2012 -0500
Release Candidate 1
.gitignore | 1 +
pki-tps.spec | 66 ++++++++--------------------------------------------------
sources | 2 +-
3 files changed, 11 insertions(+), 58 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a6d1aaf..1e9732f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ pki-tps-1.3.2.tar.gz
/pki-tps-10.0.0.b1.tar.gz
/pki-tps-10.0.0.b2.tar.gz
/pki-tps-10.0.0.b3.tar.gz
+/pki-tps-10.0.0.tar.gz
diff --git a/pki-tps.spec b/pki-tps.spec
index ac1f4dc..9eeb241 100644
--- a/pki-tps.spec
+++ b/pki-tps.spec
@@ -1,13 +1,6 @@
-# for a pre-release, define the prerel field e.g. .a1 .rc2 - comment out for official release
-# also remove the space between % and global - this space is needed because
-# fedpkg verrel stupidly ignores comment lines
-%global prerel .b3
-# also need the relprefix field for a pre-release e.g. .0 - also comment out for official release
-%global relprefix 0.
-
Name: pki-tps
Version: 10.0.0
-Release: %{?relprefix}11%{?prerel}%{?dist}
+Release: 1%{?dist}
Summary: Certificate System - Token Processing System
URL: http://pki.fedoraproject.org/
License: LGPLv2
@@ -15,12 +8,7 @@ Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# specify '_unitdir' macro for platforms that don't use 'systemd'
-%if 0%{?rhel} || 0%{?fedora} < 16
-%define _unitdir /lib/systemd/system
-%endif
-
-BuildRequires: cmake
+BuildRequires: cmake >= 2.8.9-1
BuildRequires: apr-devel
BuildRequires: apr-util-devel
BuildRequires: cyrus-sasl-devel
@@ -41,17 +29,9 @@ Requires: perl-Mozilla-LDAP
Requires: pki-server >= 10.0.0
Requires: pki-tps-theme >= 10.0.0
-%if 0%{?fedora} >= 16
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
-%else
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-Requires: initscripts
-%endif
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}%{?prerel}.tar.gz
@@ -160,7 +140,6 @@ cd %{buildroot}/%{_datadir}/pki/tps/docroot
mkdir %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo %{_libdir}/tps > %{buildroot}%{_sysconfdir}/ld.so.conf.d/tps-%{_arch}.conf
-%if 0%{?fedora} >= 15
# Details:
#
# * https://fedoraproject.org/wiki/Features/var-run-tmpfs
@@ -172,36 +151,9 @@ echo "D /var/lock/pki 0755 root root -" > %{buildroot}%{_sysconfdir}/tmpfil
echo "D /var/lock/pki/tps 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf
echo "D /var/run/pki 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf
echo "D /var/run/pki/tps 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf
-%endif
-%if 0%{?fedora} >= 16
%{__rm} %{buildroot}%{_initrddir}/pki-tpsd
-%else
-%{__rm} -rf %{buildroot}%{_sysconfdir}/systemd/system/pki-tpsd.target.wants
-%{__rm} -rf %{buildroot}%{_unitdir}
-%endif
-
-%if 0%{?rhel} || 0%{?fedora} < 16
-%post
-/sbin/ldconfig
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-tpsd || :
-
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-tpsd stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-tpsd || :
-fi
-
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-tpsd condrestart >/dev/null 2>&1 || :
-fi
-
-%else
%post
# Attempt to update ALL old "TPS" instances to "systemd"
if [ -d /etc/sysconfig/pki/tps ]; then
@@ -240,18 +192,13 @@ fi
if [ "$1" -ge "1" ] ; then
/bin/systemctl try-restart pki-tpsd.target >/dev/null 2>&1 || :
fi
-%endif
%files
%defattr(-,root,root,-)
%doc base/tps/LICENSE
-%if 0%{?fedora} >= 16
%dir %{_sysconfdir}/systemd/system/pki-tpsd.target.wants
%{_unitdir}/pki-tpsd at .service
%{_unitdir}/pki-tpsd.target
-%else
-%{_initrddir}/pki-tpsd
-%endif
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/tps-%{_arch}.conf
%{_bindir}/tpsclient
%{_libdir}/httpd/modules/*
@@ -267,17 +214,22 @@ fi
%{_datadir}/pki/tps/setup/
%dir %{_localstatedir}/lock/pki/tps
%dir %{_localstatedir}/run/pki/tps
-%if 0%{?fedora} >= 15
# Details:
#
# * https://fedoraproject.org/wiki/Features/var-run-tmpfs
# * https://fedoraproject.org/wiki/Tmpfiles.d_packaging_draft
#
%config(noreplace) %{_sysconfdir}/tmpfiles.d/pki-tps.conf
-%endif
%changelog
+* Fri Dec 7 2012 Ade Lee <alee at redhat.com> 10.0.0-1
+- Update to official release for rc1
+
+* Tue Nov 20 2012 Ade Lee <alee at redhat.com> 10.0.0-0.12.b3
+- Update spec fiel to support fedora >= 17 and rhel 7+
+- Update cmake version
+
* Mon Nov 12 2012 Ade Lee <alee at redhat.com> 10.0.0-0.11.b3
- Update release to b3
diff --git a/sources b/sources
index 7623e0c..3fda06f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-162b26de12c13c9c1d7089ebc32a4396 pki-tps-10.0.0.b3.tar.gz
+62519eec3b6e4a32a77f7b5b38c0dbe7 pki-tps-10.0.0.tar.gz
More information about the scm-commits
mailing list