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