Package electric: 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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | Group: Engineering # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java BuildRequires: /usr/bin/desktop-file-install unzip # END SourceDeps(oneline) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-1.8-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: electric Version: 8.09 Release: alt2_18jpp8 Summary: Sophisticated ASIC and MEM CAD System License: GPLv3 URL: http://www.staticfreesoft.com/ Source0: ftp://ftp.gnu.org/pub/gnu/electric/%{name}-%{version}.jar Source1: %{name}.desktop Source2: %{name}.1 BuildRequires: ant BuildRequires: desktop-file-utils Requires: java BuildArch: noarch Source44: import.info %description Electric is a sophisticated electrical CAD system that can handle many forms of circuit design, including custom IC layout (ASICs), schematic drawing, hardware description language specifications, and electro-mechanical hybrid layout. %package javadoc Group: Development/Java Summary: Javadocs for %{name} BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -T -c %{name}-%{version} -a 0 find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \; jar xf %{SOURCE0} #wrong-file-end-of-line-encoding sed -i 's/\r//' packaging/README.txt packaging/LicenseGNU.txt %build ant -verbose \ jarForGNUBinary \ javadoc %install # generating empty directories install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_javadir}/%{name} # real java binary created by this spec file install -pm 0755 %{name}-%{version}.jar \ %{buildroot}%{_javadir}/%{name}/%{name}.jar # dummy executable file to call %%{name}.jar cat > %{name} << EOF #!/bin/bash java -jar %{_javadir}/%{name}/%{name}.jar EOF install -pm 0755 %{name} %{buildroot}%{_bindir}/%{name} # Man page install -d %{buildroot}%{_mandir}/man1/ install -pm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ # desktop file and its icon desktop-file-install --vendor "" \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} install -d %{buildroot}%{_datadir}/pixmaps/ install -pm 0644 com/sun/electric/tool/user/help/helphtml/iconplug.png \ %{buildroot}%{_datadir}/pixmaps/%{name}.png # javadoc API install -d %{buildroot}%{_javadocdir}/%{name} cp -rp apidoc/* %{buildroot}%{_javadocdir}/%{name} %files %doc packaging/README.txt ChangeLog.txt packaging/LicenseGNU.txt %{_bindir}/%{name} %dir %{_javadir}/%{name}/ %{_javadir}/%{name}/%{name}.jar %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_mandir}/man1/%{name}.1* %files javadoc %{_javadocdir}/%{name} %changelog * Thu Jul 01 2021 Igor Vlasenko <viy@altlinux.org> 8.09-alt2_18jpp8 - added BR: unzip * Sat Feb 15 2020 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_18jpp8 - fc update * Sat May 25 2019 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_16jpp8 - new version * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_15jpp8 - fc29 update * Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_14jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_13jpp8 - fc27 update * Tue Oct 17 2017 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_12jpp8 - new jpp release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_11jpp8 - new fc release * Tue Feb 02 2016 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_10jpp8 - new version * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_7jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_6jpp7 - new release * Mon Sep 17 2012 Igor Vlasenko <viy@altlinux.ru> 8.09-alt1_5jpp7 - new version |