]> git.pld-linux.org Git - packages/libglibutil.git/commitdiff
- new
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 31 Dec 2022 17:31:18 +0000 (18:31 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 31 Dec 2022 17:31:18 +0000 (18:31 +0100)
install.patch [new file with mode: 0644]
libglibutil.spec [new file with mode: 0644]

diff --git a/install.patch b/install.patch
new file mode 100644 (file)
index 0000000..dbffad8
--- /dev/null
@@ -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) $@
diff --git a/libglibutil.spec b/libglibutil.spec
new file mode 100644 (file)
index 0000000..0e2447e
--- /dev/null
@@ -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
This page took 0.62212 seconds and 4 git commands to generate.