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