diff --git a/mariadb-connector-c.spec b/mariadb-connector-c.spec index 514dde7..db8dfa5 100644 --- a/mariadb-connector-c.spec +++ b/mariadb-connector-c.spec @@ -16,7 +16,7 @@ Name: mariadb-connector-c Version: 3.0.2 -Release: 13%{?dist} +Release: 14%{?dist} Summary: The MariaDB Native Client library (C driver) Group: Applications/Databases License: LGPLv2+ @@ -46,11 +46,28 @@ Contains everything needed to build against libmariadb.so >=3 client library. %install +# https://fedoraproject.org/wiki/Packaging:Directory_Replacement +%pretrans -p devel +path = "%{_libdir}/mariadb" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end +path = "%{_libdir}/mysql" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + %files %files devel %changelog +* Tue Oct 31 2017 Michal Schorm - 3.0.2-14 +- Update scriplet dealing with symlinks as Guidelines suggests + Related: #1501933 + * Mon Oct 30 2017 Michal Schorm - 3.0.2-13 - For Fedora 27 and less, this package has been emptied. That should resolve conflicts and requirements issues on those Fedora releases.