[packages/libglibutil] - new
baggins
baggins at pld-linux.org
Sat Dec 31 18:31:38 CET 2022
commit 8d66fc248973bd593749c9db9208420cdb3d5b2d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Dec 31 18:31:18 2022 +0100
- new
install.patch | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
libglibutil.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
---
diff --git a/libglibutil.spec b/libglibutil.spec
new file mode 100644
index 0000000..0e2447e
--- /dev/null
+++ b/libglibutil.spec
@@ -0,0 +1,61 @@
+Summary: Library of glib utilities
+Name: libglibutil
+Version: 1.0.67
+Release: 0.1
+License: BSD
+Group: Libraries
+Source0: https://github.com/sailfishos/libglibutil/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 4cc4b99b9561edf309d89f844806c3d1
+Patch0: install.patch
+URL: https://github.com/sailfishos/libglibutil/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library of glib utilities.
+
+%package devel
+Summary: Header files for %{name} library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} release pkgconfig \
+ CFLAGS="%{rpmcflags}" \
+ LIBDIR=%{_libdir} \
+ KEEP_SYMBOLS=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install-dev \
+ LIBDIR=%{_libdir} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/%{name}.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_includedir}/gutil
+%{_pkgconfigdir}/%{name}.pc
diff --git a/install.patch b/install.patch
new file mode 100644
index 0000000..dbffad8
--- /dev/null
+++ b/install.patch
@@ -0,0 +1,53 @@
+--- libglibutil-1.0.67/Makefile~ 2022-08-28 13:01:13.000000000 +0200
++++ libglibutil-1.0.67/Makefile 2022-12-31 18:28:25.948399811 +0100
+@@ -32,9 +32,7 @@
+ NAME = glibutil
+ LIB_NAME = lib$(NAME)
+ LIB_DEV_SYMLINK = $(LIB_NAME).so
+-LIB_SYMLINK1 = $(LIB_DEV_SYMLINK).$(VERSION_MAJOR)
+-LIB_SYMLINK2 = $(LIB_SYMLINK1).$(VERSION_MINOR)
+-LIB_SONAME = $(LIB_SYMLINK1)
++LIB_SONAME = $(LIB_DEV_SYMLINK).$(VERSION_MAJOR)
+ LIB = $(LIB_SONAME).$(VERSION_MINOR).$(VERSION_RELEASE)
+ STATIC_LIB = $(LIB_NAME).a
+
+@@ -106,8 +104,8 @@
+
+ DEBUG_LIB = $(DEBUG_BUILD_DIR)/$(LIB)
+ RELEASE_LIB = $(RELEASE_BUILD_DIR)/$(LIB)
+-DEBUG_LINK = $(DEBUG_BUILD_DIR)/$(LIB_SYMLINK1)
+-RELEASE_LINK = $(RELEASE_BUILD_DIR)/$(LIB_SYMLINK1)
++DEBUG_LINK = $(DEBUG_BUILD_DIR)/$(LIB_SONAME)
++RELEASE_LINK = $(RELEASE_BUILD_DIR)/$(LIB_SONAME)
+ DEBUG_DEV_LINK = $(DEBUG_BUILD_DIR)/$(LIB_DEV_SYMLINK)
+ RELEASE_DEV_LINK = $(RELEASE_BUILD_DIR)/$(LIB_DEV_SYMLINK)
+ DEBUG_STATIC_LIB = $(DEBUG_BUILD_DIR)/$(STATIC_LIB)
+@@ -201,10 +199,10 @@
+ ln -sf $(LIB) $@
+
+ $(DEBUG_DEV_LINK): $(DEBUG_LINK)
+- ln -sf $(LIB_SYMLINK1) $@
++ ln -sf $(LIB_SONAME) $@
+
+ $(RELEASE_DEV_LINK): $(RELEASE_LINK)
+- ln -sf $(LIB_SYMLINK1) $@
++ ln -sf $(LIB_SONAME) $@
+
+ $(DEBUG_STATIC_LIB): $(DEBUG_OBJS)
+ $(AR) rc $@ $?
+@@ -252,13 +250,12 @@
+ #
+ install: $(INSTALL_LIB_DIR)
+ $(INSTALL) -m 755 $(RELEASE_LIB) $(INSTALL_LIB_DIR)
+- ln -sf $(LIB) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK2)
+- ln -sf $(LIB_SYMLINK2) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK1)
++ ln -sf $(LIB) $(INSTALL_LIB_DIR)/$(LIB_SONAME)
+
+ install-dev: install $(INSTALL_INCLUDE_DIR) $(INSTALL_PKGCONFIG_DIR)
+ $(INSTALL_FILES) $(INCLUDE_DIR)/*.h $(INSTALL_INCLUDE_DIR)
+ $(INSTALL_FILES) $(PKGCONFIG) $(INSTALL_PKGCONFIG_DIR)
+- ln -sf $(LIB_SYMLINK1) $(INSTALL_LIB_DIR)/$(LIB_DEV_SYMLINK)
++ ln -sf $(LIB) $(INSTALL_LIB_DIR)/$(LIB_DEV_SYMLINK)
+
+ $(INSTALL_LIB_DIR):
+ $(INSTALL_DIRS) $@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libglibutil.git/commitdiff/8d66fc248973bd593749c9db9208420cdb3d5b2d
More information about the pld-cvs-commit
mailing list