]>
Commit | Line | Data |
---|---|---|
0ed7334b JB |
1 | # |
2 | # Conditional build: | |
da75f0a0 | 3 | %bcond_without static_libs # disable static libraries |
0ed7334b | 4 | # |
01594ded | 5 | Summary: Library with unicode character names list |
50c36f95 | 6 | Summary(pl.UTF-8): Biblioteka z listą nazw znaków unicode |
01594ded | 7 | Name: libuninameslist |
decda150 JB |
8 | Version: 20170807 |
9 | Release: 1 | |
01594ded JB |
10 | License: BSD |
11 | Group: Libraries | |
decda150 JB |
12 | #Source0Download: https://github.com/fontforge/libuninameslist/releases |
13 | Source0: https://github.com/fontforge/libuninameslist/releases/download/%{version}/%{name}-dist-%{version}.tar.gz | |
14 | # Source0-md5: 4e05adb1e4a53ae6a8be34cfa1bd533a | |
b7945c10 | 15 | URL: http://libuninameslist.sourceforge.net/ |
01594ded JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | Library with unicode character names list. | |
20 | ||
494ebf90 JR |
21 | %description -l pl.UTF-8 |
22 | Biblioteka z listą nazw znaków unicode. | |
01594ded JB |
23 | |
24 | %package devel | |
25 | Summary: Header files for libuninameslist library | |
50c36f95 | 26 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libuninameslist |
01594ded | 27 | Group: Development/Libraries |
3bfa83eb | 28 | Requires: %{name} = %{version}-%{release} |
01594ded JB |
29 | |
30 | %description devel | |
31 | Header files for libuninameslist library. | |
32 | ||
494ebf90 JR |
33 | %description devel -l pl.UTF-8 |
34 | Pliki nagłówkowe biblioteki libuninameslist. | |
01594ded JB |
35 | |
36 | %package static | |
37 | Summary: Static libuninameslist library | |
50c36f95 | 38 | Summary(pl.UTF-8): Statyczna biblioteka libuninameslist |
01594ded | 39 | Group: Development/Libraries |
3bfa83eb | 40 | Requires: %{name}-devel = %{version}-%{release} |
01594ded JB |
41 | |
42 | %description static | |
43 | Static libuninameslist library. | |
44 | ||
494ebf90 | 45 | %description static -l pl.UTF-8 |
01594ded JB |
46 | Statyczna biblioteka libuninameslist. |
47 | ||
48 | %prep | |
decda150 | 49 | %setup -q |
01594ded JB |
50 | |
51 | %build | |
52 | %configure \ | |
decda150 JB |
53 | --enable-frenchlib \ |
54 | --disable-silent-rules \ | |
55 | %{!?with_static_libs:--disable-static} | |
01594ded JB |
56 | |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
decda150 JB |
63 | DESTDIR=$RPM_BUILD_ROOT |
64 | ||
65 | # no external dependencies | |
66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libuninameslist*.la | |
01594ded JB |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
decda150 | 76 | %doc AUTHORS ChangeLog LICENSE README README.md |
ddff26d9 | 77 | %attr(755,root,root) %{_libdir}/libuninameslist.so.*.*.* |
decda150 | 78 | %attr(755,root,root) %ghost %{_libdir}/libuninameslist.so.1 |
ddff26d9 | 79 | %attr(755,root,root) %{_libdir}/libuninameslist-fr.so.*.*.* |
decda150 | 80 | %attr(755,root,root) %ghost %{_libdir}/libuninameslist-fr.so.1 |
01594ded JB |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
ddff26d9 JB |
84 | %attr(755,root,root) %{_libdir}/libuninameslist.so |
85 | %attr(755,root,root) %{_libdir}/libuninameslist-fr.so | |
ddff26d9 | 86 | %{_includedir}/uninameslist.h |
decda150 JB |
87 | %{_includedir}/uninameslist-fr.h |
88 | %{_pkgconfigdir}/libuninameslist.pc | |
01594ded | 89 | |
da75f0a0 | 90 | %if %{with static_libs} |
01594ded JB |
91 | %files static |
92 | %defattr(644,root,root,755) | |
ddff26d9 JB |
93 | %{_libdir}/libuninameslist.a |
94 | %{_libdir}/libuninameslist-fr.a | |
da75f0a0 | 95 | %endif |