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

#
# spec file for package texlive-specs-x
#
# 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 http://bugs.opensuse.org/
#


%define build_slice x
%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}
%endif

# skip-check-libtool-deps
Name:           texlive-specs-x
Version:        2012
Release:        0
Summary:        One spec file for all TeX Live packages
License:        Apache-1.0 and GPL-2.0+ and LPPL-1.0 and OFL-1.1 and SUSE-Public-Domain
Group:          Development/Tools/Building
Url:            http://build.opensuse.org/package/show?package=texlive-specs-x&project=Publishing:TeXLive
Source0:        texlive-specs.tar.xz
Source1000:     xargs.doc.tar.xz
Source1001:     xargs.tar.xz
Source1002:     xbmc.tar.xz
Source1003:     xcite.doc.tar.xz
Source1004:     xcite.tar.xz
Source1005:     xcolor.doc.tar.xz
Source1006:     xcolor.tar.xz
Source1007:     xcomment.doc.tar.xz
Source1008:     xcomment.tar.xz
Source1009:     xcookybooky.doc.tar.xz
Source1010:     xcookybooky.tar.xz
Source1011:     xdoc.doc.tar.xz
Source1012:     xdoc.tar.xz
Source1013:     xdvi.doc.tar.xz
Source1014:     xdvi.tar.xz
Source1015:     xecjk.doc.tar.xz
Source1016:     xecjk.tar.xz
Source1017:     xecolor.doc.tar.xz
Source1018:     xecolor.tar.xz
Source1019:     xecyr.doc.tar.xz
Source1020:     xecyr.tar.xz
Source1021:     xeindex.doc.tar.xz
Source1022:     xeindex.tar.xz
Source1023:     xepersian.doc.tar.xz
Source1024:     xepersian.tar.xz
Source1025:     xesearch.doc.tar.xz
Source1026:     xesearch.tar.xz
Source1027:     xetex-def.tar.xz
Source1028:     xetex-devanagari.doc.tar.xz
Source1029:     xetex-devanagari.tar.xz
Source1030:     xetex-itrans.doc.tar.xz
Source1031:     xetex-itrans.tar.xz
Source1032:     xetex-pstricks.doc.tar.xz
Source1033:     xetex-pstricks.tar.xz
Source1034:     xetex-tibetan.doc.tar.xz
Source1035:     xetex-tibetan.tar.xz
Source1036:     xetex.doc.tar.xz
Source1037:     xetex.post
Source1038:     xetex.tar.xz
Source1039:     xetex_runfiles.list
Source1040:     xetexconfig.tar.xz
Source1041:     xetexfontinfo.doc.tar.xz
Source1042:     xetexfontinfo.tar.xz
Source1043:     xetexko.doc.tar.xz
Source1044:     xetexko.tar.xz
Source1045:     xetexref.doc.tar.xz
Source1046:     xevlna.doc.tar.xz
Source1047:     xevlna.tar.xz
Source1048:     xfor.doc.tar.xz
Source1049:     xfor.tar.xz
Source1050:     xgreek.doc.tar.xz
Source1051:     xgreek.tar.xz
Source1052:     xhfill.doc.tar.xz
Source1053:     xhfill.tar.xz
Source1054:     xifthen.doc.tar.xz
Source1055:     xifthen.tar.xz
Source1056:     xint.doc.tar.xz
Source1057:     xint.tar.xz
Source1058:     xits.doc.tar.xz
Source1059:     xits.tar.xz
Source1060:     xkeyval.doc.tar.xz
Source1061:     xkeyval.tar.xz
Source1062:     xlop.doc.tar.xz
Source1063:     xlop.tar.xz
Source1064:     xltxtra.doc.tar.xz
Source1065:     xltxtra.tar.xz
Source1066:     xmltex.doc.tar.xz
Source1067:     xmltex.tar.xz
Source1068:     xmpincl.doc.tar.xz
Source1069:     xmpincl.tar.xz
Source1070:     xnewcommand.doc.tar.xz
Source1071:     xnewcommand.tar.xz
Source1072:     xoptarg.doc.tar.xz
Source1073:     xoptarg.tar.xz
Source1074:     xpatch.doc.tar.xz
Source1075:     xpatch.tar.xz
Source1076:     xpeek.doc.tar.xz
Source1077:     xpeek.tar.xz
Source1078:     xpicture.doc.tar.xz
Source1079:     xpicture.tar.xz
Source1080:     xpinyin.doc.tar.xz
Source1081:     xpinyin.tar.xz
Source1082:     xpunctuate.doc.tar.xz
Source1083:     xpunctuate.tar.xz
Source1084:     xq.doc.tar.xz
Source1085:     xq.tar.xz
Source1086:     xskak.doc.tar.xz
Source1087:     xskak.tar.xz
Source1088:     xstring.doc.tar.xz
Source1089:     xstring.tar.xz
Source1090:     xtab.doc.tar.xz
Source1091:     xtab.tar.xz
Source1092:     xunicode.doc.tar.xz
Source1093:     xunicode.tar.xz
Source1094:     xwatermark.doc.tar.xz
Source1095:     xwatermark.tar.xz
Source1096:     xyling.doc.tar.xz
Source1097:     xyling.tar.xz
Source1098:     xypic-tut-pt.doc.tar.xz
Source1099:     xypic.doc.tar.xz
Source1100:     xypic.tar.xz
Source1101:     xytree.doc.tar.xz
Source1102:     xytree.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:       1038
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
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

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

%prep
pushd %_sourcedir
    chmod g-w *.tar.xz
popd
%setup -n texlive-specs -q
%build
(cat > Makefile)<<'EOF'
 topdir=$(abspath ../..)
rootdir=$(topdir)/BUILDROOT
 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))
%else
specs := $(sort $(filter-out texlive-specs.specs,$(wildcard *.spec)))
%endif
rpms := $(specs:.spec=.rpm)

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

%install

%files
%defattr(-,root,root,0755)

%changelog