Package libmatthew-java: 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 | Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java # END SourceDeps(oneline) BuildRequires: /proc BuildRequires: jpackage-generic-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: libmatthew-java Version: 0.8 Release: alt2_20jpp8 Summary: A few useful Java libraries License: MIT # actual upstream: URL: http://matthew.ath.cx/projects/java/ Source0: http://matthew.ath.cx/projects/java/%{name}-%{version}.tar.gz # OSGi manifests Source1: %{name}-hexdump-osgi-MANIFEST.MF Source2: %{name}-unix-osgi-MANIFEST.MF Patch0: install_doc.patch Patch1: native-library-paths.patch Patch2: classpath_fix.patch BuildRequires: javapackages-local BuildRequires: gcc Requires: javapackages-tools Source44: import.info %description A colleciton of Java libraries: - Unix Sockets Library This is a collection of classes and native code to allow you to read and write Unix sockets in Java. - Debug Library This is a comprehensive logging and debugging solution. - CGI Library This is a collection of classes and native code to allow you to write CGI applications in Java. - I/O Library This provides a few much needed extensions to the Java I/O subsystem. - Hexdump This class formats byte-arrays in hex and ascii for display. %package javadoc Group: Development/Other Summary: Javadoc for %{name} BuildArch: noarch %description javadoc Javadoc for %{name} %prep %setup -q %patch0 -p1 # this patch adds a system dependent path, so we fix it before # applying the patch sed -e 's|@JNIPATH@|%{_libdir}/%{name}|' %{PATCH1} | patch -p1 %patch2 -p1 %build export JAVA_HOME=%{java_home} %make_build \ CFLAGS='%{optflags}'\ GCJFLAGS='%{optflags}' \ LDFLAGS='%{optflags}' \ PPFLAGS='%{optflags}' \ JAVADOC="javadoc -Xdoclint:none" \ -j1 # Inject OSGi manifests jar umf %{SOURCE1} hexdump-0.2.jar jar umf %{SOURCE2} unix-0.5.jar %install make install \ DESTDIR=$RPM_BUILD_ROOT \ JARDIR=%{_jnidir} \ LIBDIR=%{_libdir}/%{name} \ DOCDIR=%{_javadocdir}/%{name} \ JAVADOC="javadoc -Xdoclint:none" %files %{_jnidir}/*.jar %{_libdir}/%{name} %doc INSTALL README %doc --no-dereference COPYING %files javadoc %{_javadocdir}/%{name} %doc --no-dereference COPYING %changelog * Mon Feb 04 2019 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_20jpp8 - java update * Mon Apr 16 2018 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_19jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_18jpp8 - fc27 update * Tue Oct 17 2017 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_15jpp8 - new jpp release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_14jpp8 - new fc release * Thu Feb 11 2016 Igor Vlasenko <viy@altlinux.ru> 0.8-alt2_13jpp8 - %%_jnidir set to /usr/lib/java * Tue Feb 02 2016 Igor Vlasenko <viy@altlinux.ru> 0.8-alt1_13jpp8 - new version * Sun Sep 14 2014 Igor Vlasenko <viy@altlinux.ru> 0.8-alt1_7jpp7 - new release - added compat symlinks * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 0.8-alt1_5jpp7 - new release * Mon Aug 20 2012 Igor Vlasenko <viy@altlinux.ru> 0.8-alt1_4jpp7 - update to new release by jppimport * Mon Jun 11 2012 Igor Vlasenko <viy@altlinux.ru> 0.8-alt1_3jpp7 - fc build |