]>
Commit | Line | Data |
---|---|---|
3cb1cd3d | 1 | # |
66df3cad ER |
2 | # Conditional build: |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
f9986cd5 | 5 | Summary: - |
ce39d734 | 6 | Summary(pl.UTF-8): - |
f9986cd5 JB |
7 | Name: - |
8 | Version: - | |
9 | Release: - | |
f9986cd5 JB |
10 | License: - (enter GPL/LGPL/BSD/BSD-like/other license name here) |
11 | Group: Libraries | |
12 | Source0: %{name}-%{version}.tar.gz | |
13 | # Source0-md5: - | |
1c854c4b | 14 | #Patch0: %{name}-what.patch |
f9986cd5 JB |
15 | URL: - |
16 | BuildRequires: - | |
f9986cd5 JB |
17 | Requires: - |
18 | Requires(pre,post): - | |
19 | Requires(preun): - | |
20 | Requires(postun): - | |
21 | Provides: - | |
22 | Obsoletes: - | |
23 | Conflicts: - | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | ||
9be49f18 | 28 | %description -l pl.UTF-8 |
f9986cd5 JB |
29 | |
30 | %package devel | |
31 | Summary: Header files for FOO library | |
ce39d734 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOO |
f9986cd5 | 33 | Group: Development/Libraries |
d7dd7729 | 34 | Requires: %{name} = %{version}-%{release} |
f9986cd5 JB |
35 | |
36 | %description devel | |
37 | Header files for FOO library. | |
38 | ||
9be49f18 JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe biblioteki FOO. | |
f9986cd5 JB |
41 | |
42 | %package static | |
43 | Summary: Static FOO library | |
ce39d734 | 44 | Summary(pl.UTF-8): Statyczna biblioteka FOO |
f9986cd5 | 45 | Group: Development/Libraries |
d7dd7729 | 46 | Requires: %{name}-devel = %{version}-%{release} |
f9986cd5 JB |
47 | |
48 | %description static | |
49 | Static FOO library. | |
50 | ||
9be49f18 | 51 | %description static -l pl.UTF-8 |
f9986cd5 JB |
52 | Statyczna biblioteka FOO. |
53 | ||
66df3cad ER |
54 | %package apidocs |
55 | Summary: FOO API documentation | |
9fcce7f1 | 56 | Summary(pl.UTF-8): Dokumentacja API biblioteki FOO |
66df3cad ER |
57 | Group: Documentation |
58 | ||
59 | %description apidocs | |
60 | API and internal documentation for FOO library. | |
61 | ||
3cb1cd3d JB |
62 | %description apidocs -l pl.UTF-8 |
63 | Dokumentacja API biblioteki FOO. | |
64 | ||
f9986cd5 JB |
65 | %prep |
66 | %setup -q | |
1c854c4b | 67 | #%patch0 -p1 |
f9986cd5 JB |
68 | |
69 | %build | |
c42a30cf JB |
70 | # if ac/am/lt/* rebuilding is necessary, do it in this order and add |
71 | # appropriate BuildRequires | |
72 | #%{__libtoolize} | |
73 | #%{__aclocal} | |
74 | #%{__autoconf} | |
75 | #%{__autoheader} | |
76 | #%{__automake} | |
f9986cd5 JB |
77 | %configure |
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | # create directories if necessary | |
83 | #install -d $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
97 | %attr(755,root,root) %{_bindir}/* | |
98 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
99 | %{_datadir}/%{name} | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %doc devel-doc/* | |
b5db19d4 | 104 | %{_libdir}/lib*.so |
f9986cd5 JB |
105 | %{_libdir}/lib*.la |
106 | %{_includedir}/foo | |
107 | %{_aclocaldir}/*.m4 | |
108 | %{_pkgconfigdir}/*.pc | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/lib*.a | |
66df3cad ER |
113 | |
114 | %files apidocs | |
115 | %defattr(644,root,root,755) | |
116 | %doc apidocs/* |