diff options
Diffstat (limited to 'packaging/macros')
-rw-r--r-- | packaging/macros | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/packaging/macros b/packaging/macros index 4bf2d1a..79c6d7f 100644 --- a/packaging/macros +++ b/packaging/macros @@ -13,8 +13,11 @@ %_default_patch_fuzz 2 %_enable_debug_packages 1 -#============================================================================== -# ---- configure and makeinstall. +%do_profiling 1 +%cflags_profile_generate -fprofile-generate +%cflags_profile_feedback -fprofile-use + +# Tizen # %configure \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ @@ -99,6 +102,7 @@ infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\ install + %make_install \ %{__make} \\\ DESTDIR=%{?buildroot:%{buildroot}} \\\ @@ -158,14 +162,15 @@ %{nil} -%lang_package \ -%package locale \ +%lang_package(n:f:) \ +%package %{-n:-n %{-n*}-}locale \ Summary: Translations and Locale for package %{name}\ -Group: Translations\ -AutoReqProv: 0\ -%description locale\ +Requires: %{-n:%{-n*}}%{!-n:%{name}} = %{version} \ +Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \ +BuildArch: noarch \ +%description %{-n:-n %{-n*}-}locale\ This package provides translations for package %{name}.\ -%files locale -f %{name}.lang\ +%files %{-n:-n %{-n*}-}locale -f %{-f:%{-f*}.lang} %{!-f:%{name}.lang}\ %defattr(-,root,root,-)\ %{nil} @@ -236,7 +241,7 @@ rm -rf %{?buildroot:%{buildroot}} \ # Should unpackaged files in a build root terminate a build? %_unpackaged_files_terminate_build 1 -%__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed +%__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu # Disable lookups %_hkp_keyserver %{nil} @@ -309,3 +314,18 @@ install -D -m 644 %1-16.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/ %global __find_provides /bin/sh -c "%{?__filter_prov_cmd} %{__deploop P} %{?__filter_from_prov}" \ %global __find_requires /bin/sh -c "%{?__filter_req_cmd} %{__deploop R} %{?__filter_from_req}" \ } + +%remove_docs \ + rm -rf %{?buildroot:%{buildroot}}%{_infodir} \ + rm -rf %{?buildroot:%{buildroot}}%{_defaultdocdir} \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name} \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name}-%{version} \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/gtk-doc \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/man \ + find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \ + find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \ + find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f -- + +%ext_info .gz +%ext_man .gz |