]>
Commit | Line | Data |
---|---|---|
aa70f211 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %bcond_without tests # build without tests | |
5 | # | |
6 | Summary: - | |
7 | Summary(pl.UTF-8): - | |
8 | Name: ustr | |
9 | Version: 1.0.1 | |
10 | Release: 0.1 | |
11 | License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here) | |
12 | Group: Applications | |
13 | Source0: http://www.and.org/ustr/%{version}//%{name}-%{version}.tar.bz2 | |
14 | # Source0-md5: 794dcbac77a2154e8e98865265d37cd5 | |
15 | URL: http://www.and.org/ustr/ | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | ||
20 | %description -l pl.UTF-8 | |
21 | ||
22 | %package subpackage | |
23 | Summary: - | |
24 | Summary(pl.UTF-8): - | |
25 | Group: - | |
26 | ||
27 | %description subpackage | |
28 | ||
29 | %description subpackage -l pl.UTF-8 | |
30 | ||
31 | %package libs | |
32 | Summary: - | |
33 | Summary(pl.UTF-8): - | |
34 | Group: Libraries | |
35 | ||
36 | %description libs | |
37 | ||
38 | %description libs -l pl.UTF-8 | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for ... library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ... | |
43 | Group: Development/Libraries | |
44 | # if base package contains shared library for which these headers are | |
45 | #Requires: %{name} = %{version}-%{release} | |
46 | # if -libs package contains shared library for which these headers are | |
47 | #Requires: %{name}-libs = %{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Header files for ... library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki .... | |
54 | ||
55 | %package static | |
56 | Summary: Static ... library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka ... | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static ... library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka .... | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | ||
70 | %build | |
71 | %{__make} all-shared | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
87 | %attr(755,root,root) %{_bindir}/* | |
88 | %{_libdir}/libustr-1.0.so.1.0.1 | |
89 | ||
90 | %files devel | |
91 | %{_includedir}/*.h | |
92 | /usr/lib/pkgconfig/ustr.pc | |
93 | ||
94 | %files static | |
95 | %{_libdir}/libustr.a |