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
18 #BuildRequires: autoconf
19 #BuildRequires: automake
20 #BuildRequires: intltool
21 #BuildRequires: libtool
23 #Requires(pre,post): -
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 # do not keep them in newly created specs
32 # these are only here to help fixing quickly broken specs
33 %define filterout_ld -Wl,--no-copy-dt-needed-entries
34 %define filterout_ld -Wl,--as-needed
35 # do not commit spec containing this (use for local testing only):
36 %define filterout_c -Werror=format-security
37 %define filterout_cxx -Werror=format-security
39 # Ignore file in __spec_install_post_check_so
40 BuildRequires: rpmbuild(macros) >= 1.583
41 %define skip_post_check_so libunresolved.so.*
43 # do not commit spec containing this (use for local testing only):
44 %define no_install_post_check_tmpfiles 1
48 #%description -l pl.UTF-8
51 Summary: Common files for %{name} library
52 Summary(pl.UTF-8): Wspólne pliki biblioteki %{name}
54 Requires: %{name} = %{version}-%{release}
57 Common files for %{name} library.
59 %description common -l pl.UTF-8
60 Wspólne pliki biblioteki %{name}.
63 Summary: Header files for %{name} library
64 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
65 Group: Development/Libraries
66 Requires: %{name} = %{version}-%{release}
69 Header files for %{name} library.
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe biblioteki %{name}.
75 Summary: Static %{name} library
76 Summary(pl.UTF-8): Statyczna biblioteka %{name}
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 Static %{name} library.
83 %description static -l pl.UTF-8
84 Statyczna biblioteka %{name}.
87 Summary: %{name} API documentation
88 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
92 API documentation for %{name} library.
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API biblioteki %{name}.
102 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
103 # appropriate BuildRequires
110 %{!?with_static_libs:--disable-static}
114 rm -rf $RPM_BUILD_ROOT
115 # create directories if necessary
116 #install -d $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT
121 # if library provides pkgconfig file containing proper {Requires,Libs}.private
122 # then remove .la pollution
123 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
132 %defattr(644,root,root,755)
133 %doc AUTHORS CREDITS README THANKS
134 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.N
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/%{name}*
143 %defattr(644,root,root,755)
144 %doc devel-doc/* ChangeLog NEWS TODO
145 %attr(755,root,root) %{_libdir}/%{name}.so
146 # if no pkgconfig support, or it misses .private deps, then include .la file
147 #%{_libdir}/libFOO.la
148 %{_includedir}/%{name}
149 %{_aclocaldir}/%{name}.m4
150 %{_pkgconfigdir}/%{name}.pc
152 %if %{with static_libs}
154 %defattr(644,root,root,755)
160 %defattr(644,root,root,755)