3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
11 License: - (enter GPL/LGPL/BSD/BSD-like/other license name here)
13 Source0: %{name}-%{version}.tar.gz
15 #Patch0: %{name}-what.patch
19 #Requires(pre,post): -
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 #%description -l pl.UTF-8
32 Summary: Header files for FOO library
33 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOO
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 Header files for FOO library.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki FOO.
44 Summary: Static FOO library
45 Summary(pl.UTF-8): Statyczna biblioteka FOO
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
52 %description static -l pl.UTF-8
53 Statyczna biblioteka FOO.
56 Summary: FOO API documentation
57 Summary(pl.UTF-8): Dokumentacja API biblioteki FOO
61 API and internal documentation for FOO library.
63 %description apidocs -l pl.UTF-8
64 Dokumentacja API biblioteki FOO.
71 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
72 # appropriate BuildRequires
82 rm -rf $RPM_BUILD_ROOT
83 # create directories if necessary
84 #install -d $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
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.*.*.*
103 %defattr(644,root,root,755)
109 %{_pkgconfigdir}/*.pc
112 %defattr(644,root,root,755)
116 %defattr(644,root,root,755)