Fixed ownership of {_libdir}/mariadb (this dir must me owned by package)

- Fixed ownership of {_sysconfigdir}/ld.so.conf.d (this dir must me owned by package)
- Fixed redundnace on lines with {_sysconfigdir}/ld.so.conf.d
- Fixed ownership of {_bindir} (only one program is owned, so let's be accurate)
- Some comments added, for me and futura maintainers
This commit is contained in:
FaramosCZ 2016-10-27 15:30:53 +02:00
parent 4deac4022c
commit 0fb9789ffe

View File

@ -1,6 +1,6 @@
Name: mariadb-connector-c
Version: 2.3.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: The MariaDB Native Client library (C driver)
Group: Applications/Databases
License: LGPLv2+
@ -33,7 +33,7 @@ Development files for mariadb-connector-c.
-DWITH_EXTERNAL_ZLIB=ON\
-DPREFIX_INSTALL_DIR="/"\
-DCMAKE_SYSTEM_PROCESSOR="%{_arch}"\
-DPLUGIN_INSTALL_DIR="%{_libdir}/plugin"
-DPLUGIN_INSTALL_DIR="%{_libdir}/plugin" # TODO: move plugin dir from libdir/plugin/ to libdir/mariadb/plugin
make %{?_smp_mflags}
@ -61,25 +61,29 @@ rm /$RPM_BUILD_ROOT%{_includedir}/mariadb/cmake_install.cmake
%files
%defattr(-,root,root,-)
%{_libdir}/mariadb/libmariadb.so.2
%{_libdir}/plugin/dialog.so
%{_libdir}/plugin/mysql_clear_password.so
%{_libdir}/mariadb
%{_sysconfdir}/ld.so.conf.d # fix of RPATH. If there is a set config file, libdir/mariadb/ is added to search for libraries
%files devel
%defattr(-,root,root,-)
%{_bindir}/*
%{_bindir}/maridb_config # program which provides info for compiling programs with this library
%{_libdir}/mariadb/libmariadb.so
%{_libdir}/mariadb/libmysqlclient_r.so
%{_libdir}/mariadb/libmysqlclient.so
%{_libdir}/mariadb
%{_includedir}/mariadb
%{_sysconfdir}/ld.so.conf.d
%{_sysconfdir}/ld.so.conf.d/*
%{_includedir}/mariadb # header files
%changelog
* Thu Oct 27 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-3
- Fixed ownership of {_libdir}/mariadb (this dir must me owned by package)
- Fixed ownership of {_sysconfigdir}/ld.so.conf.d (this dir must me owned by package)
- Fixed redundnace on lines with {_sysconfigdir}/ld.so.conf.d
- Fixed ownership of {_bindir} (only one program is owned, so let's be accurate)
- Some comments added, for me and futura maintainers
* Mon Oct 17 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-2
- Fixed ownership of {_libdir}/mariadb directory and cosmetic specfile changes