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

#
# spec file for package texlive-specs-i
#
# 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 i
%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-i
Version:        2012
Release:        0
Summary:        One spec file for all TeX Live packages
License:        GFDL-1.2 and GPL-2.0+ and LPPL-1.0 and LPPL-1.3c and OFL-1.1 and SUSE-Public-Domain
Group:          Development/Tools/Building
Url:            http://build.opensuse.org/package/show?package=texlive-specs-i&project=Publishing:TeXLive
Source0:        texlive-specs.tar.xz
Source1000:     ibycus-babel.doc.tar.xz
Source1001:     ibycus-babel.tar.xz
Source1002:     ibygrk.doc.tar.xz
Source1003:     ibygrk.tar.xz
Source1004:     icsv.doc.tar.xz
Source1005:     icsv.tar.xz
Source1006:     idxlayout.doc.tar.xz
Source1007:     idxlayout.tar.xz
Source1008:     ieeepes.doc.tar.xz
Source1009:     ieeepes.tar.xz
Source1010:     ifetex.doc.tar.xz
Source1011:     ifetex.tar.xz
Source1012:     ifluatex.doc.tar.xz
Source1013:     ifluatex.tar.xz
Source1014:     ifmslide.doc.tar.xz
Source1015:     ifmslide.tar.xz
Source1016:     ifmtarg.doc.tar.xz
Source1017:     ifmtarg.tar.xz
Source1018:     ifnextok.doc.tar.xz
Source1019:     ifnextok.tar.xz
Source1020:     ifoddpage.doc.tar.xz
Source1021:     ifoddpage.tar.xz
Source1022:     ifplatform.doc.tar.xz
Source1023:     ifplatform.tar.xz
Source1024:     ifsym.doc.tar.xz
Source1025:     ifsym.tar.xz
Source1026:     iftex.doc.tar.xz
Source1027:     iftex.tar.xz
Source1028:     ifthenx.doc.tar.xz
Source1029:     ifthenx.tar.xz
Source1030:     ifxetex.doc.tar.xz
Source1031:     ifxetex.tar.xz
Source1032:     iitem.doc.tar.xz
Source1033:     iitem.tar.xz
Source1034:     ijmart.doc.tar.xz
Source1035:     ijmart.tar.xz
Source1036:     ijqc.doc.tar.xz
Source1037:     ijqc.tar.xz
Source1038:     imac.doc.tar.xz
Source1039:     imac.tar.xz
Source1040:     image-gallery.doc.tar.xz
Source1041:     image-gallery.tar.xz
Source1042:     imakeidx.doc.tar.xz
Source1043:     imakeidx.tar.xz
Source1044:     impatient-fr.doc.tar.xz
Source1045:     impatient-fr.tar.xz
Source1046:     impatient.doc.tar.xz
Source1047:     impatient.tar.xz
Source1048:     impnattypo.doc.tar.xz
Source1049:     impnattypo.tar.xz
Source1050:     import.doc.tar.xz
Source1051:     import.tar.xz
Source1052:     imsproc.doc.tar.xz
Source1053:     imsproc.tar.xz
Source1054:     imtekda.doc.tar.xz
Source1055:     imtekda.tar.xz
Source1056:     incgraph.doc.tar.xz
Source1057:     incgraph.tar.xz
Source1058:     inconsolata.doc.tar.xz
Source1059:     inconsolata.tar.xz
Source1060:     index.doc.tar.xz
Source1061:     index.tar.xz
Source1062:     initials.doc.tar.xz
Source1063:     initials.tar.xz
Source1064:     inlinebib.doc.tar.xz
Source1065:     inlinebib.tar.xz
Source1066:     inlinedef.doc.tar.xz
Source1067:     inlinedef.tar.xz
Source1068:     inputtrc.doc.tar.xz
Source1069:     inputtrc.tar.xz
Source1070:     insbox.doc.tar.xz
Source1071:     insbox.tar.xz
Source1072:     interactiveworkbook.doc.tar.xz
Source1073:     interactiveworkbook.tar.xz
Source1074:     interfaces.doc.tar.xz
Source1075:     interfaces.tar.xz
Source1076:     interpreter.doc.tar.xz
Source1077:     interpreter.tar.xz
Source1078:     interval.doc.tar.xz
Source1079:     interval.tar.xz
Source1080:     intro-scientific.doc.tar.xz
Source1081:     intro-scientific.tar.xz
Source1082:     inversepath.doc.tar.xz
Source1083:     inversepath.tar.xz
Source1084:     invoice.doc.tar.xz
Source1085:     invoice.tar.xz
Source1086:     ionumbers.doc.tar.xz
Source1087:     ionumbers.tar.xz
Source1088:     iopart-num.doc.tar.xz
Source1089:     iopart-num.tar.xz
Source1090:     ipaex-type1.doc.tar.xz
Source1091:     ipaex-type1.tar.xz
Source1092:     ipaex.doc.tar.xz
Source1093:     ipaex.tar.xz
Source1094:     iso.doc.tar.xz
Source1095:     iso.tar.xz
Source1096:     iso10303.doc.tar.xz
Source1097:     iso10303.tar.xz
Source1098:     isodate.doc.tar.xz
Source1099:     isodate.tar.xz
Source1100:     isodoc.doc.tar.xz
Source1101:     isodoc.tar.xz
Source1102:     isomath.doc.tar.xz
Source1103:     isomath.tar.xz
Source1104:     isonums.doc.tar.xz
Source1105:     isonums.tar.xz
Source1106:     isorot.doc.tar.xz
Source1107:     isorot.tar.xz
Source1108:     isotope.doc.tar.xz
Source1109:     isotope.tar.xz
Source1110:     issuulinks.doc.tar.xz
Source1111:     issuulinks.tar.xz
Source1112:     itnumpar.doc.tar.xz
Source1113:     itnumpar.tar.xz
Source1114:     iwhdp.doc.tar.xz
Source1115:     iwhdp.tar.xz
Source1116:     iwona.doc.tar.xz
Source1117:     iwona.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
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
openSUSE Build Service is sponsored by