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