Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.2:Test
yast2-theme
yast2-theme.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yast2-theme.spec of Package yast2-theme
# # spec file for package yast2-theme (Version 2.18.10) # # Copyright (c) 2009 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/ # # norootforbuild Name: yast2-theme Version: 2.18.10 Release: 1.<RELEASE1> BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: yast2-theme-2.18.10.tar.bz2 Prefix: /usr Group: System/YaST License: GPL v2 or later BuildRequires: fdupes hicolor-icon-theme pkg-config update-desktop-files yast2-devtools BuildArch: noarch Summary: YaST2 - Theme %description Contains the SuSE Linux theme for YaST2. %package openSUSE License: GPL v2 or later Summary: YaST2 - Theme (openSUSE) Version: 2.18.10 Release: 1.<RELEASE1> Group: System/YaST Provides: yast2_theme = %{version} Provides: yast2-theme-UnitedLinux Provides: yast2-theme-openSUSE-any PreReq: /bin/ln Requires: hicolor-icon-theme Obsoletes: yast2-theme-SuSELinux Provides: yast2-theme-SuSELinux Obsoletes: yast2-theme-UnitedLinux Provides: yast2-theme-UnitedLinux %package openSUSE-Crystal License: GPL v2 or later Summary: YaST2 - Theme (openSUSE) Version: 2.18.10 Release: 1.<RELEASE1> Group: System/YaST Provides: yast2_theme = %{version} Provides: yast2-theme-openSUSE-any PreReq: /bin/ln yast2-theme-openSUSE %package openSUSE-Oxygen License: GPL v2 or later Summary: YaST2 - Theme (openSUSE) Version: 2.18.10 Release: 1.<RELEASE1> Group: System/YaST Provides: yast2_theme = %{version} Provides: yast2-theme-openSUSE-any PreReq: /bin/ln yast2-theme-openSUSE Conflicts: yast2-theme-openSUSE-Crystal %package SLE License: GPL v2 or later Summary: YaST2 - SLE Theme Version: 2.18.10 Release: 1.<RELEASE1> Group: System/YaST Provides: yast2_theme = %{version} Provides: yast2-theme-NLD = 0.4.5 Obsoletes: yast2-theme-NLD <= 0.4.5 PreReq: /bin/ln %description openSUSE This package contains the openSUSE theme for YaST2. %description openSUSE-Crystal This package contains the openSUSE theme for YaST2. %description openSUSE-Oxygen This package contains the openSUSE theme for YaST2. %description SLE This package contains the YaST2 theme for the SUSE Linux Enterprise Family. %prep %setup -n yast2-theme-2.18.10 %build %{prefix}/bin/y2tool y2autoconf %{prefix}/bin/y2tool y2automake autoreconf --force --install export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG" %{?suse_update_config:%{suse_update_config -f}} ./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} # V=1: verbose build in case we used AM_SILENT_RULES(yes) # so that RPM_OPT_FLAGS check works make %{?jobs:-j%jobs} V=1 %install make install DESTDIR="$RPM_BUILD_ROOT" [ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT" for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do d=${f##*/} %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop} done cp -R "$RPM_BUILD_ROOT/%{prefix}/share/doc/packages/yast2-theme" "$RPM_BUILD_ROOT/%{prefix}/share/doc/packages/yast2-theme-openSUSE" rm -rf "$RPM_BUILD_ROOT/%{prefix}/share/doc/packages/yast2-theme" # ghost file (not packed in RPM but listed) cd $RPM_BUILD_ROOT//usr/share/YaST2/theme/ rm -rf openSUSE-current ln -sn openSUSE openSUSE-current # # make icons available to GNOME control center (hicolor theme) # (bug #166008) mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/apps mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps cd $RPM_BUILD_ROOT//usr/share/YaST2/theme/openSUSE-current/icons for dir in 22x22 32x32 48x48 64x64; do cd $RPM_BUILD_ROOT//usr/share/YaST2/theme/openSUSE-current/icons/$dir/apps icons=$(ls *.png) cd $RPM_BUILD_ROOT/usr/share/icons/hicolor/$dir/apps for icon in $icons; do ln -s /usr/share/YaST2/theme/openSUSE-current/icons/$dir/apps/$icon . done done filelist=$(mktemp /tmp/fileListXXXXXX) cd $RPM_BUILD_ROOT//usr/share/YaST2/theme/openSUSE files=$(find . -type f) for subtheme in Crystal Oxygen; do cd $RPM_BUILD_ROOT//usr/share/YaST2/theme/openSUSE-$subtheme for file in $files; do mkdir -p $(dirname "$file") || true if ! test -f "$file"; then ln -s /usr/share/YaST2/theme/openSUSE/$file $file fi done done %fdupes $RPM_BUILD_ROOT//usr/share/YaST2/theme %clean rm -rf "$RPM_BUILD_ROOT" rm -rf $RPM_BUILD_ROOT//usr/share/YaST2/theme %post openSUSE cd /usr/share/YaST2/theme if ! test -d openSUSE-Crystal && ! test -d openSUSE-Oxygen; then ln -snf openSUSE openSUSE-current fi %post openSUSE-Crystal cd /usr/share/YaST2/theme ln -snf openSUSE-Crystal openSUSE-current %post openSUSE-Oxygen cd /usr/share/YaST2/theme ln -snf openSUSE-Oxygen openSUSE-current %files openSUSE %defattr(-,root,root) %dir /usr/share/YaST2/theme /usr/share/YaST2/theme/openSUSE /usr/share/icons/hicolor/*/apps/* %doc %{prefix}/share/doc/packages/yast2-theme-openSUSE # ghost file (not packed in RPM but listed) # remove the file when removing the RPM %ghost /usr/share/YaST2/theme/openSUSE-current %files openSUSE-Crystal %defattr(-,root,root) %dir /usr/share/YaST2/theme /usr/share/YaST2/theme/openSUSE-Crystal %files openSUSE-Oxygen %defattr(-,root,root) %dir /usr/share/YaST2/theme /usr/share/YaST2/theme/openSUSE-Oxygen %files SLE %defattr(-,root,root) %dir /usr/share/YaST2/theme /usr/share/YaST2/theme/SLE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor