From a5976526ae7c97ec44bfcd03d2cbcce569341fed Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 3 Nov 2020 18:26:45 +0300 Subject: [PATCH] add spec for src.rpm --- build/srpm/multini.spec | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 build/srpm/multini.spec diff --git a/build/srpm/multini.spec b/build/srpm/multini.spec new file mode 100644 index 0000000..a207f40 --- /dev/null +++ b/build/srpm/multini.spec @@ -0,0 +1,69 @@ +# WARNING: offline build not supported :( + +%undefine _missing_build_ids_terminate_build +%global debug_package %{nil} + +Name: multini +Version: 0.3.0 +Release: 1%{dist} +Summary: A utility for manipulating ini files with duplicate keys +License: MIT +Url: https://github.com/GenZmeY/multini + +Source0: %{name}-%{version}.tar.gz + +BuildRequires: golang-bin >= 1.13 + +Provides: %{name} + +%description +A utility for easily manipulating ini files from the command line and shell scripts. + +%prep +%setup -q -c + +%build +make -j $(nproc) VERSION=%{version} + +%install +rm -rf $RPM_BUILD_ROOT +make install PREFIX=%{buildroot}/usr + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%attr(755,root,root) %{_bindir}/%{name} +%attr(755,root,root) %dir %{_docdir}/%{name} +%attr(755,root,root) %dir %{_datadir}/licenses/%{name} +%attr(644,root,root) %{_docdir}/%{name}/README +%attr(644,root,root) %{_datadir}/licenses/%{name}/LICENSE + +%changelog +* Thu Apr 30 2020 GenZmeY - 0.3.0-1 +- multini-0.3.0: +- add C-style comments support. + +* Thu Apr 30 2020 GenZmeY - 0.2.3-1 +- multini-0.2.3: +- fixed file write for the '--inplace' option. + +* Wed Apr 29 2020 GenZmeY - 0.2.2-1 +- multini-0.2.2. + +* Wed Apr 29 2020 GenZmeY - 0.2.1-1 +- multini-0.2.1: +- fix "rename invalid cross-device link". + +* Mon Apr 27 2020 GenZmeY - 0.2-1 +- multini-0.2: +- fix inplace arg; +- follow symlinks by default; +- reverse flag. + +* Sun Apr 26 2020 GenZmeY - 0.1-1 +- First version of spec.