From 50c225b7489403cc7b3835bf5fdf6ffbd98d0fc0 Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember(a)redhat.com>
Date: Tue, 1 Sep 2015 00:34:47 +0200
Subject: Split out the shared library to -libs subpackage
This makes it possible for other apps that link with gtkhex, such as
Nemiver to only pull in the -libs subpackage and not the ghex app.
diff --git a/ghex.spec b/ghex.spec
index 007e829..2b9cb4f 100644
--- a/ghex.spec
+++ b/ghex.spec
@@ -19,6 +19,8 @@ BuildRequires: itstool
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
%description
GHex can load raw data from binary files and display them for editing in the
traditional hex editor view. The display is split in two columns, with
@@ -26,10 +28,17 @@ hexadecimal values in one column and the ASCII representation in the other.
A useful tool for working with raw data.
+%package libs
+Summary: GtkHex library
+
+%description libs
+The %{name}-libs package contains the shared GtkHex library.
+
+
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
@@ -52,13 +61,13 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop
%find_lang %{name}-3.0 --all-name --with-gnome
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%post
-/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
-/sbin/ldconfig
if [ $1 -eq 0 ] ; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
@@ -80,6 +89,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/GConf/gsettings/ghex.convert
%{_datadir}/glib-2.0/schemas/org.gnome.GHex.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*
+
+%files libs
+%license COPYING
%{_libdir}/*.so.*
%files devel
@@ -95,6 +107,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
- Use make_install macro
- Mark license files with the license macro
- Tighten -devel package deps with the _isa macro
+- Split out the shared library to -libs subpackage
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.10.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ghex.git/commit/?h=f23&id=50c225b7489403…
--
scm-commits mailing list
scm-commits(a)lists.fedoraproject.org
http://lists.fedoraproject.org/postorius/scm-commits@lists.fedoraproject.org
From 50c225b7489403cc7b3835bf5fdf6ffbd98d0fc0 Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember(a)redhat.com>
Date: Tue, 1 Sep 2015 00:34:47 +0200
Subject: Split out the shared library to -libs subpackage
This makes it possible for other apps that link with gtkhex, such as
Nemiver to only pull in the -libs subpackage and not the ghex app.
diff --git a/ghex.spec b/ghex.spec
index 007e829..2b9cb4f 100644
--- a/ghex.spec
+++ b/ghex.spec
@@ -19,6 +19,8 @@ BuildRequires: itstool
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
%description
GHex can load raw data from binary files and display them for editing in the
traditional hex editor view. The display is split in two columns, with
@@ -26,10 +28,17 @@ hexadecimal values in one column and the ASCII representation in the other.
A useful tool for working with raw data.
+%package libs
+Summary: GtkHex library
+
+%description libs
+The %{name}-libs package contains the shared GtkHex library.
+
+
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
@@ -52,13 +61,13 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop
%find_lang %{name}-3.0 --all-name --with-gnome
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%post
-/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
-/sbin/ldconfig
if [ $1 -eq 0 ] ; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
@@ -80,6 +89,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/GConf/gsettings/ghex.convert
%{_datadir}/glib-2.0/schemas/org.gnome.GHex.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*
+
+%files libs
+%license COPYING
%{_libdir}/*.so.*
%files devel
@@ -95,6 +107,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
- Use make_install macro
- Mark license files with the license macro
- Tighten -devel package deps with the _isa macro
+- Split out the shared library to -libs subpackage
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.10.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ghex.git/commit/?h=master&id=50c225b7489…
--
scm-commits mailing list
scm-commits(a)lists.fedoraproject.org
http://lists.fedoraproject.org/postorius/scm-commits@lists.fedoraproject.org