From a02a770f95a17972a8a08a0928474222b619cfde Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 7 Jan 2017 18:10:56 +0100 Subject: [PATCH] Simplify soname globbing and whitespace --- gtkd.spec | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/gtkd.spec b/gtkd.spec index 327d70c..70000cf 100644 --- a/gtkd.spec +++ b/gtkd.spec @@ -1,8 +1,7 @@ # debug info seem not works with D compiler -%global debug_package %{nil} -%global gtkd_major 0 -%global gtkd_minor 4 -%global gtkd_bump 0 +%global debug_package %{nil} + +%global sover 0 Name: gtkd Version: 3.4.1 @@ -100,28 +99,21 @@ mv %{buildroot}%{_datadir}/pkgconfig/peasd-3.pc %{buildroot}%{_libdir}/pkgconfig mkdir -p %{buildroot}/%{_datadir}/geany/tags/ install -m0644 gtkd.d.tags %{buildroot}/%{_datadir}/geany/tags/ - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files %license COPYING %doc AUTHORS README -%{_libdir}/libgstreamerd-3.so.%{gtkd_major} -%{_libdir}/libgstreamerd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} -%{_libdir}/libgtkd-3.so.%{gtkd_major} -%{_libdir}/libgtkd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} -%{_libdir}/libgtkdgl-3.so.%{gtkd_major} -%{_libdir}/libgtkdgl-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} -%{_libdir}/libgtkdsv-3.so.%{gtkd_major} -%{_libdir}/libgtkdsv-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} -%{_libdir}/libpeasd-3.so.%{gtkd_major} -%{_libdir}/libpeasd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} -%{_libdir}/libvted-3.so.%{gtkd_major} -%{_libdir}/libvted-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} +%{_libdir}/libgstreamerd-3.so.%{sover}* +%{_libdir}/libgtkd-3.so.%{sover}* +%{_libdir}/libgtkdgl-3.so.%{sover}* +%{_libdir}/libgtkdsv-3.so.%{sover}* +%{_libdir}/libpeasd-3.so.%{sover}* +%{_libdir}/libvted-3.so.%{sover}* %files devel -%{_d_includedir}/%{name}-3 +%{_d_includedir}/gtkd-3/ %{_libdir}/libgstreamerd-3.so %{_libdir}/libgtkd-3.so %{_libdir}/libgtkdgl-3.so