File texlive-specs-r.spec of Package texlive-specs-r

# spec file for package texlive-specs-r
# Copyright (c) 2014 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

%define build_slice r
%define __perl_requires		%{nil}
%define __os_install_post       /usr/lib/rpm/brp-compress \\\
  %(ls /usr/lib/rpm/brp-suse.d/* 2> /dev/null | grep -vE 'check-la|boot-scripts|rpath|symlink|desktop|strip-debug|gcc-output|debuginfo|libtool|kernel-log') %{nil}
# skip-check-libtool-deps
%if 0%{?_with_debug:1}
%define __debug_install_post : > %{_builddir}/%{?buildsubdir}/debugfiles.list
%define debug_package %{nil}

# skip-check-libtool-deps
Name:           texlive-specs-r
Version:        2012
Release:        0
Summary:        One spec file for all TeX Live packages
License:        GPL-2.0+ and LPPL-1.0 and OFL-1.1 and SUSE-Public-Domain
Group:          Development/Tools/Building
Source0:        texlive-specs.tar.xz
Source1000:     r_und_s.doc.tar.xz
Source1001:     r_und_s.tar.xz
Source1002:     raleway.doc.tar.xz
Source1003:     raleway.tar.xz
Source1004:     ran_toks.doc.tar.xz
Source1005:     ran_toks.tar.xz
Source1006:     randbild.doc.tar.xz
Source1007:     randbild.tar.xz
Source1008:     randomwalk.doc.tar.xz
Source1009:     randomwalk.tar.xz
Source1010:     randtext.doc.tar.xz
Source1011:     randtext.tar.xz
Source1012:     rccol.doc.tar.xz
Source1013:     rccol.tar.xz
Source1014:     rcs-multi.doc.tar.xz
Source1015:     rcs-multi.tar.xz
Source1016:     rcs.doc.tar.xz
Source1017:     rcs.tar.xz
Source1018:     rcsinfo.doc.tar.xz
Source1019:     rcsinfo.tar.xz
Source1020:     readarray.doc.tar.xz
Source1021:     readarray.tar.xz
Source1022:     realboxes.doc.tar.xz
Source1023:     realboxes.tar.xz
Source1024:     realscripts.doc.tar.xz
Source1025:     realscripts.tar.xz
Source1026:     rec-thy.doc.tar.xz
Source1027:     rec-thy.tar.xz
Source1028:     recipe.doc.tar.xz
Source1029:     recipe.tar.xz
Source1030:     recipecard.doc.tar.xz
Source1031:     recipecard.tar.xz
Source1032:     rectopma.doc.tar.xz
Source1033:     rectopma.tar.xz
Source1034:     recycle.doc.tar.xz
Source1035:     recycle.tar.xz
Source1036:     refcheck.doc.tar.xz
Source1037:     refcheck.tar.xz
Source1038:     refman.doc.tar.xz
Source1039:     refman.tar.xz
Source1040:     refstyle.doc.tar.xz
Source1041:     refstyle.tar.xz
Source1042:     regcount.doc.tar.xz
Source1043:     regcount.tar.xz
Source1044:     regexpatch.doc.tar.xz
Source1045:     regexpatch.tar.xz
Source1046:     register.doc.tar.xz
Source1047:     register.tar.xz
Source1048:     regstats.doc.tar.xz
Source1049:     regstats.tar.xz
Source1050:     relenc.doc.tar.xz
Source1051:     relenc.tar.xz
Source1052:     relsize.doc.tar.xz
Source1053:     relsize.tar.xz
Source1054:     reotex.doc.tar.xz
Source1055:     reotex.tar.xz
Source1056:     repeatindex.doc.tar.xz
Source1057:     repeatindex.tar.xz
Source1058:     resphilosophica.doc.tar.xz
Source1059:     resphilosophica.tar.xz
Source1060:     resumecls.doc.tar.xz
Source1061:     resumecls.tar.xz
Source1062:     resumemac.doc.tar.xz
Source1063:     resumemac.tar.xz
Source1064:     reverxii.doc.tar.xz
Source1065:     revtex.doc.tar.xz
Source1066:     revtex.tar.xz
Source1067:     revtex4.doc.tar.xz
Source1068:     revtex4.tar.xz
Source1069:     rjlparshap.doc.tar.xz
Source1070:     rjlparshap.tar.xz
Source1071:     rlepsf.doc.tar.xz
Source1072:     rlepsf.tar.xz
Source1073:     rmpage.doc.tar.xz
Source1074:     rmpage.tar.xz
Source1075:     robustcommand.doc.tar.xz
Source1076:     robustcommand.tar.xz
Source1077:     robustindex.doc.tar.xz
Source1078:     robustindex.tar.xz
Source1079:     roex.tar.xz
Source1080:     romanbar.doc.tar.xz
Source1081:     romanbar.tar.xz
Source1082:     romande.doc.tar.xz
Source1083:     romande.tar.xz
Source1084:     romanneg.doc.tar.xz
Source1085:     romanneg.tar.xz
Source1086:     romannum.doc.tar.xz
Source1087:     romannum.tar.xz
Source1088:     rotating.doc.tar.xz
Source1089:     rotating.tar.xz
Source1090:     rotfloat.doc.tar.xz
Source1091:     rotfloat.tar.xz
Source1092:     rotpages.doc.tar.xz
Source1093:     rotpages.tar.xz
Source1094:     roundbox.doc.tar.xz
Source1095:     roundbox.tar.xz
Source1096:     rrgtrees.doc.tar.xz
Source1097:     rrgtrees.tar.xz
Source1098:     rsc.doc.tar.xz
Source1099:     rsc.tar.xz
Source1100:     rsfs.doc.tar.xz
Source1101:     rsfs.tar.xz
Source1102:     rsfso.doc.tar.xz
Source1103:     rsfso.tar.xz
Source1104:     rterface.doc.tar.xz
Source1105:     rterface.tar.xz
Source1106:     rtkinenc.doc.tar.xz
Source1107:     rtkinenc.tar.xz
Source1108:     rtklage.doc.tar.xz
Source1109:     rtklage.tar.xz
Source1110:     ruhyphen.tar.xz
Source1111:     russ.doc.tar.xz
Source1112:     russ.tar.xz
Source1113:     rviewport.doc.tar.xz
Source1114:     rviewport.tar.xz
Source1115:     rvwrite.doc.tar.xz
Source1116:     rvwrite.tar.xz
Source1117:     ryethesis.doc.tar.xz
Source1118:     ryethesis.tar.xz
NoSource:       1000
NoSource:       1001
NoSource:       1002
NoSource:       1003
NoSource:       1004
NoSource:       1005
NoSource:       1006
NoSource:       1007
NoSource:       1008
NoSource:       1009
NoSource:       1010
NoSource:       1011
NoSource:       1012
NoSource:       1013
NoSource:       1014
NoSource:       1015
NoSource:       1016
NoSource:       1017
NoSource:       1018
NoSource:       1019
NoSource:       1020
NoSource:       1021
NoSource:       1022
NoSource:       1023
NoSource:       1024
NoSource:       1025
NoSource:       1026
NoSource:       1027
NoSource:       1028
NoSource:       1029
NoSource:       1030
NoSource:       1031
NoSource:       1032
NoSource:       1033
NoSource:       1034
NoSource:       1035
NoSource:       1036
NoSource:       1037
NoSource:       1038
NoSource:       1039
NoSource:       1040
NoSource:       1041
NoSource:       1042
NoSource:       1043
NoSource:       1044
NoSource:       1045
NoSource:       1046
NoSource:       1047
NoSource:       1048
NoSource:       1049
NoSource:       1050
NoSource:       1051
NoSource:       1052
NoSource:       1053
NoSource:       1054
NoSource:       1055
NoSource:       1056
NoSource:       1057
NoSource:       1058
NoSource:       1059
NoSource:       1060
NoSource:       1061
NoSource:       1062
NoSource:       1063
NoSource:       1064
NoSource:       1065
NoSource:       1066
NoSource:       1067
NoSource:       1068
NoSource:       1069
NoSource:       1070
NoSource:       1071
NoSource:       1072
NoSource:       1073
NoSource:       1074
NoSource:       1075
NoSource:       1076
NoSource:       1077
NoSource:       1078
NoSource:       1079
NoSource:       1080
NoSource:       1081
NoSource:       1082
NoSource:       1083
NoSource:       1084
NoSource:       1085
NoSource:       1086
NoSource:       1087
NoSource:       1088
NoSource:       1089
NoSource:       1090
NoSource:       1091
NoSource:       1092
NoSource:       1093
NoSource:       1094
NoSource:       1095
NoSource:       1096
NoSource:       1097
NoSource:       1098
NoSource:       1099
NoSource:       1100
NoSource:       1101
NoSource:       1102
NoSource:       1103
NoSource:       1104
NoSource:       1105
NoSource:       1106
NoSource:       1107
NoSource:       1108
NoSource:       1109
NoSource:       1110
NoSource:       1111
NoSource:       1112
NoSource:       1113
NoSource:       1114
NoSource:       1115
NoSource:       1116
NoSource:       1117
NoSource:       1118
BuildRequires:  buffer
BuildRequires:  ed
BuildRequires:  file
BuildRequires:  fontconfig
BuildRequires:  ghostscript-fonts-std
BuildRequires:  mkfontdir
BuildRequires:  mkfontscale
BuildRequires:  texlive-filesystem
BuildConflicts: texinfo
BuildRequires:  xorg-x11-fonts-core
BuildRequires:  xz
BuildArch:      noarch

Use one rpm spec file for repackaging the texmf/texmf-dist
the several tar balls of TeX Live. 

pushd %_sourcedir
    chmod g-w *.tar.xz
%setup -n texlive-specs -q
(cat > Makefile)<<'EOF'
 topdir=$(abspath ../..)
 SHELL := /bin/bash

%%.rpm: root=$(rootdir)/$*.noarch
%%.rpm: %%.spec
	exec > >(exec buffer -s 256k -m 1m -u 10) 2>&1; \
	rpmbuild -ba --buildroot $(root) --define '_srcdefattr (-,root,root)' --define 'rlobs %release' %{?disturl:--define 'disturl %disturl'} $< && \
	rm -rf $(topdir)/BUILD/$*-[0-9]*

%if %{defined build_slice}
specs := $(foreach spec,%build_slice,$(wildcard texlive-$(spec)*.spec))
specs := $(sort $(filter-out texlive-specs.specs,$(wildcard *.spec)))
rpms := $(specs:.spec=.rpm)

all: $(rpms)
make topdir=%{_topdir} %{?_smp_mflags}



openSUSE Build Service is sponsored by