[libecb] Keep the main package name for sake of koji package list

Petr Pisar ppisar at fedoraproject.org
Wed Feb 18 11:59:40 UTC 2015


commit 9c4a2d17bbf4f495f2ae75403ce1b4406a887bc4
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed Feb 18 12:56:59 2015 +0100

    Keep the main package name for sake of koji package list
    
    Maybe we could rename the git package to libecb-devel.

 libecb.spec |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/libecb.spec b/libecb.spec
index 45a3f81..80a4bd2 100644
--- a/libecb.spec
+++ b/libecb.spec
@@ -1,7 +1,7 @@
 %global snapshot 20150218
 # Do not create debuginfo sub-package because there is no binary executable
 %global debug_package %{nil}
-Name:       libecb-devel
+Name:       libecb
 Version:    0.%{snapshot}
 Release:    1%{?dist}
 Summary:    Compiler built-ins
@@ -9,24 +9,36 @@ Group:      Development/Libraries
 License:    BSD or GPLv2+
 URL:        http://software.schmorp.de/pkg/libecb
 # Snapshot from CVS :pserver:anonymous at cvs.schmorp.de/schmorpforge libecb 
-Source0:    libecb-%{snapshot}.tar.xz
+Source0:    %{name}-%{snapshot}.tar.xz
 BuildRequires:  perl-podlators
+
+%description
+This project delivers you many GCC built-ins, attributes and a number of
+generally useful low-level functions, such as popcount, expect, prefetch,
+noinline, assume, unreachable and so on.
+
+This is a dummy package. All the usefull files are delivered by %{name}-devel
+package.
+
+
+%package devel
+Summary:    Compiler built-ins
 # Packaging guidelines require header-only packages:
 # to be architecture-specific, to deliver headers in -devel package, to
 # provide -static symbol for reverse build-requires.
+# Replace libecb package:
 Requires:   glibc-headers%{?_isa}
 Provides:   libecb-static = %{?epoch:%{epoch}:}%{version}-%{release}
-# Replace libecb package:
 Provides:   libecb = %{?epoch:%{epoch}:}%{version}-%{release}
 Obsoletes:  libecb < 0.20150218
 
-%description
+%description devel
 This project delivers you many GCC built-ins, attributes and a number of
 generally useful low-level functions, such as popcount, expect, prefetch,
 noinline, assume, unreachable and so on.
 
 %prep
-%setup -q -n libecb-%{snapshot}
+%setup -q -n %{name}-%{snapshot}
 
 %build
 pod2man ecb.pod > ecb.3
@@ -37,7 +49,7 @@ install -m 0644 -t %{buildroot}%{_includedir} *.h
 install -d %{buildroot}%{_mandir}/man3
 install -m 0644 -t %{buildroot}%{_mandir}/man3 *.3
 
-%files
+%files devel
 %license LICENSE
 %doc Changes README
 %{_includedir}/*


More information about the scm-commits mailing list