Add symlinks for headers to be compitable with Debian (BZ#1635706)

This commit is contained in:
Robin Lee 2018-11-08 01:44:19 +08:00
parent 690d98d7b2
commit d3323b876c

View File

@ -3,7 +3,7 @@
Name: iniparser
Version: 4.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: C library for parsing "INI-style" files
Group: System Environment/Libraries
@ -40,8 +40,10 @@ make %{?_smp_mflags}
%install
# iniParser doesn't have a 'make install' of its own :(
install -d %{buildroot}%{_includedir} %{buildroot}%{_libdir}
install -m 644 -t %{buildroot}%{_includedir}/ src/dictionary.h src/iniparser.h
install -d %{buildroot}%{_includedir}/%{name} %{buildroot}%{_libdir}
install -m 644 -t %{buildroot}%{_includedir}/%{name} src/dictionary.h src/iniparser.h
ln -s %{name}/dictionary.h %{buildroot}%{_includedir}/dictionary.h
ln -s %{name}/iniparser.h %{buildroot}%{_includedir}/iniparser.h
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.1
ln -s libiniparser.so.1 %{buildroot}%{_libdir}/libiniparser.so
@ -67,9 +69,13 @@ make check
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/libiniparser.so
%{_includedir}/%{name}
%{_includedir}/*.h
%changelog
* Thu Nov 8 2018 Robin Lee <cheeselee@fedoraproject.org> - 4.1-2
- Add symlinks for headers to be compitable with Debian (BZ#1635706)
* Fri Aug 31 2018 Robin Lee <cheeselee@fedoraproject.org> - 4.1-1
- Update to 4.1 (BZ#1508863)