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: Common files for %{name} library
42 Summary(pl.UTF-8): Wspólne pliki biblioteki %{name}
44 Requires: %{name} = %{version}-%{release}
47 Common files for %{name} library.
49 %description common -l pl.UTF-8
50 Wspólne pliki biblioteki %{name}.
53 Summary: Header files for %{name} library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Header files for %{name} library.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki %{name}.
65 Summary: Static %{name} library
66 Summary(pl.UTF-8): Statyczna biblioteka %{name}
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static %{name} library.
73 %description static -l pl.UTF-8
74 Statyczna biblioteka %{name}.
77 Summary: %{name} API documentation
78 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
82 API and internal documentation for %{name} library.
84 %description apidocs -l pl.UTF-8
85 Dokumentacja API biblioteki %{name}.
92 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
93 # appropriate BuildRequires
100 %{!?with_static_libs:--disable-static}
104 rm -rf $RPM_BUILD_ROOT
105 # create directories if necessary
106 #install -d $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT
111 # if library provides pkgconfig file containing proper {Requires,Libs}.private
112 # then remove .la pollution
113 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc AUTHORS CREDITS README THANKS
124 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.N
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_bindir}/%{name}*
133 %defattr(644,root,root,755)
134 %doc devel-doc/* ChangeLog NEWS TODO
135 %attr(755,root,root) %{_libdir}/%{name}.so
136 # if no pkgconfig support, or it misses .private deps, then include .la file
137 #%{_libdir}/libFOO.la
138 %{_includedir}/%{name}
139 %{_aclocaldir}/%{name}.m4
140 %{_pkgconfigdir}/%{name}.pc
142 %if %{with static_libs}
144 %defattr(644,root,root,755)
150 %defattr(644,root,root,755)