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)
27 # do not keep them in newly created specs
28 # these are only here to help fixing quickly broken specs
29 %define filterout_ld -Wl,--no-copy-dt-needed-entries
30 %define filterout_ld -Wl,--as-needed
32 # Ignore file in __spec_install_post_check_so
33 BuildRequires: rpmbuild(macros) >= 1.583
34 %define skip_post_check_so libunresolved.so.*
38 #%description -l pl.UTF-8
41 Summary: Header files for FOO library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOO
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for FOO library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki FOO.
53 Summary: Static FOO library
54 Summary(pl.UTF-8): Statyczna biblioteka FOO
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
61 %description static -l pl.UTF-8
62 Statyczna biblioteka FOO.
65 Summary: FOO API documentation
66 Summary(pl.UTF-8): Dokumentacja API biblioteki FOO
70 API and internal documentation for FOO library.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki FOO.
80 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
81 # appropriate BuildRequires
88 %{!?with_static_libs:--disable-static}
92 rm -rf $RPM_BUILD_ROOT
93 # create directories if necessary
94 #install -d $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
99 # if library provides pkgconfig then remove .la pollution
100 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
111 %attr(755,root,root) %{_bindir}/*
112 %attr(755,root,root) %{_libdir}/libFOO.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libFOO.so.[0-9]
117 %defattr(644,root,root,755)
122 %{_aclocaldir}/FOO.m4
123 %{_pkgconfigdir}/FOO.pc
125 %if %{with static_libs}
127 %defattr(644,root,root,755)
133 %defattr(644,root,root,755)