]> git.pld-linux.org Git - packages/trousers.git/blobdiff - trousers.spec
rebuild with openssl 3.0.0
[packages/trousers.git] / trousers.spec
index 1132184607799a3b365ffdbd47b3652767a2fa0c..25e1d9cf57d7171baa7e016a11e8f0514d9bc27a 100644 (file)
@@ -6,20 +6,22 @@
 Summary:       TrouSerS - The open-source TCG Software Stack
 Summary(pl.UTF-8):     TrouSerS - programowy stos TCG o otwartych źródłach
 Name:          trousers
-Version:       0.3.9
-Release:       1
-License:       CPL v1.0
+Version:       0.3.15
+Release:       2
+License:       BSD
 Group:         Applications/System
 Source0:       http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz
-# Source0-md5: 1322030eb2540ea0640cfe471b077f32
-Patch0:                %{name}-nouser.patch
+# Source0-md5: eb1b02e98c7d360749b9076196db3f0f
+Source1:       tcsd.service
+Patch0:                no_inline.patch
 URL:           http://trousers.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1.6
 %{?with_gtk:BuildRequires:     gtk+2-devel >= 1:2.0.0}
 BuildRequires: libtool
 BuildRequires: openssl-devel
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.644
 BuildRequires: sed >= 4.0
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
@@ -28,6 +30,7 @@ Requires(pre):        /usr/sbin/useradd
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      systemd-units >= 38
 Provides:      group(tss)
 Provides:      user(tss)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -86,9 +89,6 @@ Statyczna biblioteka TrouSerS.
 %setup -q
 %patch0 -p1
 
-# there is some unused variable causing warning
-sed -i -e 's/-Werror //' configure.in
-
 %build
 %{__libtoolize}
 %{__aclocal}
@@ -96,15 +96,19 @@ sed -i -e 's/-Werror //' configure.in
 %{__automake}
 %configure \
        --enable-static \
-       %{?with_gtk:--with-gui=gtk}
+       %{?with_gtk:--with-gui=gtk} \
+       --disable-usercheck
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{systemdunitdir}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/tcsd.service
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -112,11 +116,18 @@ rm -rf $RPM_BUILD_ROOT
 %groupadd -g 139 tss
 %useradd -u 139 -d %{_localstatedir}/lib/tpm -s /bin/false -c "TrouSerS user" -g tss tss
 
+%post
+%systemd_post tcsd.service
+
+%preun
+%systemd_preun tcsd.service
+
 %postun
 if [ "$1" = "0" ]; then
        %userremove tss
        %groupremove tss
 fi
+%systemd_reload
 
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
@@ -129,6 +140,7 @@ fi
 %attr(700,tss,tss) %{_localstatedir}/lib/tpm
 %{_mandir}/man5/tcsd.conf.5*
 %{_mandir}/man8/tcsd.8*
+%{systemdunitdir}/tcsd.service
 
 %files libs
 %defattr(644,root,root,755)
This page took 0.089406 seconds and 4 git commands to generate.