Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci integration #114

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions Rakefile
@@ -0,0 +1,6 @@
require "yast/rake"

Packaging.configuration do |conf|
#lets ignore license check for now
conf.skip_license_check << /.*/
end
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.0.9
3.1.0
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 02 17:59:55 UTC 2013 - lslezak@suse.cz

- do not use *.spec.in template, use *.spec file with RPM macros
instead
- 3.1.0

-------------------------------------------------------------------
Tue Sep 24 10:03:12 UTC 2013 - jreidinger@suse.com

Expand Down
161 changes: 93 additions & 68 deletions yast2.spec.in → package/yast2.spec
@@ -1,11 +1,34 @@
@HEADER-COMMENT@
#
# spec file for package yast2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name: yast2
Version: 3.1.0
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2

@HEADER@
Group: System/YaST
License: GPL-2.0
Source1: yast2-rpmlintrc

BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-perl-bindings yast2-testsuite
BuildRequires: perl-XML-Writer update-desktop-files yast2-perl-bindings yast2-testsuite
BuildRequires: yast2-devtools >= 3.0.6
# Needed already in build time
BuildRequires: yast2-core >= 2.18.12 yast2-pkg-bindings >= 2.20.3 yast2-ycp-ui-bindings >= 2.18.4

Expand Down Expand Up @@ -116,34 +139,36 @@ Summary: YaST2 - Development Scripts and Documentation
This package contains scripts and data needed for a SUSE Linux
installation with YaST2.

@PREP@
%prep
%setup -n %{name}-%{version}

@BUILD@
%build
%yast_build

# removed explicit adding of translations to group desktop files, since it is covered by the general call (they are in a subdirectory) and it caused build fail

@INSTALL@

mkdir -p "$RPM_BUILD_ROOT"@clientdir@
mkdir -p "$RPM_BUILD_ROOT"@desktopdir@
mkdir -p "$RPM_BUILD_ROOT"@imagedir@
mkdir -p "$RPM_BUILD_ROOT"@localedir@
mkdir -p "$RPM_BUILD_ROOT"@moduledir@
mkdir -p "$RPM_BUILD_ROOT"@scrconfdir@
mkdir -p "$RPM_BUILD_ROOT"@ybindir@
mkdir -p "$RPM_BUILD_ROOT"@ydatadir@
mkdir -p "$RPM_BUILD_ROOT"@yncludedir@
mkdir -p "$RPM_BUILD_ROOT"@vardir@
mkdir -p "$RPM_BUILD_ROOT"@schemadir@/control/rnc
mkdir -p "$RPM_BUILD_ROOT"@schemadir@/autoyast/rnc
%install
%yast_install

mkdir -p "$RPM_BUILD_ROOT"%{yast_clientdir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_desktopdir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_imagedir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_localedir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_moduledir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_scrconfdir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_ybindir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_ydatadir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_yncludedir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_vardir}
mkdir -p "$RPM_BUILD_ROOT"%{yast_schemadir}/control/rnc
mkdir -p "$RPM_BUILD_ROOT"%{yast_schemadir}/autoyast/rnc
mkdir -p "$RPM_BUILD_ROOT"/etc/YaST2

# symlink the yardoc duplicates, saves over 2MB in installed system
# (the RPM package size is decreased just by few kilobytes
# because of the compression)
%fdupes -s %buildroot/%_prefix/share/doc/packages/yast2

@CLEAN@

%post
%{fillup_only -n yast2}
Expand All @@ -153,77 +178,77 @@ mkdir -p "$RPM_BUILD_ROOT"/etc/YaST2

# basic directory structure

%dir @clientdir@
%dir @desktopdir@
@desktopdir@/groups
%dir @imagedir@
%dir @localedir@
%dir @moduledir@
%dir @scrconfdir@
%dir @ybindir@
%dir @ydatadir@
%dir @yncludedir@
%dir @vardir@
%dir @schemadir@
%dir @schemadir@/control
%dir @schemadir@/control/rnc
%dir @schemadir@/autoyast
%dir @schemadir@/autoyast/rnc
%dir %{yast_clientdir}
%dir %{yast_desktopdir}
%{yast_desktopdir}/groups
%dir %{yast_imagedir}
%dir %{yast_localedir}
%dir %{yast_moduledir}
%dir %{yast_scrconfdir}
%dir %{yast_ybindir}
%dir %{yast_ydatadir}
%dir %{yast_yncludedir}
%dir %{yast_vardir}
%dir %{yast_schemadir}
%dir %{yast_schemadir}/control
%dir %{yast_schemadir}/control/rnc
%dir %{yast_schemadir}/autoyast
%dir %{yast_schemadir}/autoyast/rnc
%dir /etc/YaST2

# yast2

@ydatadir@/*.ycp
@clientdir@/*
@moduledir@/*
@scrconfdir@/*
@ybindir@/*
@agentdir@/ag_*
%{yast_ydatadir}/*.ycp
%{yast_clientdir}/*
%{yast_moduledir}/*
%{yast_scrconfdir}/*
%{yast_ybindir}/*
%{yast_agentdir}/ag_*
/etc/bash_completion.d/yast2*.sh
/etc/YaST2/XVersion
/var/adm/fillup-templates/sysconfig.yast2

# documentation (not included in devel subpackage)
%doc %dir @docdir@
%doc @docdir@/COPYING
%doc @docdir@/README
%doc %dir %{yast_docdir}
%doc %{yast_docdir}/COPYING
%doc %{yast_docdir}/README
%doc %{_mandir}/*/*

/sbin/*

# wizard
%dir @yncludedir@/wizard
@yncludedir@/wizard/*.rb
%dir %{yast_yncludedir}/wizard
%{yast_yncludedir}/wizard/*.rb

#packags
%dir @yncludedir@/packages
@yncludedir@/packages/*.rb
%dir %{yast_yncludedir}/packages
%{yast_yncludedir}/packages/*.rb

#system
%dir @yncludedir@/hwinfo
@yncludedir@/hwinfo/*.rb
@desktopdir@/messages.desktop
%dir %{yast_yncludedir}/hwinfo
%{yast_yncludedir}/hwinfo/*.rb
%{yast_desktopdir}/messages.desktop

# documentation

%files devel-doc
%defattr(-,root,root)

%doc @docdir@/autodocs
%doc @docdir@/commandline
%doc @docdir@/control
%doc @docdir@/cron
%doc @docdir@/cwm
%doc @docdir@/desktop
%doc @docdir@/gpg
%doc @docdir@/log
%doc @docdir@/network
%doc @docdir@/packages
%doc @docdir@/runlevel
%doc @docdir@/sequencer
%doc @docdir@/system
%doc @docdir@/types
%doc @docdir@/wizard
%doc @docdir@/xml
%doc %{yast_docdir}/autodocs
%doc %{yast_docdir}/commandline
%doc %{yast_docdir}/control
%doc %{yast_docdir}/cron
%doc %{yast_docdir}/cwm
%doc %{yast_docdir}/desktop
%doc %{yast_docdir}/gpg
%doc %{yast_docdir}/log
%doc %{yast_docdir}/network
%doc %{yast_docdir}/packages
%doc %{yast_docdir}/runlevel
%doc %{yast_docdir}/sequencer
%doc %{yast_docdir}/system
%doc %{yast_docdir}/types
%doc %{yast_docdir}/wizard
%doc %{yast_docdir}/xml

%changelog