Пакет OpenStego: 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 | Group: File tools # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java BuildRequires: /usr/bin/desktop-file-install # END SourceDeps(oneline) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-11-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global gituser syvaidya %global gitname openstego # Release 0.7.4 - 2020-06-06 %global commit 2f4d84f0e38421809fa8213f0fe1028bfc3fa9ed %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: OpenStego Version: 0.7.4 Release: alt1_2jpp11 Summary: Free Steganography solution Summary(fr): Solution libre pour la steganographie License: GPLv2 # https://github.com/syvaidya/openstego/releases URL: http://openstego.sourceforge.net/index.html # Source0: http://downloads.sourceforge.net/project/openstego/openstego/openstego-%%{version}/openstego-src-%%{version}.zip Source0: https://github.com/%{gituser}/%{gitname}/archive/%{gitname}-%{version}.tar.gz Source1: openstego.desktop # Patch the ant build script to build only the binary package out of java sources Patch0: %{name}-antbuild.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: desktop-file-utils Requires: jpackage-utils Source44: import.info %description OpenStego is a tool implemented in Java for generic steganography, with support for password-based encryption of the data. It supports plugins for various steganographic algorithms. %description -l fr OpenStego est un outil implanté en Java pour la steganographie générique, avec le support de l'encryption des données basé sur mot de passe. Il supporte les plugins pour des algorithmes steganographiques variés. %package javadoc Group: Development/Java BuildArch: noarch Requires: jpackage-utils Summary: Javadoc generated documentation for Openstego Summary(fr): Documentation javadoc générée pour Openstego %description javadoc Javadoc generated documentation for Openstego. %description javadoc -l fr Documentation javadoc générée pour Openstego %prep %setup -q -n %{gitname}-%{gitname}-%{version} %patch0 -p 1 -b .antbuild find . -name *.class -delete find . -name *.jar -delete # Delete file for Windows : rm -f openstego.bat %build ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 package doc %install mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_javadocdir}/openstego cp -p ./lib/openstego.jar %{buildroot}%{_javadir}/openstego.jar cp -p ./src/image/ImagesVectorSource.svg %{buildroot}%{_datadir}/pixmaps/openstego.svg cp -pr ./doc/api/* %{buildroot}%{_javadocdir}/openstego %jpackage_script com.openstego.desktop.OpenStego "" "" openstego.jar openstego true # Install openstego.desktop desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} mkdir -p $RPM_BUILD_ROOT`dirname /etc/java/%name.conf` touch $RPM_BUILD_ROOT/etc/java/%name.conf %files %doc README LICENSE %{_bindir}/openstego %{_javadir}/openstego.jar %{_datadir}/pixmaps/openstego.svg %{_datadir}/applications/openstego.desktop %config(noreplace,missingok) /etc/java/%name.conf %files javadoc %doc LICENSE %{_javadocdir}/openstego/ %changelog * Sun Jun 06 2021 Igor Vlasenko <viy@altlinux.org> 0.7.4-alt1_2jpp11 - rebuild with java11 and use jvm_run * Wed Jan 29 2020 Igor Vlasenko <viy@altlinux.ru> 0.7.3-alt1_5jpp8 - fc update * Fri May 24 2019 Igor Vlasenko <viy@altlinux.ru> 0.7.3-alt1_3jpp8 - new version * Tue May 08 2018 Igor Vlasenko <viy@altlinux.ru> 0.7.2-alt1_1jpp8 - java update * Tue Feb 02 2016 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt2_14jpp8 - new version * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt2_12jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt2_11jpp7 - new release * Mon Oct 01 2012 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt2_10jpp7 - new fc release * Tue Sep 18 2012 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt2_9jpp7 - new version * Mon Sep 17 2012 Igor Vlasenko <viy@altlinux.ru> 0.5.2-alt1_9jpp7 - new version |