SPEC: https://raw.githubusercontent.com/fedora-python/python-docs/master/python2-docs.spec SRPM: https://cstratak.fedorapeople.org/python2-docs-2.7.12-3.fc26.src.rpm Diff: https://github.com/fedora-python/python-docs/compare/9bd9de270a5bc5bcd8c1afae682e13436b5c19ba...master Fedora Account System Username: cstratak As python got renamed to python2 (#1392457), the respective documentation package should be renamed as well from python-docs to python2-docs. The change is intended only for rawhide. With the provides and obsoletes added the upgrade path should remain clean. Copr repo for testing: https://copr.fedorainfracloud.org/coprs/cstratak/python-docs koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=17245653
The obsoletes/provides looks good to me. Other changes as well.
Already tested on a rawhide box and a dnf update with the copr repo enabled, properly removes python-docs and installs python2-box
(In reply to Charalampos Stratakis from comment #2) > Already tested on a rawhide box and a dnf update with the copr repo enabled, > properly removes python-docs and installs python2-box and install python2-docs*
1) Replace: # The Version needs to be in-sync with the "python" package: With: # The Version needs to be in-sync with the "python2" package: 2) The linked SRPM contains python-docs.spec, not python2-docs.spec. 3) No %license file (maybe LICENSE) 4) Mixing tabs and spaces 5) python2-docs.noarch: W: hidden-file-or-dir /usr/share/doc/python2-docs/html/.buildinfo 6) The info subpackage dos not Provide/Obsoletes the old name 7) Change Python to Python 2 in Summaries and Descriptions. 8) There're old package names in both Descriptions 9) I cannot install the packages, because python2 is already 2.7.13, please update this as well
Addressed all your notes (I think). SPEC: https://raw.githubusercontent.com/fedora-python/python-docs/master/python2-docs.spec SRPM: https://cstratak.fedorapeople.org/python2-docs-2.7.13-1.fc26.src.rpm Diff: https://github.com/fedora-python/python-docs/compare/9bd9de270a5bc5bcd8c1afae682e13436b5c19ba...master Fedora Account System Username: cstratak Copr repo: https://copr.fedorainfracloud.org/coprs/cstratak/python-docs scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=17411166
1) Fixed. 2) Didn't check yet, will do later once other issues are fixed. 3) Fixed. 4) As a Pythonista, I tough you'd go with spaces :D Fixed. 5) Fixed. 6) The subpackage was python-docs-info not python-info. Not fixed! 7) Fixed. 8) Fixed. 9) Should be fixed, didn't actually try yet.
(In reply to Miro Hrončok from comment #6) > 6) The subpackage was python-docs-info not python-info. Not fixed! Ooops. Once more then: SPEC: https://raw.githubusercontent.com/fedora-python/python-docs/master/python2-docs.spec SRPM: https://cstratak.fedorapeople.org/python2-docs-2.7.13-1.fc26.src.rpm Diff: https://github.com/fedora-python/python-docs/compare/9bd9de270a5bc5bcd8c1afae682e13436b5c19ba...master Fedora Account System Username: cstratak Copr repo: https://copr.fedorainfracloud.org/coprs/cstratak/python-docs scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=17423626
Package Review ============== Package APPROVED. Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated Issues: ======= You SHOULD change %define to %global. ===== MUST items ===== Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. [x]: License file installed when any subpackage combination is installed. [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [-]: Development files must be in a -devel package [-]: Package uses nothing in %doc for runtime. [x]: Texinfo files are installed using install-info in %post and %preun if package has .info files. Note: Texinfo .info file(s) in python2-docs-info [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [x]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Package is not known to require an ExcludeArch tag. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: No rpmlint messages. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [!]: Uses parallel make %{?_smp_mflags} macro. Not useful here. [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [-]: Fully versioned dependency in subpackages if applicable. Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python2 -docs-info Not useful here. [x]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: Patches link to upstream bugs/comments/lists or are otherwise justified. [x]: Scriptlets must be sane, if used. [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: Package should compile and build into binary rpms on all supported architectures. [x]: %check is present and all tests pass. [?]: Packages should try to preserve timestamps of original installed files. [!]: Spec use %global instead of %define unless justified. Note: %define requiring justification: %define pybasever 2.7 Please change to %global. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: Sources can be downloaded from URI in Source: tag [x]: SourceX is a working URL. ===== EXTRA items ===== Generic: [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). [x]: Spec file according to URL is the same as in SRPM. Rpmlint ------- Checking: python2-docs-2.7.13-1.fc26.noarch.rpm python2-docs-info-2.7.13-1.fc26.noarch.rpm python2-docs-2.7.13-1.fc26.src.rpm 3 packages and 0 specfiles checked; 0 errors, 0 warnings. Rpmlint (installed packages) ---------------------------- python2-docs-info.noarch: W: invalid-url URL: https://www.python.org/ <urlopen error [Errno -2] Name or service not known> python2-docs.noarch: W: invalid-url URL: https://www.python.org/ <urlopen error [Errno -2] Name or service not known> 2 packages and 0 specfiles checked; 0 errors, 2 warnings. (My connection issues, the URL is right.) Requires -------- python2-docs-info (rpmlib, GLIBC filtered): /bin/sh info python2-docs (rpmlib, GLIBC filtered): python2 Provides -------- python2-docs-info: python-docs-info python2-docs-info python2-docs: python-docs python2-docs Source checksums ---------------- https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz : CHECKSUM(SHA256) this package : 35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731 CHECKSUM(SHA256) upstream package : 35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python2-docs