summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-28 09:22:27 -0800
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-11-13 11:02:41 +0100
commit00f1856265f3779012d907d6bbf98efc0d804e5e (patch)
tree31accba07f825e47e87e1a647ed0e0af645a48e8 /packaging
parentf90b939262b251edafac0f7dda2166192b3acce3 (diff)
downloadshared-mime-info-00f1856265f3779012d907d6bbf98efc0d804e5e.tar.gz
shared-mime-info-00f1856265f3779012d907d6bbf98efc0d804e5e.tar.bz2
shared-mime-info-00f1856265f3779012d907d6bbf98efc0d804e5e.zip
make binaries run, fixed optimization
Diffstat (limited to 'packaging')
-rw-r--r--packaging/shared-mime-info.spec11
1 files changed, 5 insertions, 6 deletions
diff --git a/packaging/shared-mime-info.spec b/packaging/shared-mime-info.spec
index de0d241..2f6eb3b 100644
--- a/packaging/shared-mime-info.spec
+++ b/packaging/shared-mime-info.spec
@@ -11,8 +11,6 @@ Source2: macros.shared-mime-info
BuildRequires: intltool
# needed for xmllint
BuildRequires: libxml2-tools
-# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
-BuildRequires: xz
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Requires: /usr/bin/fgrep
@@ -23,7 +21,6 @@ Requires: /usr/bin/rm
#!BuildIgnore: shared-mime-info
# needed by update-mime-database
Provides: %{name}-devel = %{version}
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains:
@@ -38,8 +35,9 @@ This package contains:
%setup -q
%build
-%configure
-make
+export CFLAGS=`echo $RPM_OPT_FLAGS |sed -e 's/atom/i686/g'`
+%configure
+make V=1
%install
%make_install
@@ -48,6 +46,7 @@ install %{SOURCE1} %{buildroot}%{_bindir}/
# Install rpm macros
install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-info
+
%post
%{_bindir}/update-mime-database %{_datadir}/mime || true
@@ -57,7 +56,7 @@ install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-in
%files
%defattr (-, root, root)
-%doc COPYING
+%license COPYING
%{_bindir}/*
%{_datadir}/mime/packages/*.xml
%{_datadir}/pkgconfig/*.pc