--- /dev/null
+--- libutf8proc-1.3.1-3/Makefile~ 2018-04-14 17:42:42.000000000 +0200
++++ libutf8proc-1.3.1-3/Makefile 2018-04-14 17:43:23.719751330 +0200
+@@ -45,7 +45,7 @@
+ endif
+
+ # Extra installation rules
+-I := /$(INCLUDEDIR)/libutf8proc
++I := /$(INCLUDEDIR)
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libutf8proc/utf8proc.h
+ INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
+ INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
Summary(pl.UTF-8): Biblioteka utf8proc dla projektu NetSurf
Name: libutf8proc
Version: 1.3.1
-Release: 3
+Release: 4
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-3-src.tar.gz
# Source0-md5: c427797a2e3172a0ebef68b37b682124
+Patch0: %{name}-build.patch
URL: http://www.netsurf-browser.org/projects/libutf8proc/
BuildRequires: netsurf-buildsystem >= 1.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{name}-%{version}-3
+%patch0 -p1
%build
export AR="%{__ar}"
DESTDIR=$RPM_BUILD_ROOT
%endif
-sed -i -e 's#includedir=.*#includedir=${prefix}/include/%{name}#g' $RPM_BUILD_ROOT%{_pkgconfigdir}/libutf8proc.pc
-
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libutf8proc.so
-%{_includedir}/libutf8proc
+%{_includedir}/utf8proc.h
%{_pkgconfigdir}/libutf8proc.pc
%if %{with static_libs}