]>
Commit | Line | Data |
---|---|---|
d6dffb2f | 1 | Summary: Number to number name and money text conversion library |
6c8a72b9 | 2 | Summary(pl.UTF-8): Biblioteka do konwersji liczb i pieniędzy na tekst |
d6dffb2f | 3 | Name: libnumbertext |
afbf5c47 | 4 | Version: 1.0.10 |
7faed903 | 5 | Release: 1 |
6c8a72b9 | 6 | License: BSD or LGPL v3+ |
d6dffb2f | 7 | Group: Libraries |
6c8a72b9 JB |
8 | #Source0Download: https://github.com/Numbertext/libnumbertext/releases |
9 | Source0: https://github.com/Numbertext/libnumbertext/releases/download/%{version}/%{name}-%{version}.tar.xz | |
afbf5c47 | 10 | # Source0-md5: 8a7f60b4aeef5b07f396ab6baa064a05 |
6c8a72b9 JB |
11 | URL: https://numbertext.github.io/ |
12 | BuildRequires: autoconf >= 2.68 | |
d6dffb2f | 13 | BuildRequires: automake >= 1:1.11 |
d5cf3b8e | 14 | BuildRequires: libstdc++-devel >= 6:4.9 |
d6dffb2f AM |
15 | BuildRequires: libtool >= 2:1.5 |
16 | BuildRequires: xz | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Number to number name and money text conversion libraries in C++, | |
6c8a72b9 JB |
21 | Java, JavaScript and Python & LibreOffice Calc Extension. |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Biblioteka C++ do konwersji liczb i pieniędzy na tekst dla C++, | |
25 | Javy, JavaScriptu i Pythona oraz rozszerzenia LibreOffice Calc. | |
d6dffb2f AM |
26 | |
27 | %package devel | |
28 | Summary: Header files for libnumbertext | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnumbertext | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
d5cf3b8e | 32 | Requires: libstdc++-devel >= 6:4.9 |
d6dffb2f AM |
33 | |
34 | %description devel | |
35 | This package contains the header files for developing applications | |
36 | that use libnumbertext. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
40 | wykorzystujących bibliotekę libnumbertext. | |
41 | ||
42 | %package static | |
43 | Summary: Static libnumbertext library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka libnumbertext | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libnumbertext library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka libnumbertext. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
58 | %{__libtoolize} | |
59 | %{__aclocal} -I m4 | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
63 | %configure \ | |
6c8a72b9 | 64 | --disable-silent-rules |
d6dffb2f AM |
65 | %{__make} |
66 | ||
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | # obsoleted by pkg-config | |
75 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnumbertext-*.la | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
6c8a72b9 | 85 | %doc AUTHORS COPYING ChangeLog NEWS README.md THANKS |
d6dffb2f AM |
86 | %attr(755,root,root) %{_bindir}/spellout |
87 | %attr(755,root,root) %{_libdir}/libnumbertext-1.0.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libnumbertext-1.0.so.0 | |
89 | %{_datadir}/%{name} | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_libdir}/libnumbertext-1.0.so | |
94 | %{_includedir}/libnumbertext | |
95 | %{_pkgconfigdir}/libnumbertext.pc | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libnumbertext-1.0.a |