This commit is contained in:
nazunalika
2022-02-11 22:55:48 -07:00
commit 8b3e2523d3
2 changed files with 89 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
rpmspecs-tea
^^^^^^^^^^^^
This is the RPM spec files that I have created for tea. I am not affiliated with the tea project and only provide this as a service.
.. contents::
Information
-----------
**Note:** I am not responsible for system damages, break-ins, or faulty code of the software that can cause the formerly listed. Always develop and test in an isolated environment at all times. **Always keep SELinux enabled.**
Frequently Asked Questions
--------------------------
Do you have any SRPMS available?
++++++++++++++++++++++++++++++++
They'll normally be available from my copr builds, if you are interested in making changes and using mock for yourself.
Have any documentation or guides?
+++++++++++++++++++++++++++++++++
If you're starting out rpm packaging, please consider reading the following documentation. The packaging guidelines may seem strict, but they are deemed best practices if you are considering on being a package maintainer (sponsored or not). Keep in mind, **I am always learning**. I am in no way an expert, nor do I claim to be.
`FHS <http://www.pathname.com/fhs/>`_
`Fedora: Fedora Packaging Guidelines <https://docs.fedoraproject.org/en-US/packaging-guidelines/>`_
`Fedora: Creating RPM Packages <https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_GNU_Hello/>`_
What you should get from the above is there are specific guidelines that should be followed, for maintainability, portability, and easy review. My RPM specs will have an FAQ of the "purpose".
Do you have any repositories?
+++++++++++++++++++++++++++++
Yes, I do. I have two, actually. I have a copr and a personal repository.
`Copr <https://copr.fedorainfracloud.org/coprs/nalika/>`_
Do you take requests?
+++++++++++++++++++++
I normally don't. But, if what you're asking for doesn't have an RPM or project in copr, I'll consider it based on what it is, and if it fits licensing and guidelines. You can drop me an email or a line here and I will get back to you.
Do you package for other systems?
+++++++++++++++++++++++++++++++++
At this present time, I do not. I have considered packaging for Ubuntu or OpenSUSE. However those, much like Arch, already have plenty of maintainers with tons upon tons of packages (up to date or not) and their own build systems similar to Fedora. So some of the packages you may see here may already exist for those distributions in base or extra repositories they provide.
+40
View File
@@ -0,0 +1,40 @@
# TODO: Add the autocomplete scripts
%global major_version 0
%global minor_version 8
%global micro_version 0
%define debug_package %{nil}
Name: tea
Version: %{major_version}.%{minor_version}.%{micro_version}
Release: 1%{?dist}
Summary: The official CLI for Gitea
License: MIT
URL: https://gitea.com/gitea/tea
Source0: https://gitea.com/gitea/tea/archive/v%{version}.tar.gz
BuildRequires: go >= 1.16.0
BuildRequires: git
BuildRequires: make
BuildRequires: go-srpm-macros
Requires: git
%description
Tea is the official CLI tool for Gitea. It can be used to manage most entities
on one or more Gitea instances and provides local helpers like
'tea pull checkout'
%prep
%setup -q -n %{name}
%build
make
%install
install -D -m 755 gitea $RPM_BUILD_ROOT%{_bindir}/tea
%files
%{_bindir}/tea
%changelog
* Fri Feb 11 2022 Louis Abel <tucklesepk@gmail.com> - 0.8.0-1
- Initial release of 0.8.0 for Fedora and Enterprise Linux