Copr Publisher is a command-line tool that automates publishing Fedora packages to Copr. It simplifies package submission and management, making it easier to publish RPM packages with minimal effort.
You can install Copr Publisher directly from Copr using the following steps:
sudo dnf copr enable user1995/Copr_Publisher
sudo dnf install fedora-package-publisherAlternatively, you can clone the repository and run the script manually:
git clone https://github.com/Userfrom1995/Fedora_Package_Publisher.git
cd Fedora_Package_Publisher
python3 fedora-package-publisher.pyOnce installed, you can run the tool using:
fedora-package-publisher- The tool will prompt you to provide the path to your
.specfile. - It will generate the source RPM (
.src.rpm) automatically. - The package will be submitted to Copr for building and publishing.
- The script will guide you through the process and confirm successful publication.
- Ensure that your
.specfile is valid before running the tool. You can check its validity using:rpmlint your-package.spec
- Ubuntu and other non-Fedora systems do not support Copr, so this tool is designed to run on Fedora.
If you encounter issues, try the following:
- Run the tool with Python directly:
python3 /usr/bin/fedora-package-publisher
- If the command is not found after installation, check its location:
which fedora-package-publisher
- If an older version is installed, remove it and install the latest version:
sudo dnf remove fedora-package-publisher sudo dnf install fedora-package-publisher
https://copr.fedorainfracloud.org/coprs/user1995/Copr_Publisher/
Feel free to contribute to this project by submitting pull requests or reporting issues on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.