Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.package
Commits
edbe5dbf
Commit
edbe5dbf
authored
Sep 20, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obs: Improve .spec files handling.
parent
502a4c80
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
87 deletions
+52
-87
obs/_generic/build-scripts/20obs.sh
obs/_generic/build-scripts/20obs.sh
+1
-0
obs/_generic/distributions/_generic.spec.in
obs/_generic/distributions/_generic.spec.in
+51
-0
obs/fluent-bit/distributions/fluent-bit.spec.in
obs/fluent-bit/distributions/fluent-bit.spec.in
+0
-87
No files found.
obs/_generic/build-scripts/20obs.sh
View file @
edbe5dbf
...
@@ -16,6 +16,7 @@ cd "$INITIAL_DIR"
...
@@ -16,6 +16,7 @@ cd "$INITIAL_DIR"
# with the one from <software_name>
# with the one from <software_name>
copy_and_solve_templates
"
$DISTRIB_FILES_GENERIC_DIR
"
"
$OBS_DIR
"
copy_and_solve_templates
"
$DISTRIB_FILES_GENERIC_DIR
"
"
$OBS_DIR
"
mv
"
$OBS_DIR
"
/_generic.dsc
"
$OBS_DIR
/
$SOFTWARE_AND_VERSION
.dsc"
mv
"
$OBS_DIR
"
/_generic.dsc
"
$OBS_DIR
/
$SOFTWARE_AND_VERSION
.dsc"
mv
"
$OBS_DIR
"
/_generic.spec
"
$OBS_DIR
/
$SOFTWARE_NAME
.spec"
copy_and_solve_templates
"
$DISTRIB_FILES_SOFTWARE_DIR
"
"
$OBS_DIR
"
copy_and_solve_templates
"
$DISTRIB_FILES_SOFTWARE_DIR
"
"
$OBS_DIR
"
# ARCHIVES FILES
# ARCHIVES FILES
...
...
obs/_generic/distributions/_generic.spec.in
0 → 100644
View file @
edbe5dbf
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define compound_version %SOFTWARE_VERSION%.%DEBIAN_REVISION%
%define unzipped_tarball %SOFTWARE_AND_VERSION%
Summary:%PACKAGE_SHORT_DESCRIPTION%
Name: %SOFTWARE_NAME%
Version:%{compound_version}
Release:%{compound_version}
Source0: %{unzipped_tarball}.tar.gz
Packager: %MAINTAINER_NAME% %MAINTAINER_EMAIL%
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: patch
BuildRequires: wget
BuildRequires: chrpath
BuildRequires: openssl-devel
%if 0%{?centos_version} <= 700 || 0%{?rhel_version} <= 700 || 0%{?suse_version} < 1300 || 0%{?sle_version} < 130000
BuildRequires: python
BuildRequires: python-devel
%else
BuildRequires: python3
BuildRequires: python3-devel
%endif
AutoReqProv: no
%prep
rm -rf $RPM_BUILD_DIR/%{unzipped_tarball}
zcat $RPM_SOURCE_DIR/%{unzipped_tarball}.tar.gz | tar -xvf -
%build
cd $RPM_BUILD_DIR/%{unzipped_tarball}
make
%install
cd $RPM_BUILD_DIR/%{unzipped_tarball}
%files
%defattr(-,root,root)
%pre
%post
%preun
%postun
obs/fluent-bit/distributions/fluent-bit.spec.in
deleted
100644 → 0
View file @
502a4c80
##############################################################################
#
# Copyright (c) 2010 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define compound_version 1.1
%define slapos_directory %SOFTWARE_AND_VERSION%
Summary:Client-side to deploy applications with SlapOS
Name: slapos-node
Version:%{compound_version}
Release:%{compound_version}
License:GPL
Group: Application/Network
Source0: %{slapos_directory}.tar.gz
URL: http://community.slapos.org/
Vendor: Vifib
Packager: Thomas Gambier <thomas.gambier@nexedi.com>
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: patch
BuildRequires: wget
BuildRequires: chrpath
BuildRequires: openssl-devel
%if 0%{?centos_version} <= 700 || 0%{?rhel_version} <= 700 || 0%{?suse_version} < 1300 || 0%{?sle_version} < 130000
BuildRequires: python
BuildRequires: python-devel
%else
BuildRequires: python3
BuildRequires: python3-devel
%endif
Requires: gcc-c++, make, patch, wget
AutoReqProv: no
%description
Special compilation of fluent-bit
%prep
rm -rf $RPM_BUILD_DIR/%{slapos_directory}
zcat $RPM_SOURCE_DIR/%{slapos_directory}.tar.gz | tar -xvf -
%build
cd $RPM_BUILD_DIR/%{slapos_directory}
make
%install
cd $RPM_BUILD_DIR/%{slapos_directory}
%files
%defattr(-,root,root)
%pre
%post
%preun
%postun
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment