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_cpp -D_FORTIFY_SOURCE=.
38 %define filterout_cxx -Werror=format-security
40 # Ignore file in __spec_install_post_check_so
41 BuildRequires: rpmbuild(macros) >= 1.583
42 %define skip_post_check_so libunresolved.so.*
44 # do not commit spec containing this (use for local testing only):
45 %define no_install_post_check_tmpfiles 1
49 #%description -l pl.UTF-8
52 Summary: Common files for %{name} library
53 Summary(pl.UTF-8): Wspólne pliki biblioteki %{name}
55 Requires: %{name} = %{version}-%{release}
58 Common files for %{name} library.
60 %description common -l pl.UTF-8
61 Wspólne pliki biblioteki %{name}.
64 Summary: Header files for %{name} library
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
70 Header files for %{name} library.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe biblioteki %{name}.
76 Summary: Static %{name} library
77 Summary(pl.UTF-8): Statyczna biblioteka %{name}
78 Group: Development/Libraries
79 Requires: %{name}-devel = %{version}-%{release}
82 Static %{name} library.
84 %description static -l pl.UTF-8
85 Statyczna biblioteka %{name}.
88 Summary: API documentation for %{name} library
89 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
91 # if not arch-dependent
92 %if "%{_rpmversion}" >= "4.6"
97 API documentation for %{name} library.
99 %description apidocs -l pl.UTF-8
100 Dokumentacja API biblioteki %{name}.
107 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
108 # appropriate BuildRequires
115 %{!?with_static_libs:--disable-static}
119 rm -rf $RPM_BUILD_ROOT
120 # create directories if necessary
121 #install -d $RPM_BUILD_ROOT
124 DESTDIR=$RPM_BUILD_ROOT
126 # if library provides pkgconfig file containing proper {Requires,Libs}.private
127 # then remove .la pollution
128 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
131 rm -rf $RPM_BUILD_ROOT
133 %post -p /sbin/ldconfig
134 %postun -p /sbin/ldconfig
137 %defattr(644,root,root,755)
138 %doc AUTHORS CREDITS README THANKS
139 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
140 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.N
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/%{name}*
148 %defattr(644,root,root,755)
149 %doc devel-doc/* ChangeLog NEWS TODO
150 %attr(755,root,root) %{_libdir}/%{name}.so
151 # if no pkgconfig support, or it misses .private deps, then include .la file
152 #%{_libdir}/libFOO.la
153 %{_includedir}/%{name}
154 %{_aclocaldir}/%{name}.m4
155 %{_pkgconfigdir}/%{name}.pc
157 %if %{with static_libs}
159 %defattr(644,root,root,755)
165 %defattr(644,root,root,755)