]> git.pld-linux.org Git - packages/libhandy1.git/commitdiff
- added pc patch (avoid trailing "/" in .pc Libs field, which caused `pkg-config... auto/th/libhandy1-1.2.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 1 Apr 2021 18:35:34 +0000 (20:35 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 1 Apr 2021 18:35:34 +0000 (20:35 +0200)
- release 2

libhandy1-pc.patch [new file with mode: 0644]
libhandy1.spec

diff --git a/libhandy1-pc.patch b/libhandy1-pc.patch
new file mode 100644 (file)
index 0000000..ab43206
--- /dev/null
@@ -0,0 +1,24 @@
+--- libhandy-1.2.0/meson.build.orig    2021-03-12 13:10:27.000000000 +0100
++++ libhandy-1.2.0/meson.build 2021-04-01 20:30:07.815680135 +0200
+@@ -103,13 +103,17 @@
+ # Setup various paths that subdirectory meson.build files need
+ package_subdir = get_option('package_subdir') # When used as subproject
+-datadir        = get_option('datadir')  / package_subdir
+-libdir         = get_option('libdir')  / package_subdir
+-girdir         = get_option('datadir') / package_subdir / 'gir-1.0'
+-typelibdir     = get_option('libdir')  / package_subdir / 'girepository-1.0'
+ if package_subdir != ''
++  datadir        = get_option('datadir') / package_subdir
++  libdir         = get_option('libdir')  / package_subdir
++  girdir         = get_option('datadir') / package_subdir / 'gir-1.0'
++  typelibdir     = get_option('libdir')  / package_subdir / 'girepository-1.0'
+   vapidir = get_option('datadir') / package_subdir / 'vapi'
+ else
++  datadir        = get_option('datadir')
++  libdir         = get_option('libdir')
++  girdir         = get_option('datadir') / 'gir-1.0'
++  typelibdir     = get_option('libdir')  / 'girepository-1.0'
+   vapidir = get_option('datadir') / 'vala' / 'vapi'
+ endif
index 3bca1f74bd1544d8f0042b9220022c90b02b4a8a..24a64bdc62c168bd74bd9988159382849a638e77 100644 (file)
@@ -8,11 +8,12 @@ Summary:      Library with GTK+ widgets for mobile phones
 Summary(pl.UTF-8):     Biblioteka z kontrolkami GTK+ dla telefonów komórkowych
 Name:          libhandy1
 Version:       1.2.0
-Release:       1
+Release:       2
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       https://download.gnome.org/sources/libhandy/1.2/libhandy-%{version}.tar.xz
 # Source0-md5: 18d868a77fe846b926e09508e3dce288
+Patch0:                %{name}-pc.patch
 URL:           https://gitlab.gnome.org/GNOME/libhandy/
 # -std=gnu11
 BuildRequires: gcc >= 6:4.7
@@ -96,6 +97,7 @@ API języka VALA do biblioteki libhandy.
 
 %prep
 %setup -q -n libhandy-%{version}
+%patch0 -p1
 
 %build
 %meson build \
This page took 0.194192 seconds and 4 git commands to generate.