Logoj0ke.net Open Build Service > Projects > multimedia > libpki > Changes
Sign Up | Log In

Changes of Revision 9

[-] Changed libpki.spec
x
 
1
@@ -1,13 +1,18 @@
2
 #!BuildIgnore:          post-build-checks
3
-Name:      libpki
4
+%define        lib libpki
5
+%define        ver 0_1_9
6
+%define        major   0
7
+%define        libname %{lib}-%{ver}-%{major}
8
+
9
+Name:      %{libname}
10
 Version:   0.1.9
11
 Release:   1
12
 Url:       https://www.openca.org/projects/libpki/
13
-Summary:   easy-to-use PKI library
14
+Summary:   Easy-to-use PKI library
15
 License:   GPL
16
 Group:     Development/Librarys
17
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18
-Source:        http://ftp.openca.org/libpki/releases/v%{version}/sources/%{name}-%{version}.tar.gz
19
+Source:        http://ftp.openca.org/libpki/releases/v%{version}/sources/%{name}-%{version}.tar.bz2
20
 Patch0:        %{name}-configure.in.patch
21
 Patch1:        %{name}-configure.patch
22
 Patch2:        %{name}-global.patch
23
@@ -35,7 +40,7 @@
24
 
25
 %prep
26
 
27
-%setup -n %{name}-%{version}
28
+%setup -n %{lib}-%{version}
29
 %ifarch x86_64
30
 %patch0
31
 autoreconf -fi
32
@@ -55,15 +60,19 @@
33
 
34
 %install
35
 
36
-%__make DESTDIR=%{buildroot} install
37
+%__make DESTDIR=%{buildroot} install-strip
38
 
39
 %clean
40
 rm -rf %{buildroot}
41
 
42
+%post -p /sbin/ldconfig
43
+
44
+%postun -p /sbin/ldconfig
45
+
46
 %files
47
 %defattr(-,root,root)
48
 %doc README* COPYING ChangeLog AUTHORS
49
-%{_sysconfdir}/%{name}
50
+%config %{_sysconfdir}/%{name}
51
 %{_libdir}/libpki-%{version}.so.*
52
 %{_datadir}/%{name}
53
 
54
Renamed libpki-0.1.9.tar.bz2 ^