Package libfonts: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | Group: System/Libraries # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java BuildRequires: unzip # END SourceDeps(oneline) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-default # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: libfonts Version: 1.1.3 Release: alt1_37jpp11 Summary: TrueType Font Layouting License: LGPLv2 and UCD #Original source: http://downloads.sourceforge.net/jfreereport/%%{name}-%%{version}.zip #unzip, find . -name "*.jar" -exec rm {} \;, rm -r patches #to simplify the licensing Source: %{name}-%{version}-jars-itextpatch-deleted.zip URL: http://reporting.pentaho.org/ BuildRequires: ant jpackage-utils libloader >= 1.1.3 Requires: jpackage-utils libloader >= 1.1.3 BuildArch: noarch Patch0: libfonts-1.1.2.build.patch Patch1: libfonts-1.1.2.java11.patch Patch2: libfonts-1.1.3-remove-antcontrib-support.patch Patch3: libfonts-1.1.3-remove-commons-logging.patch Source44: import.info %description LibFonts is a library developed to support advanced layouting in JFreeReport. This library allows to read TrueType-Font files to extract layouting specific informations. %package javadoc Group: Development/Java Summary: Javadoc for %{name} Requires: %{name} = %{version}-%{release} Requires: jpackage-utils BuildArch: noarch %description javadoc Javadoc for %{name}. %prep %setup -q -c %patch0 -p1 -b .build %patch1 -p1 -b .java11 %patch2 -p1 -b .no_antcontrib %patch3 -p1 -b .no_commons_logging find . -name "*.jar" -exec rm -f {} \; rm -r source/org/pentaho/reporting/libraries/fonts/itext mkdir -p lib build-jar-repository -s -p lib libbase libloader %build ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar javadoc for file in README.txt licence-LGPL.txt ChangeLog.txt; do tr -d '\r' < $file > $file.new mv $file.new $file done %install mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p ./dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %doc licence-LGPL.txt README.txt ChangeLog.txt %{_javadir}/%{name}.jar %files javadoc %{_javadocdir}/%{name} %changelog * Fri Jul 01 2022 Igor Vlasenko <viy@altlinux.org> 1.1.3-alt1_37jpp11 - update * Thu Jun 10 2021 Igor Vlasenko <viy@altlinux.org> 1.1.3-alt1_33jpp11 - fc34 update * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 1.1.3-alt1_29jpp11 - update * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_25jpp8 - update * Wed Jul 17 2019 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_23jpp8 - fc update & java 8 build * Mon Apr 16 2018 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_21jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_20jpp8 - fc27 update * Tue Oct 17 2017 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_19jpp8 - new jpp release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_18jpp8 - new fc release * Tue Feb 02 2016 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_17jpp8 - new version * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_13jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_10jpp7 - new release * Mon Oct 01 2012 Igor Vlasenko <viy@altlinux.ru> 1.1.3-alt1_8jpp7 - new version |