File tahadz.spec of Package tahadz-release

Name:    tahadz-release
Version: 1.1
Release: 1
Summary: Taha Zerrouki Arabic Projects repo.
Url:     http://tahadz.com
Group:   System Environment/Base
License: GPL
Source0: tahadz-fedora.repo
Source1: tahadz-centos.repo
Source2: tahadz-opensuse.repo
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

%description
Taha Zerrouki Arabic Projects repo.
email : taha_zerrouki@gawab.com

%prep
echo "Nothing to prep"

%build
echo "Nothing to build"

%install
rm -rf $RPM_BUILD_ROOT
  
%if 0%{?fedora} || 0%{?centos_version}
install -d -m755 %{buildroot}%{_sysconfdir}/yum.repos.d
%if 0%{?fedora} 
# Yum .repo files
%{__install} -p -m644 %{S:0} \
    $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/tahadz.repo

%else
# Yum .repo files
%{__install} -p -m644 %{S:1} \
    $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/tahadz.repo
%endif
%endif

%if 0%{?suse_version}
install -d -m755 %{buildroot}%{_sysconfdir}/zypp/repos.d
# Zypper .repo files
%{__install} -p -m644 %{S:2} \
    $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d/tahadz.repo
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%if 0%{?fedora} || 0%{?centos_version}
%{_sysconfdir}/yum.repos.d/tahadz.repo
%endif
%if 0%{?suse_version}
%dir %{_sysconfdir}/zypp
%dir %{_sysconfdir}/zypp/repos.d
%{_sysconfdir}/zypp/repos.d/tahadz.repo
%endif

%changelog
* Sat Feb 02 2013 Muhammad Shaban <Mr.Muhammad@linuxac.org> 1.0-1
- Initial Build
openSUSE Build Service is sponsored by