]> git.pld-linux.org Git - packages/trousers.git/blob - trousers.spec
bdce206a3df01de2c8d12fb5ea31f8d83274aa24
[packages/trousers.git] / trousers.spec
1 # TODO: tcsd init script (see dist/fedora/fedora.initrd.tcsd)
2 Summary:        TrouSerS - The open-source TCG Software Stack
3 Summary(pl.UTF-8):      TrouSerS - programowy stos TCG o otwartych źródłach
4 Name:           trousers
5 Version:        0.3.4
6 Release:        1
7 License:        CPL v1.0
8 Group:          Applications/System
9 Source0:        http://dl.sourceforge.net/trousers/%{name}-%{version}.tar.gz
10 # Source0-md5:  72235fd6d2bb35b898a654429946f2e6
11 Patch0:         %{name}-nouser.patch
12 URL:            http://trousers.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake >= 1.6
15 BuildRequires:  gtk+2-devel >= 1:2.0.0
16 BuildRequires:  libtool
17 BuildRequires:  openssl-devel
18 BuildRequires:  pkgconfig
19 Requires(pre):  /bin/id
20 Requires(pre):  /usr/bin/getgid
21 Requires(pre):  /usr/sbin/groupadd
22 Requires(pre):  /usr/sbin/useradd
23 Requires(postun):       /usr/sbin/groupdel
24 Requires(postun):       /usr/sbin/userdel
25 Requires:       %{name}-libs = %{version}-%{release}
26 Provides:       group(tss)
27 Provides:       user(tss)
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 TrouSerS is an open-source TCG Software Stack (TSS), released under
32 the Common Public License. TrouSerS aims to be compliant with the 1.1b
33 and 1.2 TSS specifications available from the Trusted Computing Group
34 website: <http://www.trustedcomputinggroup.org/>.
35
36 %description -l pl.UTF-8
37 TrouSerS to programowy stos TCG (TSS, czyli TCG Software Stack) o
38 otwartych źródłach wydany na licencji Common Public License. Celem
39 projektu jest zgodność ze specyfikacjami TSS 1.1b i 1.2 dostępnymi na
40 stronie Trusted Computing Group:
41 <http://www.trustedcomputinggroup.org/>.
42
43 %package libs
44 Summary:        TrouSerS shared library
45 Summary(pl.UTF-8):      Biblioteka współdzielona TrouSerS
46 Group:          Libraries
47
48 %description libs
49 TrouSerS shared library.
50
51 %description libs -l pl.UTF-8
52 Biblioteka współdzielona TrouSerS.
53
54 %package devel
55 Summary:        Header files for TrouSerS library
56 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki TrouSerS
57 Group:          Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59 Requires:       gtk+2-devel >= 1:2.0.0
60 Requires:       openssl-devel
61
62 %description devel
63 Header files for TrouSerS library.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki TrouSerS.
67
68 %package static
69 Summary:        Static TrouSerS library
70 Summary(pl.UTF-8):      Statyczna biblioteka TrouSerS
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static TrouSerS library.
76
77 %description static -l pl.UTF-8
78 Statyczna biblioteka TrouSerS.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83 sed -i -e 's#-Werror##g' configure*
84
85 %build
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__automake}
90 %configure \
91         --enable-static
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %pre
104 %groupadd -g 139 tss
105 %useradd -u 139 -d %{_localstatedir}/lib/tpm -s /bin/false -c "TrouSerS user" -g tss tss
106
107 %postun
108 if [ "$1" = "0" ]; then
109         %userremove tss
110         %groupremove tss
111 fi
112
113 %post   libs -p /sbin/ldconfig
114 %postun libs -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog LICENSE NICETOHAVES README README.selinux TODO
119 %attr(755,root,root) %{_sbindir}/tcsd
120 %attr(640,root,tss) %{_sysconfdir}/tcsd.conf
121 %attr(700,tss,tss) %{_localstatedir}/lib/tpm
122 %{_mandir}/man5/tcsd.conf.5*
123 %{_mandir}/man8/tcsd.8*
124
125 %files libs
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libtspi.so.*.*.*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %doc doc/{LTC-TSS_LLD_08_r2.pdf,TSS_programming_SNAFUs.txt}
132 %attr(755,root,root) %{_libdir}/libtspi.so
133 %{_libdir}/libtspi.la
134 %{_libdir}/libtddl.a
135 %{_includedir}/trousers
136 %{_includedir}/tss
137 %{_mandir}/man3/Tspi_*.3*
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libtspi.a
This page took 0.130836 seconds and 2 git commands to generate.