]>
Commit | Line | Data |
---|---|---|
177f2d2d | 1 | # NOTE: for version >= 3 see libcanlock.spec |
66cfe3a8 | 2 | Summary: A library for creating and verifying cancel locks |
aad85b98 | 3 | Summary(pl.UTF-8): Biblioteka do tworzenia i weryfikowania cancel-locków |
66cfe3a8 | 4 | Name: canlock |
31d5853a | 5 | Version: 2b |
177f2d2d | 6 | Release: 4.1 |
66cfe3a8 JB |
7 | License: BSD-like |
8 | Group: Libraries | |
31d5853a | 9 | Source0: http://mysite.verizon.net/vze4y7p6/cssri/tar/%{name}%{version}.tar.gz |
10 | # Source0-md5: b35e464dfc54dcf1e7459a5ad67cb2f2 | |
9ce391a9 | 11 | URL: http://albasani.net/wiki/Cancel-Lock |
66cfe3a8 JB |
12 | BuildRequires: libtool |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | A library for creating and verifying cancel locks (special news | |
17 | articles headers that prevent cancelling articles by unauthorized | |
18 | persons). | |
19 | ||
36ccc610 JR |
20 | %description -l pl.UTF-8 |
21 | Biblioteka do tworzenia i weryfikowania cancel-locków (specjalnych | |
22 | nagłówków artykułów newsowych zapobiegających usuwaniu artykułów przez | |
66cfe3a8 JB |
23 | osoby nieuprawnione). |
24 | ||
25 | %package devel | |
26 | Summary: Header files for canlock library | |
aad85b98 | 27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki canlock |
66cfe3a8 | 28 | Group: Development/Libraries |
72d5d2db | 29 | Requires: %{name} = %{version}-%{release} |
66cfe3a8 JB |
30 | |
31 | %description devel | |
32 | Header files for canlock library. | |
33 | ||
36ccc610 JR |
34 | %description devel -l pl.UTF-8 |
35 | Pliki nagłówkowe biblioteki canlock. | |
66cfe3a8 JB |
36 | |
37 | %package static | |
38 | Summary: Static canlock library | |
aad85b98 | 39 | Summary(pl.UTF-8): Statyczna biblioteka canlock |
66cfe3a8 | 40 | Group: Development/Libraries |
72d5d2db | 41 | Requires: %{name}-devel = %{version}-%{release} |
66cfe3a8 JB |
42 | |
43 | %description static | |
44 | Static canlock library. | |
45 | ||
36ccc610 | 46 | %description static -l pl.UTF-8 |
66cfe3a8 JB |
47 | Statyczna biblioteka canlock. |
48 | ||
49 | %prep | |
31d5853a | 50 | %setup -q -n %{name}%{version} |
66cfe3a8 JB |
51 | |
52 | %build | |
53 | %{__make} libcanlock.a \ | |
54 | CC="libtool --mode=compile %{__cc}" \ | |
55 | CFLAGS="%{rpmcflags} -Iinclude" | |
56 | ||
57 | libtool --mode=link %{__cc} %{rpmldflags} -o libcanlock.la src/*.lo -rpath %{_libdir} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
62 | ||
63 | libtool --mode=install install libcanlock.la $RPM_BUILD_ROOT%{_libdir} | |
64 | install include/canlock.h $RPM_BUILD_ROOT%{_includedir} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
31d5853a | 74 | %doc CHANGES README doc |
4a678a86 WF |
75 | %attr(755,root,root) %{_libdir}/libcanlock.so.*.*.* |
76 | %attr(755,root,root) %ghost %{_libdir}/libcanlock.so.0 | |
66cfe3a8 JB |
77 | |
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
4a678a86 | 80 | %attr(755,root,root) %{_libdir}/libcanlock.so |
e1712cd8 | 81 | %{_libdir}/libcanlock.la |
66cfe3a8 JB |
82 | %{_includedir}/canlock.h |
83 | ||
84 | %files static | |
85 | %defattr(644,root,root,755) | |
e1712cd8 | 86 | %{_libdir}/libcanlock.a |