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