]>
Commit | Line | Data |
---|---|---|
78885d3c | 1 | Summary: A library for dynamic code generation |
73c62d27 | 2 | Summary(pl.UTF-8): Biblioteka do dynamicznego generowania kodu |
78885d3c | 3 | Name: lightning |
7d7e675d | 4 | Version: 2.1.3 |
b1944f86 | 5 | Release: 8 |
00d67958 JB |
6 | License: LGPL v3+ |
7 | Group: Libraries | |
7d7e675d JB |
8 | Source0: https://ftp.gnu.org/gnu/lightning/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 61252681bd19002f45d42f436aa69180 | |
78885d3c JB |
10 | Patch0: %{name}-info.patch |
11 | URL: http://www.gnu.org/software/lightning/ | |
5b14f5cb | 12 | BuildRequires: binutils-devel |
78885d3c | 13 | BuildRequires: texinfo |
5b14f5cb | 14 | BuildRequires: zlib-devel |
78885d3c JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | GNU lightning is a library to aid in making portable programs that | |
19 | compile assembly code at run time. | |
20 | ||
43533f88 JR |
21 | %description -l pl.UTF-8 |
22 | GNU lightning to biblioteka mająca pomagać w tworzeniu przenośnych | |
23 | programów kompilujących kod w asemblerze w czasie wykonywania. | |
78885d3c | 24 | |
00d67958 JB |
25 | %package devel |
26 | Summary: Header files for GNU lightning library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU lightning | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files for GNU lightning library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki GNU lightning. | |
36 | ||
37 | %package static | |
38 | Summary: Static GNU lightning library | |
39 | Summary(pl.UTF-8): Statyczna biblioteka GNU lightning | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | Static GNU lightning library. | |
45 | ||
46 | %description static -l pl.UTF-8 | |
47 | Statyczna biblioteka GNU lightning. | |
48 | ||
78885d3c JB |
49 | %prep |
50 | %setup -q | |
868b06cd | 51 | %patch0 -p1 |
78885d3c JB |
52 | |
53 | %build | |
54 | %configure | |
55 | ||
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
00d67958 JB |
67 | %post -p /sbin/ldconfig |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %post devel -p /sbin/postshell | |
31c4405c | 71 | -/usr/sbin/fix-info-dir -c %{_infodir} |
78885d3c | 72 | |
00d67958 | 73 | %postun devel -p /sbin/postshell |
31c4405c | 74 | -/usr/sbin/fix-info-dir -c %{_infodir} |
78885d3c JB |
75 | |
76 | %files | |
77 | %defattr(644,root,root,755) | |
00d67958 JB |
78 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
79 | %attr(755,root,root) %{_libdir}/liblightning.so.*.*.* | |
72da8861 | 80 | %attr(755,root,root) %ghost %{_libdir}/liblightning.so.1 |
00d67958 JB |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/liblightning.so | |
85 | %{_libdir}/liblightning.la | |
78885d3c | 86 | %{_includedir}/lightning |
00d67958 | 87 | %{_includedir}/lightning.h |
78885d3c | 88 | %{_infodir}/lightning.info* |
18025f98 | 89 | %{_pkgconfigdir}/lightning.pc |
00d67958 JB |
90 | |
91 | %files static | |
92 | %defattr(644,root,root,755) | |
93 | %{_libdir}/liblightning.a |