add: gradle gendesk golang-xyproto-env golang-xyproto-textoutput golang-xyproto-vt100 golang-yhat-scrape (#170)

* add: gradle

* fix: gradle

* add: gendesk

* add: xyproto-env xyproto-textoutput yhat-scrape

* add: xyproto-vt100
This commit is contained in:
windowsboy111
2023-02-07 23:00:56 +08:00
committed by GitHub
parent e22e7dda94
commit 0354eaf376
18 changed files with 472 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-xyproto-gendesk.spec"
}
}
@@ -0,0 +1,68 @@
# Generated by go2rpm 1.8.2
%bcond_without check
# https://github.com/xyproto/gendesk
%global goipath github.com/xyproto/gendesk
Version: 1.0.9
%global tag 1.0.9
%global commit 7ac050a54c2f771ce41da2a38f633cefc3353383
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another pacage,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -f
%global common_description %{expand:
:herb: Generate .desktop files and download .png icons by specifying a minimum
of information.}
%global golicenses LICENSE
%global godocs README.md
Name: gendesk
Release: %autorelease
Summary: :herb: Generate .desktop files and download .png icons by specifying a minimum of information
License: BSD-3-Clause
URL: https://gendesk.roboticoverlords.org
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%build
%gobuild -o %{gobuilddir}/bin/gendesk %{goipath}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("xyproto/gendesk"));
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-xyproto-env.spec"
}
}
@@ -0,0 +1,56 @@
# Generated by go2rpm 1.8.2
%bcond_without check
%global debug_package %{nil}
# https://github.com/xyproto/env
%global goipath github.com/xyproto/env
Version: 1.8.0
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another pacage,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -f
%global common_description %{expand:
Provide default values when fetching environment variables.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-%{goname}
Release: %autorelease
Summary: Provide default values when fetching environment variables
License: BSD-3-Clause
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("xyproto/env"));
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-xyproto-textoutput.spec"
}
}
@@ -0,0 +1,67 @@
# Generated by go2rpm 1.8.2
%bcond_without check
# https://github.com/xyproto/textoutput
%global goipath github.com/xyproto/textoutput
Version: 1.14.1
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another pacage,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -f
%global common_description %{expand:
:a: Output text, with and without colors.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-%{goname}
Release: %autorelease
Summary: :a: Output text, with and without colors
License: BSD-3-Clause
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("xyproto/textoutput"));
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-xyproto-vt100.spec"
}
}
@@ -0,0 +1,67 @@
# Generated by go2rpm 1.8.2
%bcond_without check
# https://github.com/xyproto/vt100
%global goipath github.com/xyproto/vt100
Version: 1.11.3
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another pacage,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -f
%global common_description %{expand:
:computer: VT100 Terminal Package.}
%global golicenses LICENSE
%global godocs TODO.md README.md cmd/widget/README.md
Name: golang-%{goname}
Release: %autorelease
Summary: :computer: VT100 Terminal Package
License: # FIXME
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%doc TODO.md README.md cmd/widget/README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("xyproto/vt100"));
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-yhat-scrape.spec"
}
}
@@ -0,0 +1,57 @@
# Generated by go2rpm 1.8.2
%bcond_without check
%global debug_package %{nil}
# https://github.com/yhat/scrape
%global goipath github.com/yhat/scrape
%global commit 24b7890b0945459dbf91743e4d2ac5d75a51fee2
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
# ---
# New Fedora packages should use %%gometa -f, which makes the package
# ExclusiveArch to %%golang_arches_future and thus excludes the package from
# %%ix86. If the new package is needed as a dependency for another pacage,
# please consider removing that package from %%ix86 in the same way, instead of
# building more go packages for i686. If your package is not a leaf package,
# you'll need to coordinate the removal of the package's dependents first.
# ---
# REMOVE BEFORE SUBMITTING THIS FOR REVIEW
%gometa -f
%global common_description %{expand:
A simple, higher level interface for Go web scraping.}
%global golicenses LICENSE
%global godocs example README.md
Name: golang-%{goname}
Version: 0
Release: %autorelease -p
Summary: A simple, higher level interface for Go web scraping
License: BSD-2-Clause
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("yhat/scrape"));
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "gradle.spec"
}
}
+121
View File
@@ -0,0 +1,121 @@
Name: gradle
Version: 7.6.0
Release: 1%{?dist}
Summary: Powerful build system for the JVM
URL: https://gradle.org/
Source0: https://github.com/gradle/gradle/archive/refs/tags/v%{version}.tar.gz
Source2: https://raw.githubusercontent.com/gradle/gradle/v%{version}/LICENSE
Source3: https://raw.githubusercontent.com/gradle/gradle/v%{version}/README.md
License: Apache-2.0
Requires: java-latest-openjdk coreutils findutils sed which bash
BuildRequires: java-11-openjdk asciidoc xmlto groovy
BuildArch: noarch
Recommends: gradle-doc gradle-src
%description
Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, Kotlin, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.
%package doc
Summary: Gradle documentation
%description doc
Documentation for gradle, a powerful build system for the JVM.
%package src
Summary: Gradle sources
%description src
Sources for gradle, a powerful build system for the JVM.
# See PKGBUILD on Arch Linux
%prep
%autosetup
cat <<EOF > gradle.sh
#!/bin/sh
export GRADLE_HOME=/usr/share/java/gradle
EOF
# remove ADOPTIUM contraint from all build related files
sed -i '/JvmVendorSpec.ADOPTIUM/d' \
build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts \
subprojects/docs/src/snippets/java/toolchain-filters/groovy/build.gradle \
subprojects/docs/src/snippets/java/toolchain-filters/kotlin/build.gradle.kts \
build-logic-commons/gradle-plugin/src/main/kotlin/common.kt
# inhibit automatic download of binary gradle
sed -i "s#distributionUrl=.*#distributionUrl=file\:${srcdir}/${pkgbase}-${pkgver}-all.zip#" \
gradle/wrapper/gradle-wrapper.properties
%build
export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"
./gradlew installAll \
-Porg.gradle.java.installations.auto-download=false \
-PfinalRelease=true \
-Pgradle_installPath="$(pwd)/dist" \
--no-configuration-cache
%install
cd dist
# install profile.d script
install -Dm755 gradle.sh %{buildroot}/etc/profile.d/
# create the necessary directory structure
install -d "%{buildroot}/usr/share/java/%{name}/bin"
install -d "%{buildroot}/usr/share/java/%{name}/lib/plugins"
install -d "%{buildroot}/usr/share/java/%{name}/init.d"
# copy across jar files
install -Dm644 lib/*.jar "%{buildroot}/usr/share/java/%{name}/lib"
install -Dm644 lib/plugins/*.jar "%{buildroot}/usr/share/java/%{name}/lib/plugins"
# copy across supporting text documentation and scripts
install -m644 NOTICE "%{buildroot}/usr/share/java/%{name}"
install -m755 bin/gradle "%{buildroot}/usr/share/java/%{name}/bin"
install -m644 init.d/*.* "%{buildroot}/usr/share/java/%{name}/init.d"
# link gradle script to /usr/bin
ln -s /usr/share/java/%{name}/bin/%{name} "%{buildroot}/usr/bin"
install -d %{buildroot}/usr/share/java/gradle/docs
cp -r docs/* %{buildroot}/usr/share/java/gradle/docs
install -d %{buildroot}/usr/share/java/gradle/src
cp -r src/* %{buildroot}/usr/share/java/gradle/src
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/licenses/%{name}/
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/licenses/%{name}-doc/
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/licenses/%{name}-src/
install -Dm644 %{SOURCE3} %{buildroot}/%{_datadir}/doc/%{name}/
install -Dm644 %{SOURCE3} %{buildroot}/%{_datadir}/doc/%{name}-doc/
install -Dm644 %{SOURCE3} %{buildroot}/%{_datadir}/doc/%{name}-src/
%files
%doc README.md
%license LICENSE
/etc/profile.d/gradle.sh
/usr/share/java/%{name}/
/usr/bin/%{name}
%files doc
%doc README.md
%license LICENSE
/usr/share/java/gradle/docs
%files src
%doc README.md
%license LICENSE
/usr/share/java/gradle/src
%changelog
* Tue Feb 7 2023 windowsboy111 <windowsboy111@fyralabs.com>
- Initial package
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("gradle/gradle"));