From 5f302014409df101ec5b1141e122664f5f886f20cf18d574433ef96529040c84 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 7 Jan 2019 13:28:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/editors/libt3key?expand=0&rev=8 --- libt3key.spec | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libt3key.spec b/libt3key.spec index 2515da9..b82c20a 100644 --- a/libt3key.spec +++ b/libt3key.spec @@ -28,6 +28,7 @@ Url: http://os.ghalkes.nl/t3/libt3key.html #Git-Clone: git://github.com/gphalkes/t3key Source: http://os.ghalkes.nl/dist/%name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes BuildRequires: gettext-tools BuildRequires: libtool BuildRequires: ncurses-devel @@ -35,9 +36,6 @@ BuildRequires: pkgconfig BuildRequires: pkgconfig(libt3config) >= 0.2.5 BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) -%if 0%{?suse_version} -BuildRequires: fdupes -%endif %description libt3key is library that provides a database of mappings from escape @@ -86,12 +84,9 @@ export CC=gcc make %{?_smp_mflags} %install -b="%buildroot" -make install DESTDIR="$b" -rm -f "$b/%_libdir"/*.la -%if 0%{?fdupes:1} +%make_install +rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix -%endif %post -p /sbin/ldconfig -n %lname %postun -p /sbin/ldconfig -n %lname