Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:taro2ss
yadokari-release-18
yadokari-release.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yadokari-release.spec of Package yadokari-release-18
%define release_name Yadokari %define dist_version 18 %define fusion_ver00 18 %define fusion_ver01 19 %define fusion_ver02 20 Summary: Yadokari release files Name: yadokari-release Version: 18 Release: 1 License: GPLv2 Group: System Environment/Base Source: %{name}-%{version}.tar.bz2 Obsoletes: redhat-release Provides: redhat-release = %{version}-%{release} Provides: system-release = %{version}-%{release} # Comment this out if we're building for a non-rawhide target # Requires: yadokari-release-rawhide = %{version}-%{release} BuildArch: noarch Conflicts: fedora-release Conflicts: generic-release %description Yadokari release files such as yum configs and various /etc/ files that define the release. This package explicitly is a replacement for the trademarked release package, if you are unable for any reason to abide by the trademark restrictions on that release package. %package rawhide Summary: Rawhide repo definitions Requires: yadokari-release = %{version}-%{release} Conflicts: fedora-release-rawhide Conflicts: generic-release-rawhide %description rawhide This package provides the rawhide repo definitions. %package notes Summary: Release Notes License: Open Publication Group: System Environment/Base Provides: system-release-notes = %{version}-%{release} Conflicts: fedora-release-notes Conflicts: generic-release-notes %description notes Yadokari release notes package. This package explicitly is a replacement for the trademarked release-notes package, if you are unable for any reason to abide by the trademark restrictions on that release-notes package. Please note that there is no actual useful content here. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc echo "Yadokari release %{version} (%{release_name})" > $RPM_BUILD_ROOT/etc/fedora-release echo "cpe://o:yadokari:yadokari:%{version}" > $RPM_BUILD_ROOT/etc/system-release-cpe cp -p $RPM_BUILD_ROOT/etc/fedora-release $RPM_BUILD_ROOT/etc/issue echo "Kernel \r on an \m (\l)" >> $RPM_BUILD_ROOT/etc/issue cp -p $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net echo >> $RPM_BUILD_ROOT/etc/issue ln -s fedora-release $RPM_BUILD_ROOT/etc/redhat-release ln -s fedora-release $RPM_BUILD_ROOT/etc/system-release cat << EOF >>$RPM_BUILD_ROOT/etc/os-release NAME=Yadokari VERSION="%{version} (%{release_name})" ID=yadokari VERSION_ID=%{version} PRETTY_NAME="Yadokari %{version} (%{release_name})" ANSI_COLOR="0;34" EOF install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/ # Install all the keys, link the primary keys to primary arch files # and to compat yadokari location pushd $RPM_BUILD_ROOT/etc/pki/rpm-gpg/ for arch in i386 x86_64 do ln -s RPM-GPG-KEY-fedora-%{dist_version}-primary RPM-GPG-KEY-fedora-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00}-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-$arch done ln -s RPM-GPG-KEY-fedora-%{dist_version}-primary RPM-GPG-KEY-fedora ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00} ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01} ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02} ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-primary RPM-GPG-KEY-rpmfusion-free-fedora-latest ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-primary RPM-GPG-KEY-rpmfusion-free-fedora-rawhide ln -s RPM-GPG-KEY-yadokari-%{dist_version}-primary RPM-GPG-KEY-yadokari-%{dist_version} for arch in arm armhfp arm64 ppc ppc64 s390 s390x sparc sparc64 do ln -s RPM-GPG-KEY-fedora-%{dist_version}-secondary RPM-GPG-KEY-fedora-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver00}-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver01}-$arch ln -s RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-primary RPM-GPG-KEY-rpmfusion-free-fedora-%{fusion_ver02}-$arch done popd install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d #for file in fedora*repo ; do # install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d #done #for file in rpmfusion*repo ; do # install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d #done for file in *.repo ; do install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d done # Set up the dist tag macros install -d -m 755 $RPM_BUILD_ROOT/etc/rpm cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF # dist macros. %%fedora %{dist_version} %%dist .fc%{dist_version} %%fc%{dist_version} 1 EOF %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc GPL %config %attr(0644,root,root) /etc/os-release %config %attr(0644,root,root) /etc/fedora-release /etc/redhat-release /etc/system-release %config %attr(0644,root,root) /etc/system-release-cpe %dir /etc/yum.repos.d %config(noreplace) /etc/yum.repos.d/fedora.repo %config(noreplace) /etc/yum.repos.d/fedora-updates*.repo %config(noreplace) /etc/yum.repos.d/rpmfusion-free*.repo %config(noreplace) /etc/yum.repos.d/yadokari*.repo %config(noreplace) %attr(0644,root,root) /etc/issue %config(noreplace) %attr(0644,root,root) /etc/issue.net %config %attr(0644,root,root) /etc/rpm/macros.dist %dir /etc/pki/rpm-gpg /etc/pki/rpm-gpg/* %files notes %defattr(-,root,root,-) %doc README.Yadokari-Release-Notes %files rawhide %defattr(-,root,root,-) %config(noreplace) /etc/yum.repos.d/fedora-rawhide.repo %changelog * Wed Feb 06 2013 Shintaro Shinozaki <taro@yadokari-linux.org> - 18-1 - Forked from generic-release
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