#17 Workaround RPM problems when replacing a directory with a symbolic link
Merged 6 months ago by churchyard. Opened 9 months ago by churchyard.
rpms/ churchyard/python-notebook pretrans  into  master

file modified
+14 -1

@@ -12,7 +12,7 @@ 

  # upstream version, like 1.2.3rc1

  %global uversion %{version}%{tag}

  

- Release:        3%{tag}%{?dist}

+ Release:        4%{tag}%{?dist}

  Summary:        A web-based notebook environment for interactive computing

  License:        BSD

  URL:            http://jupyter.org

@@ -166,6 +166,16 @@ 

  nosetests-3 -v --exclude-dir notebook/tests/selenium

  

  

+ # This was previously unbundled, but no more

+ # See https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/

+ %pretrans -n python3-%{pypi_name} -p <lua>

+ path = "%{python3_sitelib}/%{pypi_name}/static/components/moment"

+ st = posix.stat(path)

+ if st and st.type == "link" then

+   os.remove(path)

+ end

+ 

+ 

  %files -n python3-%{pypi_name}

  %doc README.md

  %license LICENSE

@@ -182,6 +192,9 @@ 

  

  

  %changelog

+ * Thu Mar 12 2020 Miro Hrončok <mhroncok@redhat.com> - 6.0.2-4

+ - Workaround RPM problems when replacing a directory with a symbolic link (#1787079)

+ 

  * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.2-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild