From 6eadcee5948f08cc2a80f8fac91c2bee269248a5 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 3 Feb 2021 12:10:03 -0500 Subject: [PATCH] Use %name mcaro --- libIDL.spec | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/libIDL.spec b/libIDL.spec index fb36743..4d288da 100644 --- a/libIDL.spec +++ b/libIDL.spec @@ -4,13 +4,13 @@ Version: 0.8.14 %global so_version 0 Release: 24%{?dist} -URL: https://download.gnome.org/sources/libIDL/0.8/ +URL: https://download.gnome.org/sources/%{name}/0.8/ Source: %{url}/%{name}-%{version}.tar.bz2 License: LGPLv2+ -# Fix paths reported by the libIDL-config tool to conform with Fedora multilib -# installation paths: -Patch0: libIDL-0.8.6-multilib.patch +# Fix paths reported by the libIDL-config-2 tool to conform with Fedora +# multilib installation paths: +Patch0: %{name}-0.8.6-multilib.patch BuildRequires: gcc BuildRequires: make @@ -20,14 +20,14 @@ BuildRequires: flex BuildRequires: bison %global common_description %{expand: -libIDL is a library for parsing IDL (Interface Definition Language). It can be +%{name} is a library for parsing IDL (Interface Definition Language). It can be used for both COM-style and CORBA-style IDL.} %description %{common_description} %package devel -Summary: Development libraries and header files for libIDL +Summary: Development libraries and header files for %{name} Requires: %{name} = %{version}-%{release} Requires: pkgconfig >= 1:0.8 Requires: glib2-devel%{?_isa} >= 2.0 @@ -35,7 +35,7 @@ Requires: glib2-devel%{?_isa} >= 2.0 %description devel %{common_description} This package contains the header files and libraries needed to write or compile -programs that use libIDL. +programs that use %{name}. %prep @@ -61,18 +61,18 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %doc BUGS %doc MAINTAINERS -%{_libdir}/libIDL-2.so.%{so_version} -%{_libdir}/libIDL-2.so.%{so_version}.* +%{_libdir}/%{name}-2.so.%{so_version} +%{_libdir}/%{name}-2.so.%{so_version}.* %files devel -%{_libdir}/libIDL-2.so -%{_includedir}/libIDL-2.0/ +%{_libdir}/%{name}-2.so +%{_includedir}/%{name}-2.0/ -%{_libdir}/pkgconfig/libIDL-2.0.pc -%{_bindir}/libIDL-config-2 +%{_libdir}/pkgconfig/%{name}-2.0.pc +%{_bindir}/%{name}-config-2 -%{_infodir}/libIDL2.info* +%{_infodir}/%{name}2.info* %changelog @@ -84,6 +84,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la - Rather than removing the static library, skip building it with --disable-static - Drop obsolete %%ldconfig_scriptlets macro - Use much stricter path globs +- Use %%name macro * Tue Jan 26 2021 Fedora Release Engineering - 0.8.14-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild