[openpts/f15/master] committed files in fedora and did initial build

avesh agarwal avesh at fedoraproject.org
Fri Apr 15 15:57:31 UTC 2011


commit f85aeee46c5b2306733cd17c68df0d806a57a7a0
Author: Avesh Agarwal <avagarwa at redhat.com>
Date:   Fri Apr 15 11:57:36 2011 -0400

    committed files in fedora and did initial build

 openpts.spec |  109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/openpts.spec b/openpts.spec
new file mode 100644
index 0000000..1728b2b
--- /dev/null
+++ b/openpts.spec
@@ -0,0 +1,109 @@
+
+Summary: TCG Platform Trust Service (PTS) for embedded devices
+Name: openpts
+Version: 0.2.3
+
+Release: 3%{?dist}
+License: CPL
+Url: http://sourceforge.jp/projects/openpts/
+Source0: http://sourceforge.jp/projects/openpts/downloads/51233/openpts-%{version}.tgz
+
+Group: Applications/System
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  autoconf automake libtool trousers-devel openssl-devel 
+BuildRequires: libxml2-devel libuuid-devel gettext-devel
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
+Requires(postun): initscripts
+
+# Compile errors arising with gcc-4.6
+Patch1: compile-errors.patch
+# To resolve inconsistency in its file name in /var/lock/subsys/
+Patch2: init-script.patch
+
+%description
+Open Platform Trust Services is a proof-of-concept 
+and reference implementation of Platform Trust 
+Services (PTS) which is defined by the Trusted 
+Computing Group (TCG).
+
+%prep
+%setup -q -n openpts-%{version}
+
+%patch1 -p1
+%patch2 -p1
+
+%build
+sh bootstrap.sh
+%configure --disable-static --prefix=/usr --libdir=%{_libdir} --with-tss --with-aide
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+#mkdir -p ${RPM_BUILD_ROOT}
+mkdir -p ${RPM_BUILD_ROOT}/%{_initddir}
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p dist/fedora.initrd.ptscd ${RPM_BUILD_ROOT}/%{_initddir}/ptscd
+cp -p dist/ptscd.conf.in ${RPM_BUILD_ROOT}/%{_sysconfdir}/ptscd.conf
+
+mkdir -p ${RPM_BUILD_ROOT}/%{_prefix}/share/openpts/models
+cp -p models/*.uml ${RPM_BUILD_ROOT}/%{_prefix}/share/openpts/models/
+mkdir -p $RPM_BUILD_ROOT/%{_var}/lib/openpts
+
+make install DESTDIR=${RPM_BUILD_ROOT} INSTALL='install -p'
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc LICENSE README ChangeLog doc/*.eps
+%attr(755, root, root) %{_sbindir}/ptscd
+%attr(755, root, root) %{_bindir}/openpts
+%attr(755, root, root) %{_bindir}/uml2dot
+%attr(755, root, root) %{_bindir}/iml2aide
+%attr(755, root, root) %{_bindir}/tpm_createkey
+%attr(755, root, root) %{_bindir}/iml2text
+%attr(755, root, root) %{_bindir}/ir2text
+%attr(755, root, root) %{_bindir}/rm2dot
+%{_prefix}/share/openpts/models/*uml
+%attr(755,root,root) %dir %{_prefix}/share/openpts
+%attr(755,root,root) %dir %{_prefix}/share/openpts/models
+%attr(755,root,root) %dir %{_var}/lib/openpts
+%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/ptscd.conf
+# Fedora
+%{_initddir}/ptscd
+
+%preun
+if [ $1 = 0 ]; then
+        /sbin/service ptscd stop || :
+        /sbin/chkconfig --del ptscd
+fi
+
+%post
+/sbin/chkconfig --add ptscd || :
+
+%postun
+if [ $1 -ge 1 ] ; then
+        /sbin/service ptscd condrestart 2>&1 > /dev/null || :
+fi
+
+%changelog
+* Fri Apr 15 2011 Avesh Agarwal <avagarwa at redhat.com> - 0.2.3-3
+- committed files in fedora and did initial build
+
+* Wed Apr 13 2011 Avesh Agarwal <avagarwa at redhat.com> - 0.2.3-2
+- Fixed spec file issues found during package review 
+  https://bugzilla.redhat.com/show_bug.cgi?id=691818
+
+* Mon Mar 28 2011 Avesh Agarwal <avagarwa at redhat.com> - 0.2.3-1
+- Initial fedora packaging
+- Added patch for fixing compile errors
+- fixed init script inconsistency issue related 
+  to its /var/lock/subsys file


More information about the scm-commits mailing list